2019-11-25 08:09 AM
I'm using STM32F429 Discovery board and CUBE IDE. I have set the Serial Wire Debug, in debug configuration, I enabled SWV, set the core clock, enabled live expession. In main.c I wrote this part of the code
int _write(int file, char *ptr, int len)
{
int i=0;
for(i=0; i<len; i++)
ITM_SendChar((*ptr++));
return len;
}
and put some "printf" in the endless loop. In Serial Wire Viewer settings, ITM Stimulus Ports I enabled port 0, and pressed the Start Trace button. But when I started program nothing happened in the SWV ITM Data Console, it stayed blank.
I tried the same thing with the STM32F103C8 and it didn't work either. Then I tried it with STM32L476 Nucleo and with STM32H743 Nucleo, and it worked fine.
Can someone explain it to me why it doesn't work on the F4 and F1?