cancel
Showing results for 
Search instead for 
Did you mean: 

Using printf debug on an STM32L072 using SWO interface with a ST-Link and uVision5

Peter Simpson
Associate II
Posted on June 26, 2018 at 07:18

Hi,

I am trying to set up printf debug on aSTM32L072 using SWO interface with a ST-Link and uVision5

following documentation I found

I have started with a basic STM32CubeMX project and included the function

int fputc(int ch, FILE *f)
{
ITM_SendChar(ch);
return(ch);
}
but cannot find whereITM_SendChar() is defined.From what I have read it is supposed to be in core_cm0.h which is not loaded in the project - rathercore_cm0plus.h is but does not include a definition forITM_SendChar().
Any advice on
a) should this work ?
b) where isITM_SendChar() defined
c) example of how to get this working
would be appreciated
Thank You
Regards
Peter Simpson

0 REPLIES 0