Hi,
I am using IAR EWARM 8.22 and microcontroller TMS570LS0714.
For my project, I would need to save some information in flash.
In the linker file, I am reserving a region:
define region APP_PART_region = mem:[from 0x00010044 to 0x0001004F];
place in APP_PART_region { readonly section APP_PART_NUM };
In the source file, I am declaring the following:
__root const uint32 App_Part_Number @ "APP_PART_NUM" = 123456;
However, when I observe the .map file the following is shown:
APP_PART_NUM
const 0x00010044 0x4 main.o [1]
- 0x00010048 0x4
.text ro code 0x00010048 0x1dca system.o [3]
After observing this, I find that though the area from 0x00010044 to 0x0001004F is given for storing the part number data, only the region from 0x00010044 to 0x00010048 is used by the part number data and the remaining region starting from 0x00010048 is being used by some other.
Could you please suggest me a solution such that the region declared in linker file should not be used to store some other data.
Thanks and regards,
Abrar