This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Xdata Variables not accessable

Dear Experts,
I am a newbie to Keil and using the PK51 development kit with Rev:9.03 to develop firmware for my CC2430 controller.
The problem I am seeing is, when ever I create a large array (ex: unsigned char a[20]) , I was unable to initialize the values in the array. I can see the array has been created in XDATA. However if I create unsigned char IDATA a[20], I was able to initialize the array.

One more observation is, after executing the code for a couple of seconds (not exactly), the execution was looping in the following lines of code (STARTUP.A51).


XDATALOOP: MOVX @DPTR,A INC DPTR DJNZ R7,XDATALOOP DJNZ R6,XDATALOOP

The XDATA initialization as per my startup code is

XDATASTART EQU 0x0100

XDATALEN EQU 0x1000

Can anyone let me know whats happening in my code. Please let me know, if any additional information is required to analyze the situation.

Also, Please forward me any available CC2430 Keil project.

Thanks in advance,
Regards,
RD