The ITM has a lock register that you need to unlock before programming the ITM.After setting TRCENA, could you add#define ITM_LOCK_ACCESS_REGISTER (*((volatile unsigned long *)(0xE0000FB0)))ITM_LOCK_ACCESS_REGISTER = 0xC5ACCE55;