blue pill upload only after reset

STM32duino bootloader aka Maple bootloader
Post Reply
charsi
Posts: 2
Joined: Sun Jul 23, 2017 5:59 am

blue pill upload only after reset

Post by charsi » Sun Jul 23, 2017 8:44 am

Hi

I got my first stm32 board - the blue pill yesterday and managed to get it up and running (after a few hiccups). However currently I am having to hit reset every time I want to upload a sketch using arduino ide. I have to time it perfectly so that when arduino tries to upload the chip still has its light blinking rapidly but this is a bit difficult sometimes. Any way to fix this?

User avatar
RogerClark
Posts: 7481
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: blue pill upload only after reset

Post by RogerClark » Sun Jul 23, 2017 10:14 am

You need to select the COM port in the IDE otherwise it wont reset

Also you need to select the correct board type in the IDE

charsi
Posts: 2
Joined: Sun Jul 23, 2017 5:59 am

Re: blue pill upload only after reset

Post by charsi » Sun Jul 23, 2017 2:55 pm

I've got '/dev/ttyACM0 (Maple Mini)' selected as the COM port and STM32F103C as the board type. So not sure what I am doing wrong.

I get the following error message if I try to upload without hitting reset button--

Code: Select all

dfu-util 0.8

dfu-util: Invalid DFU suffix signature
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

dfu-util: No DFU capable USB device available
Waiting for /dev/ttyACM0 serial...Done
lsusb lists my device as follows so it is definitely being recognised.

Code: Select all

Bus 001 Device 006: ID 1eaf:0004
However dfu-util doesn't list anything unless I run dfu-util -l right after pressing reset. In that case I get this --

Code: Select all

Found DFU: [1eaf:0003] ver=0201, devnum=5, cfg=1, intf=0, alt=2, name="STM32duino bootloader v1.0  Upload to Flash 0x8002000", serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=5, cfg=1, intf=0, alt=1, name="STM32duino bootloader v1.0  Upload to Flash 0x8005000", serial="LLM 003"
Found DFU: [1eaf:0003] ver=0201, devnum=5, cfg=1, intf=0, alt=0, name="STM32duino bootloader v1.0  ERROR. Upload to RAM not supported.", serial="LLM 003"

Post Reply