AnsweredAssumed Answered

runBootloader

Question asked by Carsoft Lai on Mar 22, 2019
Latest reply on Mar 26, 2019 by Mark Butcher

Hi,

I'm  trying to implement enable boot mode from application, and I'm using runBootloader(&bootloader_Enable) for enable bootloader instead of application, but in bl_flashloader.c just cannot capture the parameter from application by MKS22FN256 MCU, what am I miss? 

 

//Application source code

// Read the function address from the ROM API tree.
runBootloaderAddress = **(uint32_t **)(0x1c00001c);
runBootloader = (void (*)(void *arg))runBootloaderAddress;
// Start the bootloader.
runBootloader(&bootloader_Enable);

 

//Bootloader

//bl_flashloader.c

void main(void* arg)

{

   if(arg = bootloader_Enable)  bootloader_run()   //just for description 

}

Outcomes