2
\$\begingroup\$

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.

enter image description here

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.

asked Apr 4, 2023 at 8:44
\$\endgroup\$
1

1 Answer 1

3
\$\begingroup\$

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.

answered Apr 4, 2023 at 10:37
\$\endgroup\$
1
  • 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\$ Commented Apr 6, 2023 at 9:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.