AnsweredAssumed Answered

error: "undefined reference to __pformatter" when using sprintf with CodeWarrior

Question asked by Lukasz Pacyga on May 28, 2015
Latest reply on Jan 22, 2017 by Marceli Firlej


I can not build c "Bareboard" project when using sprintf with additional parameters in code. For example:

sprintf(RadioTransmitBuff, "%d\n\r", temperature);

This line causes following error during build:

ARM_GCC_Support/ewl/EWL_C/src/stdio/vsnprintf.c:58: undefined reference to `__pformatter'

mingw32-make: *** [Testing_Sprintf.elf] Error 1


Project builds fine if there is no additional parameters:

sprintf(RadioTransmitBuff, "Hallo\n\r");


I used sprintf with Kinetis Design Studio without any problems therefore it must be something to do with CodeWarrior IDE.

Im using CodeWarrior for MCU Version: 10.6


I hope someone can advice?


Many thanks