Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/24/03 11:29
Read: times


 
#37077 - DATA to XDATA problem
Hi people,

Well, ... Once again, there is something I don't understand with the memories segment use...

I'm building my project with SMALL model with Keil compiler.
Most of the local variables declared in my functions are located in DATA.
They are declared as : U8 u8variable;

In order to avoid the DATA memory to be full, I'd like to shift some of these variables into the XDATA segment. So the declaration becomes : xdata U8 u8variable;

When reading the LST files and the M51 file, I can see that the operation has worked and that the variables are now located in XDATA.

However, my code crashes now and it's looping on a reset ! This appears when I've shifted about 10 bytes into XDATA....

The code size has only be increased of about 1 or 2 bytes per shifted variable.
The DATA segment ends at 0x58 so, it isn't full and it's less than before shifting variables.

Any explanation ?

thanks
Regards
Stephane


List of 12 messages in thread
TopicAuthorDate
DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      
RE: DATA to XDATA problem            01/01/70 00:00      

Back to Subject List