I just thought that it would be kinda cool to program the board with my Pi
FYI: The board I’m trying to use is a F091RC.
The error: http://imgur.com/a/R4H9R
However someone has submitted a PR with the files to do this.
See
https://github.com/rogerclarkmelbourne/ … 2/pull/283
No one has had time to test whether this PR is OK, hence its not been included yet.
And after inclusion, it would need to be added to the board manager package, which is not maintained by me, but is done by @ddrown, who only updates it occasionally.
So. If you want to try this
You’d need to clone the repo into your Arduino/hardware folder
Then pull the PR to your clone
I’d recommend you contact https://github.com/tekk who created the PR, about the best way to install from github
[RogerClark – Tue Jun 27, 2017 1:24 am] –
There isn’t support for compiling on the RPi at the moment.However someone has submitted a PR with the files to do this.
See
https://github.com/rogerclarkmelbourne/ … 2/pull/283
No one has had time to test whether this PR is OK, hence its not been included yet.
And after inclusion, it would need to be added to the board manager package, which is not maintained by me, but is done by @ddrown, who only updates it occasionally.
So. If you want to try this
You’d need to clone the repo into your Arduino/hardware folder
Then pull the PR to your clone
I’d recommend you contact https://github.com/tekk who created the PR, about the best way to install from github
I cloned the repo with the pull request included and put it in /home/pi/Arduino/hardware I can see all the boards, but if I try to compile I get the following error (see picture in link).
FYI: compiling for an Arduino board works on the other hand..
I wonder if you are mixing STMs core with the PR for the LibMaple core ??
[RogerClark – Tue Jun 27, 2017 12:54 pm] –
There is something odd with the board name, as lib maple does not support the nucleo 03I wonder if you are mixing STMs core with the PR for the LibMaple core ??
Yes, I added the Nucleo F091RC manually, but that doesn’t matter because even when leaving it original and compiling for a Maple for example gives me the same result.
If so then they will install the arm-none-eabi-gcc/g++ toolchain.
You will probably have to edit your platform.txt file and change the path to point at the sam toolchain. Or… remove the directory portion of the command and make sure you have arm-none-eabi-gcc in your user PATH.
It seems like you are confused about which stm32 core you are using? Are you using the one from ST? or the one from Roger? or something else?
[Rick Kimball – Tue Jun 27, 2017 1:24 pm] –
Do the Arduino SAM and SAMD boards work?If so then they will install the arm-none-eabi-gcc/g++ toolchain.
You will probably have to edit your platform.txt file and change the path to point at the sam toolchain. Or… remove the directory portion of the command and make sure you have arm-none-eabi-gcc in your user PATH.
It seems like you are confused about which stm32 core you are using? Are you using the one from ST? or the one from Roger? or something else?
Actually I would like to use this https://github.com/stm32duino/Arduino_Core_STM32 as it includes my board. And yes you are right I can’t seem to compile for SAM and SAMD boards as well.
Can you point out what I specifically need to change? I would appreciate that a lot! ![]()
https://www.arduino.cc/download_handler … arm.tar.xz
That should have a board support for the SAMD and SAM
[Rick Kimball – Tue Jun 27, 2017 1:47 pm] –
First step have you installed the arduino for arm?https://www.arduino.cc/download_handler … arm.tar.xz
That should have a board support for the SAMD and SAM
-deleted-
[Rick Kimball – Tue Jun 27, 2017 3:15 pm] –
https://github.com/stm32duino/wiki/wiki … repository
Ok, almost there.. now I get an error after compilation, so I it can’t upload to the board..
The error in the picture below is in dutch, but it translates to “Can’t execute wrong executable file”
… or
You change to the upload method to “Mass Storage” , recompile and copy the .bin file it creates in /tmp/arduino_build_xxxx/sketchname.ino.bin and copy it to NODE_R091RC disk.
[Rick Kimball – Tue Jun 27, 2017 3:49 pm] –
You are failing because it is trying to run an intel executable on an arm processor. You need to replace the intel binaries with arm binaries. That means compiling the source and putting the exectuables in the right place.… or
You change to the upload method to “Mass Storage” , recompile and copy the .bin file it creates in /tmp/arduino_build_xxxx/sketchname.ino.bin and copy it to NODE_R091RC disk.
Well https://github.com/rogerclarkmelbourne/ … /pull/283 is a ARMv7 version, I tried this one now but it gives me the following error. It’s says it can’t find the shared libraries but they are in home/pi/Arduino/hardware/stm/tools/linux/stlink/st-flash/lib
/home/pi/Arduino/hardware/stm/tools/linux/stlink/st-flash: error while loading shared libraries: libstlink-shared.so.1: cannot open shared object file: No such file or directory
https://developer.arm.com/open-source/g … /downloads
[GianniDPC – Tue Jun 27, 2017 4:11 pm] –
Well https://github.com/rogerclarkmelbourne/ … /pull/283 is a ARMv7 version, I tried this one now but it gives me the following error. It’s says it can’t find the shared libraries but they are in home/pi/Arduino/hardware/stm/tools/linux/stlink/st-flash/lib
/home/pi/Arduino/hardware/stm/tools/linux/stlink/st-flash: error while loading shared libraries: libstlink-shared.so.1: cannot open shared object file: No such file or directory
[ddrown – Tue Jun 27, 2017 9:08 pm] –[GianniDPC – Tue Jun 27, 2017 4:11 pm] –
Well https://github.com/rogerclarkmelbourne/ … /pull/283 is a ARMv7 version, I tried this one now but it gives me the following error. It’s says it can’t find the shared libraries but they are in home/pi/Arduino/hardware/stm/tools/linux/stlink/st-flash/lib
/home/pi/Arduino/hardware/stm/tools/linux/stlink/st-flash: error while loading shared libraries: libstlink-shared.so.1: cannot open shared object file: No such file or directory
Why haven’t you tried the mass storage approach yet? It doesn’t seem like you are using the debug features of the stlink. The whole idea of putting a mass storage device as the upload method on the nucleo boards was to make it simple to use with no extra drivers required.
You can clone this repo https://bitbucket.org/throwbin/arduino_core_stm32/src in /home/pi/Arduino and it all should work well straight away (after selecting your board ofcourse).



