Not able to jump from internal memory boot code to QSPI external memory application code.
I am working on NUCLEO-H563ZI evaluation board interfacing with QSPI external memory. I have done below steps,
I am able to do read and write.
I have created the external loader file.
I am able to run application code in external memory with debugger support.
Now i am trying to run application code from external memory with bootloader code but i am always ending up with code crash. Could anybody give a clue how to debug this issue?
Note: I have flashed the application code in external memory using cube programmer with external loader.
I have enabled the memory mapped mode in boot up code and able to see the app code in Ext memory.
I have written jump code like below and changed linker script also,
/* Disable Systick interrupt */
SysTick->CTRL = 0;
/* Jump to application */
jumpToApplication = (pFunction)(*(__IO uint32_t*)(APPLICATION_ADDRESS + 4));
__set_MSP(*(__IO uint32_t*)APPLICATION_ADDRESS);
jumpToApplication();
