Adafruit is open and shipping! Let's build back better, together!
0

Upload to Feather M0 Using Sloeber / Eclipse
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Upload to Feather M0 Using Sloeber / Eclipse

by gfvalvo on Thu Jun 28, 2018 12:56 pm

Hey all.

Any Sloeber / Eclipse users out there? If so, have been able to upload to a Feather M0 board? I have https://adafruit.github.io/arduino-board-index/package_adafruit_index.json included in "Third party index URLs" and the latest packages selected under "Platforms and Boards". My code compiles just fine, but the IDE pukes when I try to upload. Displayed in Console:
Starting upload
using arduino loader
Forcing reset using 1200bps open/close on portCOM24
PORTS { COM1, COM3, COM13, COM24,} / { config error:, see https://github.com/jantje/arduino-eclip ... issues/252,} => { config error:, see https://github.com/jantje/arduino-eclip ... issues/252,}
Comport reset took250ms
Using comportconfig error: from now onwards
Ending reset

Launching/bossac --port=config error: -U true -i -e -w -v D:\SloeberWorkspace\testSleep/Release/testSleep.bin -R
Output:
failed to upload

First time I’ve had this issue. Uploads work fine for other boards I’ve used: ESP8266 Feather Huzzah, Teensy 3.2, Uno. Also, upload to Feather M0 works fine with Arduino IDE.

BTW, Issue entered on GitHub: https://github.com/Sloeber/arduino-eclipse-plugin/issues/995
And here: http://forum.arduino.cc/index.php?topic=79595.msg3788591#msg3788591

Thanks in advance.

gfvalvo
 
Posts: 265
Joined: Fri Oct 07, 2016 1:35 pm

Re: Upload to Feather M0 Using Sloeber / Eclipse

by Seba_K on Fri Jun 29, 2018 12:13 pm

Hi,

I also use Eclipse with the Sloeber plugin, however on Linux. But I remember I always used the bossac command line manually because within Eclipse it wouldn't work. I recommend you try that, use the bossac line that the console shows you and just replace the "--port=..." part with the right COM port your Feather connects to.

Seba_K
 
Posts: 48
Joined: Mon Jan 18, 2016 4:26 pm

Re: Upload to Feather M0 Using Sloeber / Eclipse

by gfvalvo on Fri Jun 29, 2018 12:25 pm

Hi, thanks for the reply. I thought of the same idea this morning but haven’t had a chance to try it.

I’ll probably just copy the ‘bossac’ command and options that Arduino IDE uses and change the file to the .bin produced after compiling in Sloeber.

Question: Before running bossac, will I need to double-press the Feather’s reset button in order to expose the COM “download port” verses the port number that ends up being connected to “Serial”?

Thanks again.
Last edited by gfvalvo on Fri Jun 29, 2018 12:54 pm, edited 1 time in total.

gfvalvo
 
Posts: 265
Joined: Fri Oct 07, 2016 1:35 pm

Re: Upload to Feather M0 Using Sloeber / Eclipse

by Seba_K on Fri Jun 29, 2018 12:34 pm

Yes, you will have to put the Feather into bootloader mode to flash it, then check which COM port it is connected to, and use that in your bossac command. There is no timeout on the bootloader mode so you have plenty of time.

Seba_K
 
Posts: 48
Joined: Mon Jan 18, 2016 4:26 pm

Re: Upload to Feather M0 Using Sloeber / Eclipse

by gfvalvo on Sat Jun 30, 2018 8:15 am

Thanks @Seba_K, it worked!!!

gfvalvo
 
Posts: 265
Joined: Fri Oct 07, 2016 1:35 pm

Re: Upload to Feather M0 Using Sloeber / Eclipse

by Seba_K on Sat Jun 30, 2018 8:34 am

Great, good to hear!

I generally tend to prefer flashing my boards outside of Eclipse with bossac / avrdude, the implementation in the Sloeber plugin seems a bit shaky. But still, that combination is still the most useful I know for doing any serious development.

Seba_K
 
Posts: 48
Joined: Mon Jan 18, 2016 4:26 pm

Please be positive and constructive with your questions and comments.