AnsweredAssumed Answered

PRINTF doesn't print leading zeroes

Question asked by Michael Ellis on Nov 10, 2016
Latest reply on Dec 1, 2016 by Michael Ellis

SDK v.2.0 for TWR-KV58F220M

 

The PRINTF function does not seem to print leading zeroes.  For example:

 

PRINTF("0x%08X\n\r", 0xabcdef42U);
PRINTF("0x%08X\n\r", 0xabcdefU);

 

generates an output of:

 

0xABCDEF42
0x  ABCDEF

Outcomes