How to run code in RAM?
I have a project with a STM32H7 part generated with CubeMX, but I want to copy the code to RAM after reset and then run it from RAM, because I want to change the flash where the code is running. How can I do this?
I noticed there is a linker file STM32H723ZGTX_RAM.ld generated. I've used this in the build settings instead of the STM32H723ZGTX_FLASH.ld, but looks like it is still running the code from flash. Do I have to change or add something else or in the startup code?
