PRINTF with Keil uVision does not print negative numbers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PRINTF with Keil uVision does not print negative numbers

896 Views
bcstewart
Contributor III

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:https://community.nxp.com/message/868842 

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

Any suggestions?

Labels (1)
Tags (2)
0 Kudos
1 Reply

632 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Stewart,

As you see that the printf() function is dependent on compiler rather than SDK, can you ask Keil support directly? they can give professional answer i think.

BR

Xiangjun Rong

0 Kudos