2021-11-17 07:15 AM
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;
}
In stm32h7xx.c lib I add the printf function but it not get printing why? can you help me.
2021-11-17 03:47 PM
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,