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 have a uVision3, licensed MDK/RTL for SAM7X and a project that need to locate AND INIT a const variable. I use RealView toolchain (with CARM seems to work but I can't use it) and I've tried to fill a scatter file to locate my variable where is needed. The definition of variable is:
#pragma arm section rodata ="var" const unsigned char pippo[6] = {0x00,0x12,0x34,0x56,0x78,0xBE}; #pragma arm section code, rwdata // return to default placement
and in the scatter file, the section "var" is located where is needed. All seems OK but var hasn't the requested value. I've also used as compiler option --lower_ropi and similar options but they doesn't works. Where is the mistake? Thanks
Sorry fo my post, I've read too late the solution found in a already existing thread. http://www.keil.com/forum/docs/thread8677.asp Thanks Hans-Bernhard!