AnsweredAssumed Answered

PRINTF with Keil uVision does not print negative numbers

Question asked by BC Stewart on Apr 27, 2017
Latest reply on May 11, 2017 by xiangjun.rong

I cannot get negative numbers to print out using KSDK 2.0.  I am using the accelerometer demo for the TWR-KL25Z48M.

All values are positive on the terminal.  But they show negative values in the debugger watch window.

I saw this post here:PRINTF %d doesn't handle negative numbers? 

But the fix is for KDS/Xpresso and not for Keil uVisoin V5.14.

 

Any suggestions?

Outcomes