Maple mini board - getting started

Hi, I'm no stranger to the normal Arduino boards (having a uno, mega, mini pro, and leonardo), but I decided to try a maple mini board, as the 3.3v voltage makes using it with a Raspberry pi much easier without having to use logic level converters....

So, I have come unstuck trying to actually load a sketch onto the board. I've plugged it in, made sure I have the right drivers, etc,etc and then uploaded it, and it seems to have bricked the board. I thought it might have been a hardware issue, so I got another, and did the same thing....

Doh.

So, 2 questions:

  1. How do I undo what I've done to the boards? I have a couple of USB programmers (UART and SPI) available, or, a bunch of arduino's to help.
  2. How do I get an Arduino bootloader onto the board, so I don't brick it again.....

Thanks!

What method did you use to upload to the board? There are several ways you can do it.
The good news is that the STM bootloader is stored in ROM so you can't overwrite that- you might have removed the Maple bootloader but you can always re-upload that using the factory bootloader.

1 Like

The board has integrated micro USB, so I used that.

The board(s) is the same as this:

1 Like

Instructions for reflashing the Maple Mini bootloader with USB-Serial are here: stm32duino bootloader · rogerclarkmelbourne/Arduino_STM32 Wiki · GitHub

Thanks, I'll give that a try

Ok, I did all that (wasn't exactly easy, the UART pins I had connected were not the ones I had to use, I had to loosely poke cables into the holes!), but eventually I got it working.

So, I then uploaded the sketch and...

The same flipping thing happened! It disappears from USB once the sketch is on it. But I'm not sure whether it worked or not, or whether this is normal.

This is the text it came up with when I uploaded the sketch.

maple_loader v0.1
Resetting to bootloader via DTR pulse
Searching for DFU device [1EAF:0003]...
Found it!

Opening USB Device 0x1eaf:0x0003...
Found Runtime: [0x1eaf:0x0003] devnum=1, cfg=0, intf=0, alt=1, name="STM32duino bootloader v1.0  Upload to Flash 0x8005000"
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=453
Starting download: [##################################################] finished!
error resetting after download: usb_reset: could not reset device, win error: A device which does not exist was specified.

state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present

Done!
Resetting USB to switch back to runtime mode
timeout waiting for COM4 serial