We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am using Cygnal controller C8051F005 which has on chip external 2K memory. I defined one array as follows. xdata char mydata[1440]_at_0x97; In mydata array I am storing my data. But I observe that some initial part of the array is getting currupted. I am unable to know, how it gets currupted. Please let me know when I declare an array as mentioed above, does the compiler use the memory reserved for above array. If yes, then how should I solve this problem.
"Because I have used memory location f000 To 00097 for other purpose." In that case, you should specify the available XDATA address range in the Target options. After all, that's what you really want: you don't really need to fix the address; you just need to prevent the Linker from using it! Might it help if you told us why this area has to be reserved?