AnsweredAssumed Answered

Bootloader sharing peripheral initialization?

Question asked by Harry McKee on Feb 28, 2018

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