2023-10-04 06:59 AM
Hello,
We would like to program new STM32H7 chips (running the default bootloader) from another STM32H7 over UART. Looking at AN3156 and AN2606 this seems to be possible but is there any sample projects or drivers (by ST or open source) that implement this DFU protocol to get us started writing the program that will send the binary, modify option bytes and flash the new chips?
Thanks in advance, Callum
2023-10-05 09:02 AM - edited 2023-10-10 01:36 PM
Hello CallumChan,
Thank you for contacting STMicroelectronics. Your inquiry is being escalated for specialized support.
Kind Regards,
Christian
ST Support
2023-10-05 09:38 AM
You'd have to be creating a USB Host to use DFU.
The USART doesn't use the DFU protocol, or file format. The UART protocol is covered in AN3155 and there are multiple examples of this in use. See the MKR WAN 1300 firmware update examples, I've posted links multiple times. The protocol isn't that hard to implement either.
The DFU file format can be a convenient way of packaging the data, the format is documented.
The examples of a DFU USB Device in the libraries, a review of these might be helpful to understand the mechanics, descriptors, etc.