Spark Logic

Arduino IDE

gadget999 Fri Jun 05, 2015 10:11 pm

HI Guys

I have come here from the arduino forum – looking to get deeper into the Maple Mini

today i got my first boards in the post and have sucessfully programmed them using the Maple IDE

i followed the ibnstruction here — viewtopic.php?f=20&t=32

but the Arduino IDE does not want to play ball

this is thew error message i got below

————————————————————————————————————————————

Arduino: 1.6.4 (Windows 7), Board: “LeafLabs Maple Mini Rev 2 to Flash, Bootloader 2.0 (20k RAM,120k Flash)”

Sketch uses 12,564 bytes (10%) of program storage space. Maximum is 122,880 bytes.

Global variables use 3,104 bytes of dynamic memory.

java.lang.UnsupportedClassVersionError: CliTemplate/CliMain (Unsupported major.minor version 51.0)

at java.lang.ClassLoader.defineClass0(Native Method)

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$1(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)

the selected serial port at java.lang.ClassLoader.loadClass(Unknown Source)

does not exist or your board is not connected

Exception in thread “main”

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

—————————————————————————–

the boards i ordered look the same as this

http://www.ebay.co.uk/itm/New-1pc-ARM-C … 46331b4798

Any suggestions ?

Replies

ahull Sat Jun 13, 2015 10:51 am

I expect they are. The first board looks identical to one I have discussed here. If so, then be aware I haven’t found a way to isolate VBAT from the 3V3 rail yet.

akis_t Fri Jun 26, 2015 5:47 pm

That is right. I deleted everything from my hard drive and started again, using Arduino IDE 1.6.5-r2.

1) unzip Arduino IDE in C:\arduino, eg C:\arduino\arduino-1.6.5-r2
2) unzip the Arduino_STM32 into “C:\arduino\arduino-1.6.5-r2\hardware”, so: C:\arduino\arduino-1.6.5-r2\hardware\Arduino_STM32

at this stage the IDE now knows of all the STM32 boards but it cannot yet compile anything.

3) run the IDE and from the boards manager click Install on the SAM boards and wait until it downloads 588MB of data

unfortunately this download goes to AppData\Roaming. Crazy. This is where it went: C:\Users\akis\AppData\Roaming\Arduino15

4) close and re-run the IDE. Now you can compile the sketches.

I do not understand why it downloads 588MB into Roaming, at least it could ask me, and I’d have put it somewhere under C:\Arduino along with the rest of it…

Rick Kimball Fri Jun 26, 2015 6:04 pm

You could modify the platform.txt to and set the the compiler path to a destination of your choice. Not a solution for a newbie, but certainly doable. I set my path to nothing and then it finds the compiler binaries using my linux PATH. I can try out things with different version of the compiler just by changing my PATH and relaunching. However, this is not a solution for 99% of the people out there using this stuff.

-rick

akis_t Fri Jun 26, 2015 6:27 pm

I just realised this thread has 5 pages and I replied to a post from page 1 earlier.

I am still not sure how the IDE “points” to the AppData\Roaming directory, there must be a link somewhere that I have not yet found. I have multiple ” platform.txt” files but I cannot see any references to the AppData\Roaming directory, or to AppData\Roaming\Arduino15 which is where the ARM compilers are.

mrburnette Fri Jun 26, 2015 9:28 pm

akis_t wrote:<…>
unfortunately this download goes to AppData\Roaming. Crazy. This is where it went: C:\Users\akis\AppData\Roaming\Arduino15
<…>
I do not understand why it downloads 588MB into Roaming, at least it could ask me, and I’d have put it somewhere under C:\Arduino along with the rest of it…

RogerClark Fri Jun 26, 2015 10:23 pm

akis_t wrote:I just realised this thread has 5 pages and I replied to a post from page 1 earlier.

I am still not sure how the IDE “points” to the AppData\Roaming directory, there must be a link somewhere that I have not yet found. I have multiple ” platform.txt” files but I cannot see any references to the AppData\Roaming directory, or to AppData\Roaming\Arduino15 which is where the ARM compilers are.

akis_t Sat Jun 27, 2015 11:53 am

So in the current IDE (1.6.5) the Board Manager will download into your Roaming directory ?

I really did not find an obvious link in the various platform.txt files when I looked last night. Is there a link in there? If yes, can we not simply change the platform.txt file if yes before we use the BM?

RogerClark Sat Jun 27, 2015 12:02 pm

Everything works fine with version 1.6.5 there is no need to change anything

The only thing you must do, is install the Due board, as this installs the ARM compiler.

Sign in to reply