cancel
Showing results for 
Search instead for 
Did you mean: 

Programming new STM32H7s from another STM32H7 over UART using DFU protocol

CallumChan
Associate

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

2 REPLIES 2
Christian N
ST Employee

Hello CallumChan,

Thank you for contacting STMicroelectronics. Your inquiry is being escalated for specialized support.

Kind Regards,

Christian

ST Support

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..