9 years, 6 months ago.

STM32L053 Support

Any chance of supporting the STM32L053? There is a compiler error: Error: Identifier "ITM_SendChar" is undefined in "SWO/SWO.cpp", Line: 50, Col: 3 Error: Identifier "ITM_SendChar" is undefined in "SWO/SWO.cpp", Line: 172, Col: 3

Question relating to:

1 Answer

9 years, 6 months ago.

Hi Mark, the STM32L053 is a Cortex M0+ device. The ITM en SWO is missing in that core (see datasheet). The ITM_SendChar() is therefore not implemented in the CMSIS file core_cm0plus.h which is why you get the compiler/link error. The STM32F103 is a Cortex M3 and that device supports the SWO and it has the ITM_SendChar() implementation in core_cm3.h

So I guess you are out of luck regarding the SWO on the L053. You can still use the regular printf or do testing/debugging on the F103 and then move the code to the L053 when it is ready.

Accepted Answer