cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a NUCLEO G474RE into DFU(Device Firmware Update) mode ?

MQi.1
Senior II

I mean, is there any button or pins I could press when power on then make it into DFU mode, and the DFU mode would be recognized by Ubuntu?

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Not easily.

This board only has a single USB connector (CN1) which is connected to the ST-Link chip, not the STM32G474. So that won't help you.

You would need to solder a USB connector to the relevant pins, then put the device in bootloader mode by holding BOOT0 high during reset. Then it would be recognized as a DFU.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

7 REPLIES 7
TDK
Guru

Not easily.

This board only has a single USB connector (CN1) which is connected to the ST-Link chip, not the STM32G474. So that won't help you.

You would need to solder a USB connector to the relevant pins, then put the device in bootloader mode by holding BOOT0 high during reset. Then it would be recognized as a DFU.

If you feel a post has answered your question, please click "Accept as Solution".
MQi.1
Senior II

So I need 3 components - USB socket, USB-TTL convertor, and 5v to 3.3v regulator?

Just a USB socket. There are 5V pins on there which can be used to supply power from an external source (VBUS). See user manual for details about the power options. Not sure why you'd need a USB-TTL converter.
If you feel a post has answered your question, please click "Accept as Solution".

The BOOT0 pin gets the System Loader to run at reset.

For *USB* connectivity you'd need a connector suitably wired to the DP/DM (D+/D-) pins of the STM32

Can't you use the SERIAL connectivity of the Loader via the ST-LINK/VCP ?

This all seems unnecessarily convoluted.

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

I have thought I need to program the chip by UART as an AVR.

It was said there was no connectivity to the BOOT0 pin, so I couldn't enter into DFU mode by pressing some button during power-on.

It’s a Nucleo board. The easiest and best way to program it is through the st link connection on CN1.
If you feel a post has answered your question, please click "Accept as Solution".