Skip to content

support for other programmers (processing programmers.txt) #222

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

Closed
jfpoilpret opened this issue Feb 9, 2015 · 13 comments
Closed

support for other programmers (processing programmers.txt) #222

jfpoilpret opened this issue Feb 9, 2015 · 13 comments

Comments

@jfpoilpret
Copy link

Hi, I use Arduino Eclipse on Windows (28.12.14 archive) and I tried to perform upload through the ArduinoISP programmer.

It happens that on Windows, ArduinoISP uses a special driver upon USB, hence there is no COMx port associated with it when connected:

image

I pointed Arduino Eclipse plugin to Arduino IDE 1.5.8, that version includes the "arduinoisp" programmer.

I set this programmer in my projects settings without any COM port:

image

When I try to upload my sketch, I first get an error message:

image

If I click OK, I get the following in the console:

Launching D:/electronics/arduino/tools/arduino-1.5.8/hardware/tools/avr/bin/avrdude -CD:/electronics/arduino/tools/arduino-1.5.8/hardware/tools/avr/etc/avrdude.conf -patmega328p -carduinoisp -P -b19200 -D -Uflash:w:D:\electronics\projects\alarm-system\modules\ActivationModule/Release/ActivationModule.hex:i 

Output:
avrdude: Error: Invalid -P value: '-b19200'
         Use -P usb:bus:device

avrdude done.  Thank you.

I also tried to put a port that I don't use (COM3), but got the same result.

Then I verified the avrdude command line directly in a command prompt, but I just removed the -P and -b options:

D:/electronics/arduino/tools/arduino-1.5.8/hardware/tools/avr/bin/avrdude -CD:/electronics/arduino/tools/arduino-1.5.8/hardware/tools/avr/etc/avrdude.conf -patmega328p -carduinoisp -Uflash:w:D:\electronics\projects\alarm-system\modules\ActivationModule/Release/ActivationModule.hex:i 

Here is the result:

D:\>D:/electronics/arduino/tools/arduino-1.5.8/hardware/tools/avr/bin/avrdude -CD:/electronics/arduino/tools/arduino-1.5.8/hardware/
tools/avr/etc/avrdude.conf -patmega328p -carduinoisp -Uflash:w:D:\electronics\projects\alarm-system\modules\ActivationModule/Release
/ActivationModule.hex:i

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "D:\electronics\projects\alarm-system\modules\ActivationModule/Release/ActivationModule.hex"
avrdude: writing flash (11004 bytes):

Writing | ################################################## | 100% 13.62s

avrdude: 11004 bytes of flash written
avrdude: verifying flash memory against D:\electronics\projects\alarm-system\modules\ActivationModule/Release/ActivationModule.hex:
avrdude: load data flash data from input file D:\electronics\projects\alarm-system\modules\ActivationModule/Release/ActivationModule
.hex:
avrdude: input file D:\electronics\projects\alarm-system\modules\ActivationModule/Release/ActivationModule.hex contains 11004 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 9.64s

avrdude: verifying ...
avrdude: 11004 bytes of flash verified

avrdude: safemode: Fuses OK (H:05, E:DE, L:E2)

avrdude done.  Thank you.

Note that I also had to remove the -D option otherwise the upload would fail.

Would it be possible to adapt Arduino Eclipse plugin to also cover the ArduinoISP specific case?

@jantje
Copy link
Member

jantje commented Feb 9, 2015

It is possible. Feel free to do it :-)

@jantje jantje closed this as completed Apr 7, 2015
@jantje jantje added importance: improvement request Help wanted If you want to become a active contributor, start looking at this issue. labels May 27, 2015
@jantje
Copy link
Member

jantje commented May 27, 2015

reopened as I have no objection to implementing this but at this time no intention to do so.
By using labels I can now flag this better.

@jantje jantje reopened this May 27, 2015
@razerraz
Copy link

Don't know if it's the same issue, posting here in doubt
I have a bunch of ATMega32 & AVRISP MKII programmers.
I'm able to use it with arduino java interface, using "upload with a programmer", and in eclipse when using AVR project, but not with arduino-eclipse plugin
Since it seems simple to implement (just calling avrdude with correct parameters and hex file), I'm looking for a way to do that inside arduino-eclipse project
Cheers

@jantje
Copy link
Member

jantje commented Jun 17, 2015

@razerraz
feel free to implement.

@hasselk
Copy link

hasselk commented Feb 27, 2016

@jantje
Hi, could you show me a hint where the options for avrdude are handled? heavent found it yet..
i have to use an ISP programmer(buspirate) and the default "-D" option does not work with this setup, i always get verification errors. I´m using the nightly version

Thanks Hassel

@jantje
Copy link
Member

jantje commented Feb 27, 2016

you should probably start by reading these to get an understanding of how it works.
http://iloapp.baeyens.it/blog/blog?Home&post=22
http://iloapp.baeyens.it/blog/blog?Home&post=24

@jantje jantje changed the title Cannot use ArduinoISP programmer support for other programmers (processing programmers.txt) Mar 18, 2016
@jantje
Copy link
Member

jantje commented Apr 22, 2016

I've started working on this.
Got a bit stuck on how the Arduino core team interpretes the programmers.txt content. So I asked for some clarification. http://forum.arduino.cc/index.php?topic=395666.0

@jantje jantje self-assigned this Apr 22, 2016
jantje added a commit that referenced this issue Apr 26, 2016
I did some quick tests and it seems to work but I expect problems to pop
up as it was way more complicated then I thought it would be
@jantje jantje added Status: waiting for confirmation fix works The nightly contains a fix but the fix has not yet been confirmed to work. and removed Help wanted If you want to become a active contributor, start looking at this issue. labels Apr 26, 2016
@jantje
Copy link
Member

jantje commented Apr 26, 2016

I'm not sure how good this will work. As i only have a arduino as isp there is not mutch I can test.

@razerraz
Copy link

Fantastic ! Grats !

I'm in the middle of too many other things right now, but count on me to give it
a try soon
On the other hand, I've always more issues when I upgrade your plugin with my
eclipse install mess (I don't use the standalone version and then have to fix
buildin variables to make it work, so maybe I'll need some time before be able
to test)

cheers

On Tue, 2016-04-26 at 15:40 -0700, jantje wrote:

I'm not sure how good this will work. As i only have a arduino as isp there is
not mutch I can test.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#222 (comment)
9081

jantje pushed a commit that referenced this issue May 4, 2016
@jantje
Copy link
Member

jantje commented May 17, 2016

@razerraz
If you have time to test, don't forget to report the results :-)

@jantje
Copy link
Member

jantje commented Jun 22, 2016

@razerraz
I'm still interested in your test results.

@razerraz
Copy link

What a coincidence, I try the thing today and it's working, at least with mkII
programmers.
Congrats and thanks, I'm considering now every day usage of you eclipse bundle
with students.

Bye

PS : I'll try soon another homemade uno base programmers to be sure and give my
feedback

On Wed, 2016-06-22 at 06:37 -0700, jantje wrote:

@razerraz
I'm still interested in your test results.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#222 (comment)
5710

@jantje
Copy link
Member

jantje commented Jun 22, 2016

thanks for the feedback :-)

@jantje jantje added status: fixed in 3.1 and removed Status: waiting for confirmation fix works The nightly contains a fix but the fix has not yet been confirmed to work. labels Jun 22, 2016
@jantje jantje closed this as completed Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants