-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Adding SPI programming on a Raspberry Pi (from the IDE) #282
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
I have a semi-working proof of concept. Maybe you could take a look at it and we can discuss it further in this thread: It's currently implemented in SparkFun AVR Boards but the change could be applied to Arduino AVR Boards instead if this is something Arduino wants. |
Hi @lewispg228 ,
Once added, you can program the Arduino with |
Since there is some activity on this topic, I wanted to leave a note in case it might help someone else avoid the confusion I initially suffered: With the current 6.3.0-arduino14 version of AVRDUDE provided by Arduino, use of the linuxspi programmer will fail if run as non-root. This issue has since been fixed by facchinm/avrdude#2 but Arduino has not done an AVRDUDE release since that time. |
Closing this issue since a solution is available as mentioned in above post by @facchinm (#282 (comment)). |
@lxrobotics this proposal is about adding a linuxspi programmer option to the Tools > Programmer menu in the Arduino IDE so that this programmer can be used from inside the Arduino IDE. The comment you referenced is not at all a solution for that. I understand completely if the decision is that Arduino does not want to add official support for this programmer, but, if so, that should be stated clearly as the reason for closing the issue. I've been able to implement this, but it was blocked by a bug in avrdude. Although that that patch was merged long ago, there was no release of a new version of avrdude since then. I believe it might be in avrdude 6.3.0-arduino17 that comes with the newly released Arduino AVR Boards 1.8.1, though I haven't checked that yet since no versioning system is used in Arduino's avrdude development process. |
Sorry, I've apparently misread and will reopen this issue. In any case, it's wrongly placed here then and should be moved into the Arduino IDE repository. |
I think it makes sense in the ArduinoCore-avr repository. The reason being that the programmer definition would be added to the programmers.txt file in that repository. I'd be happy to submit a PR for that if Arduino is interested in this. If not, I will publish a 3rd party dummy hardware core that adds the linuxspi programmer definition, installable via Boards Manager. That solution is a bit less ideal due to the quirky way the Arduino IDE handles platform.txt in this usage. |
@per1234 can you please prepare such a PR? |
Hello everyone, I am looking to flash an ATmega328p with my raspberry Pi using the Arduino IDE. Is the solution available ? Or should we export the binary and flash through the terminal ? Thanks |
I've been working on a stand-alone AVR programming solution for SparkFun over the past couple years. Currently, we use Python (watching a GPIO) to engage a bash file that calls avrdude. We have found that the SPI hardware built into the raspberry pi is very reliable and it would be awesome to be able to also develop within the arduino IDE (on a raspi), and upload via SPI.
Would this be possible? Is it a crazy request?
The text was updated successfully, but these errors were encountered: