Issue with Installing and Uploading to Blue Pill

How to install core into the Arduino IDE, and any OS specific issues
Post Reply
safi_huss
Posts: 1
Joined: Tue Oct 20, 2020 8:06 pm

Issue with Installing and Uploading to Blue Pill

Post by safi_huss »

I am a newbie here so I must be doing something wrong here.

I installed the bootloader (generic_boot20_pc13.bin) and installed the boards on ArduinoIDE, copied the Arduino_STM32 folder and ran the install_driver.bat file.

After the first code upload the blue pill since flashing with the bootloader. I get the following output in my IDE.

Code: Select all

Sketch uses 9968 bytes (7%) of program storage space. Maximum is 131072 bytes.
Global variables use 844 bytes (4%) of dynamic memory, leaving 19636 bytes for local variables. Maximum is 20480 bytes.
maple_loader v0.1
Resetting to bootloader via DTR pulse
Reset via USB Serial Failed! Did you select the right serial port?
Searching for DFU device [1EAF:0003]...
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...

Found it!

Opening USB Device 0x1eaf:0x0003...
Found Runtime: [0x1eaf:0x0003] devnum=1, cfg=0, intf=0, alt=2, name="STM32duino bootloader v1.0  Upload to Flash 0x8002000"
Setting Configuration 1...
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0400
bytes_per_hash=205
Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
error resetting after download: usb_reset: could not reset device, win error: A device which does not exist was specified.
Done!
Resetting USB to switch back to runtime mode


timeout waiting for COM3 serial
The blue pill is running the sketch though, but all subsequent uploads fail with the following:

Code: Select all

maple_loader v0.1
Resetting to bootloader via DTR pulse
Reset via USB Serial Failed! Did you select the right serial port?
Searching for DFU device [1EAF:0003]...
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...

Couldn't find the DFU device: [1EAF:0003]
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY


timeout waiting for COM3 serial

I also checked the device manager and the COM3 port which was available before the first upload is missing. There is also an Unknown USB device.

I don't know what I did wrong. Please help.
mrburnette
Posts: 410
Joined: Thu Dec 19, 2019 1:23 am
Answers: 1

Re: Issue with Installing and Uploading to Blue Pill

Post by mrburnette »

Welcome to the forum. Before next post, read viewtopic.php?f=2&t=301

timeout waiting for COM3 serial
Disregard... board programmed just fine... to reload, read viewtopic.php?t=223

Deeper explanations...
https://www.google.com/search?&q=timeou ... oforum.com


Ray
stevestrong
Posts: 459
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: Issue with Installing and Uploading to Blue Pill

Post by stevestrong »

In order the automatic reset (to DFU serial) to work you have to upload a sketch in which you use serial USB.
Otherwise you have to set BOOT 1 to high and reset the board each time before next upload. Then set BOOT1 back to low and reset.
Post Reply

Return to “Installation and OS related”