2024-06-17 03:35 AM - edited 2024-06-17 07:19 PM
I would like to implement a bootloader on STM32 MCU.
We also plan to add a download function through CAN communication on the bootloader.
How do I get CAN bootloader sample code?
Solved! Go to Solution.
2024-06-18 02:47 AM - edited 2024-06-19 05:00 AM
Hello,
Which STM32 part number you are talking about? Please read these recommendations on thread posting: https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228
STM32 has already CAN bootloader hardcoded in the chip. Please refer to the AN2606 "STM32 microcontroller system memory boot mode" and most specifically the AN3154 "CAN protocol used in the STM32 bootloader"
If you are looking for the source code of the hardwired bootloader, ST doesn't disclose it.
Read also these threads:
https://community.st.com/t5/stm32-mcus-embedded-software/is-there-bootloader-source-code/td-p/113840
Hope I answered your question.
2024-06-18 02:47 AM - edited 2024-06-19 05:00 AM
Hello,
Which STM32 part number you are talking about? Please read these recommendations on thread posting: https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228
STM32 has already CAN bootloader hardcoded in the chip. Please refer to the AN2606 "STM32 microcontroller system memory boot mode" and most specifically the AN3154 "CAN protocol used in the STM32 bootloader"
If you are looking for the source code of the hardwired bootloader, ST doesn't disclose it.
Read also these threads:
https://community.st.com/t5/stm32-mcus-embedded-software/is-there-bootloader-source-code/td-p/113840
Hope I answered your question.
2024-06-19 05:03 AM
Meanwhile ST offers an openbootloader available on github: https://github.com/STMicroelectronics/stm32-mw-openbl
supporting FDCAN interface (not bxCAN).
Also read this article on how to use it: https://community.st.com/t5/stm32-mcus/how-to-use-the-st-open-bootloader-for-stm32-microcontrollers/ta-p/49896