-
-
Notifications
You must be signed in to change notification settings - Fork 398
Arduino Cli is not working on rpi zero w. #755
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 @raj-priyanshu, Thanks! |
still getting the similar problem. i am connecting the board with gpio serial and expecting only |
@raj-priyanshu Can you please confirm that you installed the Thanks! |
@rsora Edit: I am still confused about this. -> I am getting this output even without connecting the board. here is the output without the board connected. |
I'll ask to @per1234 to chime in as I'm not an expert in the STM32F1 chip, from CLI side it seems to me that everything was done correctly by the user. Maybe this particular board requires some additional config parameters to pass via FQBN? |
hi @raj-priyanshu Let me share with you what Per found out and what I'm up to in order to resolve the issue and point you in the right direction. I brought myself up to speed with STM32duino and setup a Pi Zero with Arduino-CLI which works well, and as soon as I have an F103 with bootloader I'll attempt what you are having problems with. Here's what Per found out and observed in our conversation based on you referring to GPIO serial on the Pi.:
The first outcome is not seeing a board name, which is normal because boards can be identified solely from their USB VID:PID pair, while a serial port is just a serial port. As I gathered more information I also found out that you'll need the pins BOOT0 set to HIGH and BOOT1 set to LOW in order to be able to upload a new firmware via the Maple bootloader. My suggestion is that you begin with making sure BOOT0 and BOOT1 are properly configured and that you add the
and let me know. |
Hi @ubidefeo, Thanks for covering the issue Here are the steps I did for testing:
I got this result:
I tried with usb to ttl serial cable on Ubuntu 20.04 and successfully uploaded the code. |
hey @raj-priyanshu I have failed to hack my ST-Link into a bare board, but tomorrow I'm receiving a blue pill. I'm concerned by this message Keep you posted, and thank you for helping us squash some bugs 🙏🏼 |
Hi @ubidefeo... |
That is an interesting turn of events, but before blaming the ARMv6 version I'd like to look at why it shouldn't work on the Pi.
|
Hi @ubidefeo, |
All right, I'm happy you picked our CLI for your needs and I'll further investigate this with the team. Please feel free to propose features, we're at a phase of the project in which we can still shape a lot and you'll see more releases coming out as we add/remove/adjust workflows based on users' needs Thank you for helping hunt this one down for now |
hi @raj-priyanshu I received my Blue Pill boards yesterday and this morning I uploaded the bootloader and managed to make it work on my Mac.
Honestly I think that the Pi Zero is excruciatingly slow to work with, and I don't think anyone should go through the pain of a simple Blink sketch taking forever to compile and upload, but we'll investigate this error a bit further. @cmaglie , care to take a look at this error? |
Thanks, I think it is not easy and worth enough to solve now. But entire logic to work with rpi zw and Arduino cli was to easy to update the binary without using some extrnal bridge. Also I tried to get bin file from Gui Arduino but I found it only generate elf for stm32. May be another bug. It was the primary reason to do this. Also, I liked cli version. However. I will wait for the future replies. |
my pleasure, @raj-priyanshu I can tell you that a Serial Monitor is in our plans, but for now I suggest you get acquainted with the You can definitely save the fqbn as a profile, but we're still working on the most convenient way to do this. Your are all great points, by the way, and I will be taking notes of this. Be patient, good things are coming :) u. |
Hi @ubidefeo, |
I look forward to the rest of the team seeing this :D |
Hi @ubidefeo, |
We just finished reviewing this, and it seems that the upload tool is not available for I'm afraid you'll have to be more patient and we don't have an ETA for this, but thanks to you in the next release (nightly) you'll get better errors during core installation and compile/upload |
Hi @ubidefeo, |
The two fixes are now merged (#794 and #795), so the cli should not crash anymore. it should be available as "nightly build" here https://arduino.github.io/arduino-cli/installation/#download-a-nightly-build within 24 hours (the nighlty build job runs every night at 1 AM). You can also cross-build the CLI from any other PC by running the following command on the root of the git repository:
it will produce an |
@raj-priyanshu For documentation on building for I'd like to close this issue not too late, since it's not something we can address and needs to be brought forward to the developers/maintainers of the core you're trying to use. u. |
@ubidefeo ok, and thanks for advice.😀 I will try to find some other suitable architecture.😀 |
Thank you, it's been nice bug-hunting with you :) |
Bug Report
This issue is already discussed before. here, #340
But, It's old Arduino-CLI version (0.4.0) and it is not able to find the board(STM32) connected to it. So I tried arm7 build and it is able to find the board but give the unknown in board name, it can compile successfully it but give some memory error when I trying to upload it.
The text was updated successfully, but these errors were encountered: