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.
Hi all
I'm hoping someone can help me locate my code the way I need to. I want to put a portion of my code in a specific address range, and exclude all other code from this region. Following http://www.keil.com/support/docs/2670.htm I included this in the .c source file:
#pragma userclass(code=ldr)
and when linking I specify
CLASSES(CODE_LDR(C:80h-C:1DFFh),CODE(C:1E00h-C:7FFFh))
I thought this would do the trick, but now I get
*** WARNING L47: NO SEGMENTS ASSIGNED TO USER CLASS CLASS: CODE_LDR
when linking. Looking at the map file confirms that no code was assigned to the address space C:80h-C:1DFFh.
I am using CX51 and LX51.
What am I overlooking? Any help would be sincerely appreciated.