a little problem (bug) in debugging

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

a little problem (bug) in debugging

792 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by salamlora1 on Mon Sep 07 05:49:16 MST 2015
why inside of this variable is different in debug mode
i m using LPC-LINK2 with lpcexpresso v7-6-2
on latest lpcopen library for lpc176x
0 Kudos
Reply
5 Replies

773 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Wed Sep 09 02:51:46 MST 2015
...uses \ to prefix [color=#f00]octal[/color] numbers.




https://en.wikipedia.org/wiki/Octal
0 Kudos
Reply

773 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by salamlora1 on Wed Sep 09 02:36:46 MST 2015
thx whitecoe
im  already know how to change them  :bigsmile:
i thought that numbers are in hexadecimal
another question is what is that ( 001,030,001,030)
0 Kudos
Reply

773 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Wed Sep 09 00:05:08 MST 2015
Decimal 24 = hexadecimal 18  :bigsmile:

You might find this FAQ useful - towards the bottom it explains how to change format

https://www.lpcware.com/content/faq/lpcxpresso/viewing-variables

HTH!
0 Kudos
Reply

772 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by salamlora1 on Tue Sep 08 23:00:07 MST 2015
Thx for your answer

I correct the picture and it’s the problem
As you see the value of the variable of the Rx_Buf in the debug mode is different as the real value
Rx_Buf is in memory address of 0x10000228
When I click left mouse on the variable of Rx_Buf[0] a window show the values as below
Rx_Buf[0] = 1
Rx_Buf[1]=24
Rx_Buf[2]=1
Rx_Buf[3]=24

When I check the address of 0x10000228 value of this address is 0x18011801
Its mean
Rx_Buf[0] = 1
Rx_Buf[1]=18
Rx_Buf[2]=1
Rx_Buf[3]=18

i most notice this : the real answer we expect is 0x18011801
[img]https://www.lpcware.com/system/files/WDF1_0.jpg[/img]
0 Kudos
Reply

772 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Sep 08 07:35:02 MST 2015
Sorry, your screenshot is illegible. Please explain what you are seeing and why it does not match what you expect to see.

Note that if you are seeing different behaviour between a Debug and a Release build of your project, then this is probably down to optimisation...

https://www.lpcware.com/content/faq/lpcxpresso/compiler-optimization

Regards,
LPCXpresso Support
0 Kudos
Reply