Hi,
I am using MIMXRT1170-EVKB for our development activities. I am new to this controller.
I used the fsl_romapi example sdk as customized bootloader and integrated the uart example with that to receive the image (led blinky example) through uart and write it in the flash.
Currently I am able to write to write the binary format of image received via uart into the flash starting from 0x32000000 address.
Now I want to jump to this application. Currently I am using this piece of code from flashloader example to jump to this application address.
Here while calling this function, what I should pass in the arguements section. If you can let me know then it will be helpful. If you have some piece of code for jumping to application then you can give me some link.
static void jump_to_application(uint32_t applicationAddress, uint32_t stackPointer)
{
#if BL_FEATURE_OTFAD_MODULE
quadspi_cache_clear();
oftfad_resume_as_needed();
#endif
// Create the function call to the user application.
// Static variables are needed since changed the stack pointer out from under the compiler
// we need to ensure the values we are using are not stored on the previous stack
static uint32_t s_stackPointer = 0;
s_stackPointer = stackPointer;
static void (*farewellBootloader)(void) = 0;
farewellBootloader = (void (*)(void))applicationAddress;
// Set the VTOR to the application vector table address.
SCB->VTOR = (uint32_t)APP_VECTOR_TABLE;
// Set stack pointers to the application stack pointer.
__set_MSP(s_stackPointer);
__set_PSP(s_stackPointer);
// Jump to the application.
farewellBootloader();
}