Spark Logic

Maple Mini + Stable ArduinoEclipse/UBUNTU 14.04

Hello,
I have problem with compiling basic example Blink.ino for Maple MiniMaple MiniDevelopment and computing boards…8MHz petertumler Thu Sep 24, 2015 10:58 am Hi, I’m trying to underclock a STM32F103 ( Maple Mini ) to 48MHz (for energy efficiency reasons). According to the datasheet .. The full…View in hardware catalog under Ubuntu 14.04 LTS. I am new in C++ programming. First,I tested this example Blink.ino in Arduino IDE under Ubuntu 14.04 and it works fine. But I need work in Eclipse. I have had installed:

1/ Arduino IDE – version 1.6.5
2/ Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog in /opt/arduino-1.6.5-r5/hardware
3/ stable version of ArduinoEclipse – it is moved into opt/eclipseArduino
from: http://eclipse.baeyens.it/stable-linux.html
4/ I set path in EclipseArduinoIDE/Window/Preferences/Arduino:
Private Library path: /opt/arduino-1.6.5-r5/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /libraries
Private Hardware path: /opt/arduino-1.6.5-r5/hardware/

5/ some changes according to (http://www.stm32duino.com/viewtopic.php?t=314):
******************************************************************************************
add lines:
file: Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /platform.txt

build.use_archiver=false
build.system.path={runtime.platform.path}/system
bootloader.tool=maple_upload

change lines:

tools.maple_upload.path.linux={runtime.platform.path}/../tools/linux
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/

file: Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /tools/linux/MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog _upload
before ${DFU_UTIL} line:
DIR=$( cd “$( dirname “${BASH_SOURCE[0]}” )” && pwd )
$DIR/reset.py
sleep 1
change line:
${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R
***********************************************************************************************

Then I compile example and I have this error:

16:30:08 **** Incremental Build of configuration Release for project test ****
make all
Building file: ../.ino.cpp
Starting C++ compile
“/bin/arm-none-eabi-g++” -c -g -Os -DDEBUG_LEVEL=DEBUG_NONE -MMD -ffunction-sections -fdata-sections -nostdlib –param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog _mini -DVECT_TAB_ADDR=0x8005000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -mcpu=Cortex-M3Cortex-M3Microcontrollers and processors…get this error arm-none-eabi-g++: error: unrecognized command line option '-CC -mcpu= cortex-m3 ' RogerClark Sun May 15, 2016 6:25 am Fixed it @vassilis do a pull from my repo to…View in hardware catalog -DF_CPU=72000000L -DARDUINO=10606 -DARDUINO_MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog _MINI -DARDUINO_ARCH_STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog -DMCU_STM32F103CBSTM32F103CBMicrocontrollers and processors…6 menu.device_variant.STM32F103C8.upload.maximum_data_size=20480 menu.device_variant. STM32F103CB =STM32F103CB (20k RAM. 128k Flash) menu.device_variant.STM32F103CB.build.cpu_flag…View in hardware catalog -DSERIAL_USB -mthumb -march=armv7-m -D__STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog __ -DMCU_STM32F103CBSTM32F103CBMicrocontrollers and processors…6 menu.device_variant.STM32F103C8.upload.maximum_data_size=20480 menu.device_variant. STM32F103CB =STM32F103CB (20k RAM. 128k Flash) menu.device_variant.STM32F103CB.build.cpu_flag…View in hardware catalog -DSERIAL_USB -mthumb -march=armv7-m -D__STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog __ “-I/opt/arduino-1.6.5-r5/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /system/libmaple” “-I/opt/arduino-1.6.5-r5/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /system/libmaple/include” “-I/opt/arduino-1.6.5-r5/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /system/libmaple/STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /include” “-I/opt/arduino-1.6.5-r5/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /system/libmaple/usb/STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog ” “-I/opt/arduino-1.6.5-r5/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /system/libmaple/usb/usb_lib” -I”/opt/arduino-1.6.5-r5/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /cores/MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog ” -I”/opt/arduino-1.6.5-r5/hardware/Arduino_STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog /STM32F1STM32F1Microcontrollers and processors…w I am not able to compile. Error message: “C:\arduino-1.6.12\hardware\Arduino_STM32\ STM32F1 \cores\maple/boards.h:39:25: fatal error: board/board.h: No such file or directory” I…View in hardware catalog /variants/MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog _mini” -MMD -MP -MF”.ino.cpp.d” -MT”.ino.cpp.o” -D__IN_ECLIPSE__=1 -x c++ “../.ino.cpp” -o “.ino.cpp.o” -Wall
/bin/sh: 1: /bin/arm-none-eabi-g++: not found
make: *** [.ino.cpp.o] Error 127

16:30:09 Build Finished (took 148ms)

I try to find the file „ /bin/arm-none-eabi-g++“ and here is the place where I found it:

/home/core2pc/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin

Could somebody help me what is wrong? I need upload firmware into Maple MiniMaple MiniDevelopment and computing boards…8MHz petertumler Thu Sep 24, 2015 10:58 am Hi, I’m trying to underclock a STM32F103 ( Maple Mini ) to 48MHz (for energy efficiency reasons). According to the datasheet .. The full…View in hardware catalog under Ubuntu.

Thank you.

Tomas

Replies20

Sun Apr 17, 2016 6:13 pm

There is a problem with the 4.9 toolchain of ubuntu/debian.
For some strange reason the usb serial functionality is not working in the sketch. This problem made me crazy for hours trying to resolve it.
Remember that the usb-serial functionality is embedded in the sketch with libmaple library. You have to use the 4.8 toolchain provided by arduino.

http://www.stm32duino.com/viewtopic.php … 049#p11049

Sun Apr 17, 2016 10:14 pm

The way I usually do the tool chain install is to use the Arduino.cc IDE, then use Board Manager to install “Arduino DueArduino DueDevelopment and computing boards… tool chain install is to use the Arduino.cc IDE, then use Board Manager to install “ Arduino Due ” … the tool chain gets installed as a by-product. But if you are not as lazy as…View in hardware catalog ” … the tool chain gets installed as a by-product. But if you are not as lazy as I, you can do this manually.

Ray

Sun Apr 17, 2016 10:17 pm

Slammer wrote:There is a problem with the 4.9 toolchain of ubuntu/debian.<…>

Mon Apr 18, 2016 1:38 am

While not on UBUNTU I have been working some this weekend with the OSX eclipse LUNA.

It seems important that the compiler build flags be set to match those produced by the Arduino IDE. (really by our STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog board.txt and platform.txt instances.)

The other thing I had to do was add some of these compiler flags to the preprocessor include paths etc in the project preferences. Otherwise the index scanner would give 100s of bogus c syntax errors.

That meme above with the confounded fellow certainly does capture how Eclipse sets properties and etc. Pay close attention to the etc. One has to set the compiler flags in the “CDT User Setting Entries” I guess somewhere in all this there is is a unicorn pony that farts rainbows …

Mon Apr 18, 2016 1:58 am

sheepdoll wrote:
<…> I guess somewhere in all this there is is a unicorn pony that farts rainbows …

Mon Apr 18, 2016 9:49 am

Hello all,
thank you for your answers, but I need step by step help what is wrong.

Tomas

Mon Apr 18, 2016 9:55 am

Slammer wrote:There is a problem with the 4.9 toolchain of ubuntu/debian.
For some strange reason the usb serial functionality is not working in the sketch. This problem made me crazy for hours trying to resolve it.
Remember that the usb-serial functionality is embedded in the sketch with libmaple library. You have to use the 4.8 toolchain provided by arduino.

http://www.stm32duino.com/viewtopic.php … 049#p11049

Mon Apr 18, 2016 12:34 pm

Tomas, I apologize for my attempt at humor in what is a serious thread for you. I know a few members use Eclipse, but I did a quick Google search on our site just to jog my brain and I do not see anything with a step-by-step guide. As you are aware, STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog duino.com is geared more toward the Arduino IDE, but some of our members are technically very broad in their knowledge; hopefully you’ll get an answer soon.

Regards,
Ray

Mon Apr 18, 2016 1:03 pm

TomCZ wrote:Hi Slammer,
I think, that the problem is not in version of toolchain (there is installed 4.8 version).
Tomas

Wed Apr 20, 2016 9:22 am

Hi all,
I tried to set the path in ArduinoEclipse, but I was not successfull. It seems that path was set (during installation) correctly. One thing is not clear. There is missing the definition of environment variable.
It is probably the similar problem as in this thread:

https://github.com/arduino/Arduino/issues/2982

But I did not catch how this was solved. I tried to add one missing environment variable manually (A.RUNTIME.TOOLS.ARM-NONE-EABI-GCC.PATH), but there was not possibility to save it.

Another not clear thing is the file “platform.txt”. This file is on two places, but I don´t know where is the correct place.

I tried to compile the example with Arduino Eclipse under Windows 7, but I found the same compile error.
It seems like a complicated problem, that is for somebody who knows Eclipse very well :( .

Cheers,

Tomas

Fri Apr 22, 2016 12:11 am

You could install Atollic’s free Eclipse-based IDE with GCC on Linux, WIndows, Mac. See how it does paths.

On the TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog PJRC forum, you can see long threads of frustrated users trying to configure Eclipse.

I used Eclipse for a year, with an ARM7 target. On windows. The more I used it, the more I hated its obtuse nature and lack of a intuitive user interface.

Visual Micro that is Arduino-esque, uses the screwy Arduino build process and is much better UI and IDE, but is Windows only.

Tue Apr 26, 2016 8:46 pm

stevech wrote:You could install Atollic’s free Eclipse-based IDE with GCC on Linux, WIndows, Mac. See how it does paths.

On the TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog PJRC forum, you can see long threads of frustrated users trying to configure Eclipse.

I used Eclipse for a year, with an ARM7 target. On windows. The more I used it, the more I hated its obtuse nature and lack of a intuitive user interface.

Visual Micro that is Arduino-esque, uses the screwy Arduino build process and is much better UI and IDE, but is Windows only.

Wed Apr 27, 2016 4:33 am

Visual Micro w/Visual Studio Community, both 100% free, is best of breed but Windows-only.

Wed Apr 27, 2016 1:02 pm

stevech wrote:Visual Micro w/Visual Studio Community, both 100% free, is best of breed but Windows-only.

Wed Apr 27, 2016 7:54 pm

indeed.
Shows that apps can be good despite OS. Just look at OSX (!)

My day to day IDE is IAR (professional work). It is like a pair of perfectly fitting deck shoes (of which I have 6 pairs).

Wed Apr 27, 2016 8:42 pm

stevech wrote:indeed.
Shows that apps can be good despite OS. Just look at OSX (!)<…>

Thu Apr 28, 2016 4:08 am

For years, in the 80’s I made my living as a developer using Unix System V on SUN Sparcstations. Then DEC Alpha workstations (first 64 bit desktop) running their variant of BSD.

One gets tired of typing shell commands and grep’ing for every little thing.

In that era, as the mouse became popular, I recall a guy in our labs who refused to use a mouse. Died in the wool keyboarder. He said the mouse and GUI were stupid and he didn’t need it.

Thu Apr 28, 2016 1:21 pm

stevech wrote:For years, in the 80’s<….>
In that era, as the mouse became popular, I recall a guy in our labs who refused to use a mouse. Died in the wool keyboarder. He said the mouse and GUI were stupid and he didn’t need it.

Thu Apr 28, 2016 4:47 pm

the anti-GUI person I mentioned in the post was a lead developer of apps for our customers. We didn’t have “IT”. We had a small Burroughs minicomputer and 2 guys who coded our business needs into it and ran it. There were 300 people in our company.
One day, Ethernet on coax with taps entered our scene. Huge change from the sea of VT-100VT-100Modules, instruments and finished devices…. One day, Ethernet on coax with taps entered our scene. Huge change from the sea of VT-100 ’s on VMS that we developers used. A few years later, switched ethernet on twisted pair…View in hardware catalog ’s on VMS that we developers used.

A few years later, switched ethernet on twisted pairs came. Being used to 4KHz voice on copper pairs, I was blown away at the notion of doing megabits/sec on those crappy wires.

But, we digress.

Thu Apr 28, 2016 4:58 pm

stevech wrote:<…>We didn’t have “IT”. We had a small Burroughs minicomputer and 2 guys who coded our business needs into it and ran it. <…>

Post a reply

Optional · up to 10 MiB