Application excecusion issue while jumping (SDRAM)
Hello,
I am working on an STM32F746 project where I have implemented a bootloader.
The setup is as follows:
Application image is stored in external QSPI flash.
Bootloader copies the image from QSPI to SDRAM (IS42S32400F at 0xC0000000).
After copying, I set SCB->VTOR = 0xC0000000 and jump to the application Reset_Handler.
The copy is verified: I have cross-checked the SDRAM contents with the QSPI image, and the data is copied correctly.
I also created a test application that only sets a GPIO pin high (no SystemInit(), no HAL_Init(), no HAL_RCC_DeInit()).
Even in this simple case, after the bootloader jumps to the reset handler, I get this error:
Break at address "0x242" with no debug information available, or outside of program code.
The Reset_Handler address from the SDRAM vector table is correct (e.g., 0xC00002B5), and VTOR is updated to 0xC0000000.
But execution always ends up breaking at 0x242.
Has anyone faced this issue when trying to execute code from SDRAM after copying from QSPI?
Any hints on what I might be missing (cache setup, MPU, remap, or SDRAM execution settings)?
Thanks in advance.
