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);
SelfMad_Man_0-1714744058948.png
- Added file “test.h” in source folder;
SelfMad_Man_1-1714744058970.png
- Added file “test.c” in source folder;
SelfMad_Man_2-1714744058989.png
- Added instructions in “led_blinky.c” in order to compile “data_container” struct:
SelfMad_Man_3-1714744059002.png
…
SelfMad_Man_4-1714744059014.png
…
SelfMad_Man_5-1714744059031.png
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)
SelfMad_Man_6-1714744059043.png
Can you provide me instructions (pragma or other) to solve this question? If possible, avoiding struct of predefined fixed length.
Thank you.