2018-02-27 03:23 PM
The example code for bootloaders and applications both call HAL_Init and SystemClock_Config. I'm guessing that clock initialization is done in both apps because the RCC gets reset in SystemInit.
I have tried reusing UART initialization, but that doesn't work because the UART_HandleTypeDef variable is not shared and must be initialized.
Is it possible to share any peripheral (UART, LTDC, FMC) initialization between the bootloader and the main application? Is it even worth trying?
Thank you, Harry
#bootloader #stm32-iap