cancel
Showing results for 
Search instead for 
Did you mean: 

Bootloader sharing peripheral initialization?

Harry McKee
Associate II
Posted on February 28, 2018 at 00:23

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
0 REPLIES 0