cancel
Showing results for 
Search instead for 
Did you mean: 

Programming the board using a USB connection. (at Nucleo-G491RE)

ParkPork
Associate II

Hello,

First, I would like to express my deepest gratitude for your assistance.

I intend to update the firmware using STM32CubeProgrammer with the following hardware configuration

 

ParkPork_0-1765883915496.png

Additionally, I have set the Boot0 pin to High using a jumper.

However, my PC is not detecting DFU mode.

Additionally, the programmer is not recognizing the USB connection.

ParkPork_1-1765884511107.pngParkPork_2-1765884522001.png

 

Did I miss anything?

 

PS. The board has undergone a full chip erase.

 

6 REPLIES 6
gbm
Principal

You've missed the fact that the pullup is already present in STM32G. No need for an external one. ;)

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
ParkPork
Associate II

The same problem occurs even in situations without pull-ups.

I am checking what I might be missing.

gbm
Principal

Just noticed that you are powering your board from USB. have you set the power jumpers correctly? What happens if you power it from ST-Link instead?

Also, if you use USB-C connector on the MCU side and C-to-C cable, make sure that 5k1 pulldowns are present on both CC lines.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

I hadn't considered using the St-link power supply. I'll double-check this part.

The current connection interface uses a cable similar to the one in the attached photo.

IMG_3679.png

TDK
Super User

If the ST-link chip on the board is not powered, it can keep the target chip in reset by keeping NRST low.

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

The board's 5V LED lights up normally. Even if the LED is lit normally, could the board still not be receiving power?

I'm a beginner developer and there's a lot I don't know. Thank you.