Running code in RAM on STM32H7
Hi,
I have to to run my code in RAM on STM32H7 and debug it.
I put my code in RAM_D1 (start address = 0x24000004) changing the linker file in this way:
/* The program code and other data goes into FLASH */
_sl_my_Code = LOADADDR(.my_Code); /* pnt to the flash */
.my_Code :
{
. = ALIGN(4);
_smy_Code = .; /* define a global symbols at start of code */
*(.my_Code)
*(.my_Code*)
. = ALIGN(4);
_emy_Code = .; /* define a global symbols at end of code */
} > RAM_D1 /* code execute in ram */
.my_Code is the code that I wish to run in RAM.
The debug does not work and the code execution goes in Error Handler status.
