one download and no more

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
Yves13
Posts: 2
Joined: Thu Jan 21, 2021 10:46 am

one download and no more

Post by Yves13 »

Hello,
I am a beginner in the development of the STM32 and I am not a confirmed English speaker so I ask for your indulgence.

My configuration is: Windows7, arduino IDE 1.8.13, blu_pill stm32F103c8T6 module.

What I have done :
Installed the two drivers contained in Arduino_STM32-794 ..... ... F3020.
Installed flash loader stm32.
Installed the stm32 libraries in the Arduino IDE.
I downloaded the "generic_boot20_pc13.bin" bootloader via A9, A10 by setting the jumpers where it is necessary. Everything went well.
I put the jumpers back in place (boot0 and boot1 to 0).
I reconnected the USB port to the PC.
I wrote the classic 'Blink' script which I downloaded via USB and COM13.
Everything went well again, the LED is flashing correctly.
It is from there that everything goes wrong. The COM13 port disappears and does not reappear even after reset, restart and others.
I repeated the operation several times, changing a few parameters it always ends in the same way.
To be able to reload a program on the STM32, I must reload the bootloader.
It smacks of a beginner's fault, but I haven't found a trace of it in any forum, at least what I've looked at.
If the syntax is bad, it's Google's fault !!!!!
I can do better in French.
Merci pour votre aide.
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 27
Location: Prudnik, Poland

Re: one download and no more

Post by GonzoG »

If you use STM core then you need to enable USB CDC or there won't be a COM port.
feluga
Posts: 64
Joined: Wed Mar 18, 2020 2:50 am

Re: one download and no more

Post by feluga »

Hello @Yves13

There is nothing wrong, actually. :)

Once you compile a sketch, such as Blink.ino, with the option <Upload Method: "STM32duino bootloader">, all you need to do is to wait for the message below in the console window at the bottom of the IDE and then just press and release the RESET button (pulse it fast, like in less than a second).
It'll upload the binary using the USB.

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...

Have fun!
Yves13
Posts: 2
Joined: Thu Jan 21, 2021 10:46 am

Re: one download and no more

Post by Yves13 »

Hello,
thanks for your quick replies.
I immediately tested the "GonzoG" solution, it works wonderfully. I keep the "feluga" solution in reserve just in case!
Without wanting to abuse your kindness, where can we find the meaning and use of all the options offered by in "tools" of IDE 1.8.13?
Thank you again, I will finally be able to study the STM32. :P :P
Post Reply

Return to “IDE's”