I'm trying to print the printf statements in the ITM viewer(Serial Viewer). I have the following code in the fputc function. Basically I followed all the instructions in the "Using the ITM Viewer".
if (DEMCR & TRCENA) { while (ITM_Port32(0) == 0); ITM_Port8(0) = ch; }
But still i couldn't print anything on the ITM Viewer. The program kind of hand in the following line.
while (ITM_Port32(0) == 0);
Am I missing something in the settings.? Any suggestions are appreciated. Thanks