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