cancel
Showing results for 
Search instead for 
Did you mean: 

Constants at a specific adress?

tkjmail2
Associate II
Posted on April 03, 2010 at 18:36

Constants at a specific adress?

11 REPLIES 11
tkjmail2
Associate II
Posted on May 17, 2011 at 13:46

After some hours messing around I figured it out.

I have to make it volatile! If I make the constant volatile I can find it in the HEX file just by searching after the hex numbers in a row.

I hope this information might be usefull for others struggling with the same thing!

Best Regards

Thomas Jespersen

Andrew Neil
Evangelist III
Posted on May 17, 2011 at 13:46

''I have to make it volatile!''

Funnily enough, a similar point has just turned up at

http://www.8052.com/forum/read/174991

''my

guess

is that, without 'volatile', the compiler may decide not to read the ROM at all, but to use ''immediate'' data instead...''