-
Notifications
You must be signed in to change notification settings - Fork 76
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
Arduino DUE Support #33
Comments
Yes, probably. Can you help me out by giving me an example command line? One that the Arduino IDE generates, or one that you can use on the console? |
Looking into this the Due uses bossac rather than avrdude. The plugin was architected to support different flashing tools but right now is only set up with avrdude. Adding bossac as a flashing method won't be too hard, but I won't be able to test it as I don't have a Due to try to flash. If you can give me an example command line and a few days I'll get something together for you to test. |
Hi. Best regards Salvatore |
OK, I've had a go at adding the new method. I had to re-do the plugin's settings UI a bit. Once configured the plug-in will run a command that looks like this: You can install the test version manually using the plug-in manager from here: I'm reasonably confident it will work. I'm interested to know if the progress bar in the UI updates correctly. Whether it works or not, can you send me the octoprint.log file and the plugin_firmwareupdater_console.log file so I can confirm what success looks like? |
By the way, you need to install bossac on your OctoPrint server with the command line |
Hi. The plugin does not work, it seems that it does not find the serial port; I attach the logs you requested. octoprint.log Ciao Salvatore |
Which port is the OctoPrint server connected to, native or programming? Can you try the other one? |
OK, comparing to the Arduino IDE it looks like the programming port is the one bossac wants to use, so that should be OK. I think the problem may be that the due needs to be reset/erased before flashing starts: It seems like the Arduino IDE installs a variant of bossac which is tweaked to do this automatically, and I assume this is not the same as the version installed by apt-get. Are you willing to try pressing the 'erase' button on your Due before attempting to flash it with the plugin? I don't have a Due and only know what little I've read about programming them. I don't know what it will do to the Due or what you might need to do to get the firmware back onto it afterwards. Presumably you could re-flash it from the Arduino IDE. If that does work it seems like there are a couple of ways to trigger the reset/erase so I could incorporate that into the plug-in's flash routine. |
Actually, can you try flashing the firmware using the Native port? Even though OctoPrint cannot connect to it, the MK4Duo docs say to use the Native port for firmware uploads. https://github.com/MKFirmware/MK4duo/blob/master/Documentation/Compilation.md It could be that you need one port for OctoPrint and another port for firmware flashing. Ben |
Doing more reading... The arduino version of bossac was merged into the main branch a year or so ago, before version 1.7.0, so that's not an issue. But... apt-get installed version 1.3a of bossac on my Raspberry Pi, so it looks like the new version needs to be built from source.
Then, the Arduino IDE has a flag ( I've ordered a cheap Due clone from eBay. Once I get my hands on it I should be able to get this working :-) Ben |
Hi Ben. I tried to connect both USB ports, but with none it works Salvatore |
Hi Ben. Have you seen this link? Bye. Salvatore |
I think I've got a method to do the reset before trying to use bossac to flash the board. As soon as the Due I've ordered arrives I'll be able to give it a go. If that doesn't work I'll look at piupdue. Thanks! Ben |
I got my Due board and have this working. It only works with specific versions of bossac - the one that comes with the Arduino IDE, or v1.7.0. It does not work with 1.8.0 or the master, as they seem to have changed the options and removed some of the Arduino-specific goodies (such as the ability to reset the board with the
Let me know how it goes. Ben |
@Laudix64 did you have a chance to test? |
Hi Ben.
I read your message only today, my printer are in mantenance.
I try as soon as possible
Bye
Salvatore
2018-02-20 10:57 GMT+01:00 Ben Lye <notifications@github.com>:
… @Laudix64 <https://github.com/laudix64> did you have a chance to test?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AiZjnXzA5Mjx2EgX0RO6I91yXMlgStz3ks5tWpcHgaJpZM4R27L3>
.
|
Tested the last due flashing method and im happy to report it works, great job! -Hazel |
Thanks, @Hazel273. I have a few doc updates to finish then I'll push the new release out. |
I've released v1.0.0 with Due support! |
This issue has been automatically locked because there was no further activity after it was closed. Please open a new issue for any related problems. |
Hi.
Can you add RADDS and Arduino Due support?
Best regards
Salvatore
The text was updated successfully, but these errors were encountered: