2023-01-25 12:27 PM
We have a new design using the STM32G474 and are having some weird issues with the SWV utility. Current setup:
Here’s what we are seeing:
2023-02-03 07:00 AM
Fixed based on recommendations from ST Team. Changed the printf override to this function:
int _write(int file, char *ptr, int len)
{
int DataIdx;
for(DataIdx=0; DataIdx<len; DataIdx++)
{
ITM_SendChar(*ptr++);
}
return len;
}
This fixed the above issues with all the previous settings and did not skip the first printed character.
Other recommendations from the ST team for completeness:
Can you remove the 33ohm resistors? Maybe the resistors with the cable could be generating a filter.
Another option could be using the option limit SWO Clock? (maybe start with 500) By default it is not checked (so it uses auto detect).