cancel
Showing results for 
Search instead for 
Did you mean: 

SWV ITM Data Console not working properly

MDeva.1
Associate II

Hello,

I am working on Nucleo-h745ziq board. For debugging purpose required the printf function, I can't use the UART for that because its used for another working. So using SWI I am creating the printf function but it cannot print the all the other printf. There are some rules for that, like that have character printing limitation, because it only print four printf function after that it doesn't print I write the printf function in user code area but it doesn't printf why this happened can someone tell me.

int _write(int file, char *ptr, int len)

 {

int DataIdx;

for (DataIdx = 0; DataIdx < len; DataIdx++)

{

ITM_SendChar(*ptr++);

}

return len;

 }

0693W00000GXuhQQAT.png0693W00000GXugnQAD.pngIn stm32h7xx.c lib I add the printf function but it not get printing why? can you help me.

1 REPLY 1
Pavel A.
Evangelist III

After the debugger stops at the first breakpoint (usually on main), click on the red "record" button on the ITM console toolbar.

Then it should print,