-
-
Notifications
You must be signed in to change notification settings - Fork 398
Missing /bin/arm-none-eabi-g++ after SAM boards installed on Raspberry Pi 4 #778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hi @pabolojo I have successfully compiled for Blue Pill even on the Zero using arduino-cli 0.11. Check out this comment of mine to get a command line you can try |
hi @ubidefeo I can afford not being able to compile on the raspberry pi 4 directly (it would be great to be able to do so but if its not possible i dont mind), but I need to be able to upload the sketch to the stm32 directly from the pi, if not, I would need to do lots of modifications on the design of my project. Do you know if there is any way to flash the hex file directly to the stm32 through the HID bootloader of the stm32, using the raspberry pi as host? I see that you are using the stm32duino:STM32F1 board, but I have installed the "official" STMicroelectronics board core for the STM32 (STM32:stm32), I dont know if other cores are compatible with the HID 2.2 bootloader of the STM32. |
I have quickly tested on Mac and it compiles but will have to investigate the behaviour on Pi 4 to come up with a reason why it fails. |
also a question: |
It seems that mine is also from Stm32duino, but I saw in your comment that you were compiling with stm32duino:STM32F1:genericSTM32F103C6 board, btw this is the link from the core that I am using: https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/master/STM32/package_stm_index.json I have managed to do a work around for my problem, I compile with the compile option and then I flash the .bin to the STM32 directly with the hid-flash program from STM32_HID_bootloader, that worked for me! |
@pabolojo I'm happy you sorted that out, but uploading with the As soon as I manage to fire up a Pi 4 I'll test with my Blue Pill, I have two and one should still have the HID bootloader on |
@pabolojo
then I realised the last parameter needed to be added to the
Once I have it running start to end on the Mac I'll move to the Pi 4 :) |
@pabolojo Now it works every time, though :D
Once that is all working in the IDE, you can use the following command to upload your That allowed me to have the sketch uploaded on Mac. |
As @cmaglie guessed, some tools are missing for the Raspian OS.
This happens using the When using the other index (http://dan.drown.org/stm32duino/package_STM32duino_index.json) has a different boards and tools configuration, compilation on the Pi works (as I point out in #755 ), as it doesn't rely on XPack tools but uses I don't have the knowledge to tell you which core is better than the other, so I'll try and drag @facchinm in this for his opinion, but the first index (using XPack) seems to be better organised, but I have no idea what the advantages of XPack tools are. Let's see if the |
The xPack binaries support more platforms, for one. There other advantages too (http://xpack.github.io), for example they can be added as dependencies to generic projects. |
thank you @ilg-ul |
Thank you! |
Since this is not an issue with the cli, but a problem with the core not having a release for linux arm64 I'd close that one. |
Just curious, is there support for Raspberry Pi OS in the latest Arduino tools? |
Sorry, could you be a little more specific? What do you mean by "Arduino tools"? If you wanted to ask if the CLI supports raspberry PI OS, yes. We provide binaries for linux arm, you can find more info in the documentation |
I'm not familiar with the Arduino tools, I mean everything required for practical work; if As far as I know, the xPack arm-none-eabi-gcc is used by the IDE version of Arduino for STM32; I'd be interested to know if it also works properly with |
If it works in Arduino IDE, it will also work with Arduino CLI. Arduino CLI just executes whatever command was specified by the STM32duino boards platform, using whatever tool version their package specified for use with the host architecture. So in the case of platform toolchains (vs the Arduino CLI binary and its "built-in" tools serial-monitor, serial-discovery, mdns-discovery, ctags), whether the user is using Arduino IDE or Arduino CLI is irrelevant. |
Great, thank you! |
Bug Report
I am trying to program an STM32F103C8 with the arduino-cli, I have already managed to install the STM32:stm32 core and the arduino:sam core, but have not achieved to compile anything.
Current behavior
Executing
I get the following output
Expected behavior
This command should compile the Blink example, but, as the output sais, the /bin/arm-none-eabi-g++ does not exist. Looking at the installation of the SAM boards, the arm-none-eabi is not installed under /bin/ but under /home/pi/.arduino15...
Is there a way to change the path where the arduino-cli is looking for the arm-none-eabi-g++ toolchain?
Environment
The text was updated successfully, but these errors were encountered: