Hi,
I am trying to create a scatter file and using ARM 5.01 tools. I am facing a strange issue with RW section.
here is the scatter file
LR2 ImageLimit(LR1) { ER1_RO_REGION +0x0 { timer.o (+RO) } ER2_ZI_REGION +0x0 ZEROPAD { timer.o(+ZI) } ER3_RW_REGION 0x00600000 { timer.o(dummy_name) } ER4_UNINIT_REGION +0x0 { *.*(ER4_UNINIT_SECTION) } }
in timer.c I have the following __attribute__((section("dummy_name"))) int global_dummy_array[] = {1,2,3,4,5};
Now if load the generated elf format on simulator I see the array shows all 0 however if i change the base address of ER3_RW_REGION to +0x0 I can see the array values as set in the file.
can someone help understand what is going on ?