I've added:
zephyr_code_relocate(src/main.c SRAM)
and
CONFIG_CODE_DATA_RELOCATION=y
However, this only relocates by main to RAM. Vectors, kernel, etc, are still going to flash.
How can I relocate all code and data to RAM?
I've added:
zephyr_code_relocate(src/main.c SRAM)
and
CONFIG_CODE_DATA_RELOCATION=y
However, this only relocates by main to RAM. Vectors, kernel, etc, are still going to flash.
How can I relocate all code and data to RAM?
Hi!
I co-worker of mine has this Zephyr blinky sample that executes from RAM on the app core of the nRF5340, by replacing the flash memory ranges with RAM addresses in an overlay file.
Is that what you were looking for?
What is your end goal with moving all code to RAM?
Best regards,
Heidi
Hi!
I co-worker of mine has this Zephyr blinky sample that executes from RAM on the app core of the nRF5340, by replacing the flash memory ranges with RAM addresses in an overlay file.
Is that what you were looking for?
What is your end goal with moving all code to RAM?
Best regards,
Heidi