Hello NXP support team,
I’m using a imxrt1050evb (rev.b) and a modified example code of led blinking “evkbimrt1050_iled_blinky” provided by MCUXpresso for this evaluation board.
I've modified example code as regards:
- Split flash memory in two partitions: Flash (@0x60000000) and Flash2 (@0x62000000);

- Added file “test.h” in source folder;

- Added file “test.c” in source folder;

- Added instructions in “led_blinky.c” in order to compile “data_container” struct:

…

…

My purpose is to compile and store all fields of “data_container” in "Flash2" as by the instruction below:
__RODATA(Flash2) const container_t data_container = …
In debug mode I’ve checked the position in memory of “data_container” and its fields:
- “data_container” @ 0x62000000 (OK as expected in Flash2 partition)
- “data_container.length” @ 0x62000008 (OK as expected in Flash2 partition)
- “data_container.title” @ 0x600054d8 (NOT OK it’s inside Flash partition)
- “data_container.series” @ 0x600054e4 (NOT OK it’s inside Flash partition)

Can you provide me instructions (pragma or other) to solve this question? If possible, avoiding struct of predefined fixed length.
Thank you.