Program STM32 via serial
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-15 8:52 PM
Is it possible to program the MCU via Serial using the USART pins (PB6,PB7)????
- Labels:
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-15 9:05 PM
You can implement any update method you chose.
For the System Loader see application note AN2606 for pin options.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-16 3:49 AM
https://git.code.sf.net/p/stm32flash/code is a nice program to talk to AN2606 compatible bootloaders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-16 3:57 AM
In addition to the built-in System Loader mentioned by @Tesla DeLorean - which has certain restrictions - you can write your own loader to use any interface you like on any pins you like
For example, see Application note AN4657, STM32 in-application programming (IAP) using the USART:
https://www.st.com/en/embedded-software/x-cube-iap-usart.html
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-16 6:00 AM
This guy has a very detailed video series on implementing a custom bootloader: https://www.youtube.com/watch?v=jzo7z2gNBgg&list=PLArwqFvBIlwHRgPtsQAhgZavlp42qpkiG&index=1
He covers most of the code in the video, but he also has git repo if you are short on details: https://github.com/Embetronicx/STM32-Bootloader/tree/main
