2025-02-06 01:46 AM
hey,
I am trying to figure out how to implement mcu-boot on an stm32l4
I wanna have mcu-boot to be able to flash it over uart, but I cant find any documentation on how to implement mcu-boot on an stm32L4
Are there any existing documentation or examples on this?
2025-02-06 01:56 AM
You talking about systembootloader? https://www.st.com/resource/en/application_note/an3155-usart-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf
>>how to implement mcu-boot on an stm32L4
any reason you dont want to use the one already implemented in every stm32 mcu?
>>Are there any existing documentation or examples on this?
you have plenty of documentation if you google systembootloader stm32
Or if you want to build your own bootloader check OpenBL
2025-02-06 02:09 AM - edited 2025-02-06 02:09 AM
I want to specify which UART is used for flashing, the default one is listing to everything, if something is trying to flash it or can look like it, and where is GPS that always sends data and some other devices.
I have not checked openBL, I was suggested mcu-boot originally I can try looking into openBL, but I would still like to use mcu-boot if possible
2025-02-06 02:11 AM
Hello @lucasrj ,
Here's a helpful entry point to get you started:
Please refer to the application note AN2606. This document describes the supported peripherals and hardware requirements to consider when using the bootloader. Specifically, you should look into the sections related to STM32Lxx devices (sections 66 to 72), which will assist you in configuring your setup.
For more detailed information and related documents about the bootloader, please check the following application notes:
Regards ,
MBej
2025-02-06 02:29 AM - edited 2025-02-06 02:32 AM
So you want to make a custom bootloader - rather than use the System bootloader built into the chips?
In that case, take a look at Application Note AN4657, STM32 in-application programming (IAP) using the USART:
and X-CUBE-IAP-USART, STM32Cube in-application programming using the USART embedded software:
https://www.st.com/en/embedded-software/x-cube-iap-usart.html
Your key search term here is "In-Application Programming" aka "IAP"
Try also, eg, https://www.google.com/search?q=mcuboot+stm32L4
Did you see Custom bootloader on the STM32L4 ?
Also: https://github.com/STMicroelectronics/stm32-mw-mcuboot