I have designed my own Board with an STM32F103 Chip. Now i want to add the feature that u can program the STM32 using USB connection. I watched the video https://youtu.be/VlCYI2U-qyM by Phil's Lab. I try to connect the Device with an USB, if this is done, in Device Manager (on Windows 11) the Device is Connected (the Power LED is lighting up) and listed as an Unknown Device.
When trying connecting the Board via the 'Connect' button in the CubeProgrammer, nothing happens and the following error message occurs.
Image as Text:
10:48:33 : UR connection mode is defined with the HWrst reset mode
10:48:33 : Error: Establishing connection with device failed
What I tried: I set the BOOT0 Pin, High, like Phil's Lab says in his video. And then reconnected the board to the power. I also tried multiple ways of connecting. But nothing really worked.
-
1\$\begingroup\$ This may be relevant. github.com/bigtreetech/EBB/issues/32 \$\endgroup\$Russell McMahon– Russell McMahon ♦2023年04月04日 10:38:58 +00:00Commented Apr 4, 2023 at 10:38
1 Answer 1
It will not work, because the STM32F103 factory bootloader does not support USB DFU.
If you want to have USB DFU, you must first program a custom bootloader which enables you with DFU.
-
1\$\begingroup\$ I don't have any better description and I don't know which bootloader from Github you mean. If you want to have a bootloader that can work over USB, you need to find one that suits your design and purposes, whether a DFU or some other kind of USB bootloader. I can't decide that for you. \$\endgroup\$Justme– Justme2023年04月06日 09:50:32 +00:00Commented Apr 6, 2023 at 9:50