2025-01-15 08:52 PM
Is it possible to program the MCU via Serial using the USART pins (PB6,PB7)????
2025-01-15 09:05 PM
You can implement any update method you chose.
For the System Loader see application note AN2606 for pin options.
2025-01-16 03:49 AM
https://git.code.sf.net/p/stm32flash/code is a nice program to talk to AN2606 compatible bootloaders
2025-01-16 03: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
2025-01-16 06: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