Skip to main content
Harry McKee
Associate II
February 27, 2018
Question

Bootloader sharing peripheral initialization?

  • February 27, 2018
  • 0 replies
  • 535 views
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
This topic has been closed for replies.