2021-01-27 08:23 PM
I am using a bootloader as STM32F405.
Before Jump_to_application(), I want to keep the GPIO status in API, but what should I do?
After the GPIO PIN is output "high" from the current boot firmware, it runs the jump_to_application().
The parameters are initialized at API run, and the GPIO PIN is output to Low.
Is there any way to keep the GPIO PIN "High"?
The code is as follows.
JumpAddress = *(__IO uint32_t*) (APPLICATION_ADDRESS + 4);
Jump_To_Application = (pFunction) JumpAddress;
HAL_RCC_DeInit();
HAL_DeInit();
__set_MSP(*(__IO uint32_t*) (APPLICATION_ADDRESS));
Jump_To_Application();
2021-01-27 11:06 PM
Find a different entry point
2021-01-28 03:50 AM
Only external Pulls will guarantee.