How to change boot from the internal flash to SRAM in STM32H7 with FreeRTOS?
It is working firmware STM32H7-DISCO with freeRTOS using internal flash. Almost full my binary. I planned to develop my firmware internal flash to SRAM. I modified .ld file and able to boot SRAM. Please check the below changes.
/* Memories definition */
MEMORY
{
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
RAM_D1 (xrw) : ORIGIN = 0x24040000, LENGTH = 256K
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x24000000, LENGTH = 256K //change interflash to ram 0x08000000
}
But it is hanging in kernelstart() -> prvPortStartFirstTask() funtion (0xE000ED08 have 0x8000000 flash address) . I used STMCUBEID generate code. Even i tried external flash using QSPI . It is hanging same function.
It is working fine without FreeRTOS for external flash and internal ram.
Do i need to change any other setting for change FLASH?
