Anyway to "factory reset"?

sgt_johnny
Tue Apr 04, 2017 3:14 pm
Hello!

I have bought a STM32F103 clone on ebay – it looks like this

I tried to flash the bootloader with the “STM32 flash demonstrator” but always getting “incorrect device signature”.
If i try to check if the serial works (with hpyer terminal, sending “DEL”) i get the “y” response, but only one time right after reset.

When i plug in usb, it installts a ComPort
The comport is labeled in the Arduino IDE as “Maple Mini”, in the Port menu i see exactly this: “COM3 (Maple Mini), COM4 (Arduino/Genuino Uno)”. The uno is mine.

This made me think, maybe the installed the MAPLE bootloader on that board, but sadly i cant upload a sketch trying all the Options. Always getting “DFU error”.

So… is there any way to install the standard bootloader?


stevestrong
Tue Apr 04, 2017 4:27 pm
You should select “Maple Mini” as target board in Arduino.
Which bootloader have you tried to flash?

sgt_johnny
Tue Apr 04, 2017 5:40 pm
I tried to flash “generic_boot20_pb12.bin” from here http://wiki.stm32duino.com/index.php?ti … bootloader, by that time, i did not knowing about the USB even working, i tried that out when nothing over serial worked.

When i select maple mini in the boards, i’m getting this error wehn uploading:

maple_loader v0.1
Resetting to bootloader via DTR pulse
Searching for DFU device [1EAF:0003]...
dfu-util - (C) 2007-2008 by OpenMoko Inc.
Couldn't find the DFU device: [1EAF:0003] This program is Free Software and has ABSOLUTELY NO WARRANTY


stevestrong
Tue Apr 04, 2017 6:04 pm
If you select the “Maple mini” as board, you only have two other options: “Orginal bootloader” or “STM32duino bootloader”.
You should not have any “CPU speed” option, which is only available for “Generic …” types.

Now, if you could not flash the STM32duino bootloader, then you should use the “original bootloader” option.

Btw, to flash the new bootloader you have to connect BOOT1 to GND and press simultaneously the two available buttons. This enters a mode in which you can flash the new bootloader over serial 1.


victor_pv
Tue Apr 04, 2017 9:18 pm
Are you sure the board is a maple mini clone and not a bluepill?
They look somewhat similar, but are not. If the board is a bluepill, it will not enumerate the USB port correctly when compiling for the maple mini.

If the board is indeed a maple mini clone, then you need to install the bootloader for the maple mini, not the generic one.
File maple_mini_boot20.bin from this repo:
https://github.com/rogerclarkmelbourne/ … 1/binaries


sgt_johnny
Wed Apr 05, 2017 11:20 am
Im not comming to the selection of the bootloader with the “STM32 flash demonstrator”,it cant make a connection.

edogaldo
Wed Apr 05, 2017 12:52 pm
sgt_johnny wrote:Im not comming to the selection of the bootloader with the “STM32 flash demonstrator”,it cant make a connection.

sgt_johnny
Thu Apr 06, 2017 4:25 pm
I just want to upload a sketch, but i guess the installed bootload does not match any “known” in the arduino software, since i never can upload. This is why i wanted to use the generic bootloader and then try again uploading

edogaldo
Thu Apr 06, 2017 5:05 pm
sgt_johnny wrote:I just want to upload a sketch, but i guess the installed bootload does not match any “known” in the arduino software, since i never can upload. This is why i wanted to use the generic bootloader and then try again uploading

stevestrong
Thu Apr 06, 2017 6:59 pm
Which OS are you using? Can you see the board under windows device manager when you connect over USB?

ag123
Fri Apr 07, 2017 9:51 pm
if you are not intending to flash the bootloader (requires a separate hardware), but rather to simply install a sketch, try the ‘perpetual boot loader mode’
http://docs.leaflabs.com/static.leaflab … oader-mode
viewtopic.php?f=32&p=25537#p25537
https://www.youtube.com/watch?v=rvNIeKuXsxM

normally after that the sketch should install over dfu via usb


Leave a Reply

Your email address will not be published. Required fields are marked *