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.
Dear Sir, I have read example code. #pragma arm section rwdata = "foo", rodata = "bar" int x2 = 5; // in foo (data part of region) int y2[100]; // in .bss int const z2[3] = {1,2,3};
Now i want to place x2 data at a particular memory location(0x40000020) using scatter file. how can i do this.As pragma is used to name the section and this name is used to link using scatter file.
Kindly tell, how can i use this pragma to name the section and then placing the variable at a particular memory location using scatter file.
Thanks
An easier way is often to shrink the RAM a bit in your project settings, and then place a struct at an absolute location in the created hole. An easy way to let a boot loader and an application share information.