2024-03-18 07:40 AM
Hello,
I'm using NUCLEO-G474RE kit with soldered USB on PINs:
PA11 - USB Data minus
PA12 - USB Data plus
VIN - VBUS
In the User configuration I have:
nSWBOOT = Checked
nBOOT0 = Checked
nBOOT1 = Checked
There is programmed program with blinking LED so I know it is running.
The BOOT0 on board is connected after reset or power up.
Unfortunately the bootloader never start and the board is blinking with my program instead. Can you please help what could be wrong so the bootloader doesnt start?
Does the bootloader recognize if there is USB connected automatically?
Thank you.
Jan
Solved! Go to Solution.
2024-03-18 07:53 AM - edited 2024-03-18 08:04 AM
Hi,
> Does the bootloader recognize if there is USB connected automatically?
If pin boot0 is hi at start/reset , bootloader tries all possible inputs (see rm ).
If boot0 lo , flash/user program is started.
So set pin PB8 with a pullup to VDD hi , seems on the board is no pullup.
Or use a jumper cable from JP7 to VDD on the pin header for boot0 .
2024-03-18 07:53 AM - edited 2024-03-18 08:04 AM
Hi,
> Does the bootloader recognize if there is USB connected automatically?
If pin boot0 is hi at start/reset , bootloader tries all possible inputs (see rm ).
If boot0 lo , flash/user program is started.
So set pin PB8 with a pullup to VDD hi , seems on the board is no pullup.
Or use a jumper cable from JP7 to VDD on the pin header for boot0 .
2024-03-18 07:53 AM
You're not in the mode that you highlighted. You want nSWBOOT0=0.
with nSWBOOT0=1 and BOOT0=0, you are booting to main flash (regardless of nBOOT0 and nBOOT1 settings).
> Does the bootloader recognize if there is USB connected automatically?
Yes, it will auto detect and connect.
2024-03-18 07:57 AM - edited 2024-03-18 08:02 AM
Here is the configuration I'm using now, but same result:
To make it more clear JP7 is connecting the BOOT.