[SOLVED] Help i programmed my MM with STlinkV2

Maple Mini, Maple Rev3, Maple Rev 5 and Maple Ret 6, iTead Maple etc
Post Reply
tb1405
Posts: 5
Joined: Tue Nov 07, 2017 10:40 am

[SOLVED] Help i programmed my MM with STlinkV2

Post by tb1405 » Tue Nov 07, 2017 11:41 am

hello
i bought a maple mini Clone from Aliexpress.
I tried to program it via Usb but the device manager only find somethingy "m003" and something with "DFU".
After some tries i use the ST.link to programm. It works but now the pc doesn´t recognize the MM anymore.
Sorry for my english
Tim

victor_pv
Posts: 1741
Joined: Mon Apr 27, 2015 12:12 pm

Re: Help i programmed my MM with STlinkV2

Post by victor_pv » Tue Nov 07, 2017 5:31 pm

You likely overwrote the bootloader with ST-Link and now there is no USB bootloader in the maple mini.

Download the current bin from here:
https://github.com/rogerclarkmelbourne/ ... boot20.bin

Then flash it with the st-link.

There is more information about the bootloader in this link:
http://wiki.stm32duino.com/index.php?title=Bootloader

Basically the stm32f1 bootloader doesn't work over usb, only serial, so leaflabs developed a usb bootloader, and we have evolved it a bit further.
The link above is to the current one. After that the maple mini will be recognized as a DFU devide while in the bootloader. After it jumps to the sketch, should be recognized as serial device.

Make sure you have the maple drivers installed.

tb1405
Posts: 5
Joined: Tue Nov 07, 2017 10:40 am

Re: Help i programmed my MM with STlinkV2

Post by tb1405 » Tue Nov 07, 2017 8:15 pm

thanks for the fast reply
With wich program i can flash this Bootloader ?

tb1405
Posts: 5
Joined: Tue Nov 07, 2017 10:40 am

Re: Help i programmed my MM with STlinkV2

Post by tb1405 » Tue Nov 07, 2017 10:09 pm

okay iam already have the bootloader on the board and the Serial Monitor works with the arduino ide.
but i cant programm over the the arduino ide i get this error code
java.lang.UnsupportedClassVersionError: CliTemplate/CliMain : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: CliTemplate.CliMain. Program will exit.
Exception in thread "main" timeout waiting for COM4 serial

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

Re: Help i programmed my MM with STlinkV2

Post by RogerClark » Tue Nov 07, 2017 10:31 pm

Do you see the bootloader message sketch output when you open the serial monitor in the IDE?

tb1405
Posts: 5
Joined: Tue Nov 07, 2017 10:40 am

Re: Help i programmed my MM with STlinkV2

Post by tb1405 » Tue Nov 07, 2017 10:38 pm

yes
the problem was i had a old version of java.
Now it works :) !

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

Re: Help i programmed my MM with STlinkV2

Post by RogerClark » Tue Nov 07, 2017 11:38 pm

tb1405 wrote:
Tue Nov 07, 2017 10:38 pm
yes
the problem was i had a old version of java.
Now it works :) !
OK.

I sometimes see Java messages when there is a problem with the com port e.g. I've not selected it

Post Reply