Go Down

Topic: Using the AVR JTAGICE3 programmer with Arduino IDE (Read 12892 times) previous topic - next topic

massive-inno

Hi all!

Is it possible to "add" the JTAGICE3 programmer to the list of programmers in the Arduino IDE?


Thanks in advance!
Regards,
Alex

massive-inno

I think its still not possible with this programmer...?
Am i forced to buy the Atmel AVR ISP MKII? :(

fungus


Am i forced to buy the Atmel AVR ISP MKII? :(


No.

There's lots of programmers to choose from.
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

massive-inno

Yes sure, but i wanted to upload sketches within the Arduino IDE via an alternative uploader - like the JTAGICE3 - but in the list of programmers there are not much available... :(

fungus


Yes sure, but i wanted to upload sketches within the Arduino IDE via an alternative uploader - like the JTAGICE3


JTAG is a different sort of programmer. You need ISP.


in the list of programmers there are not much available... :(


There's half a dozen as standard.

"USBtinyISP" is very common and easy to get: http://www.ebay.com/sch/i.html?_nkw=usbtinyisp

So is "USBasp": http://www.ebay.com/sch/i.html?_nkw=usbasp

(I prefer the six pin connector of the USBtinyISP - the USBasp needs an adapter to connect to Arduinos)

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

westfw

JTAGICE3 will do ISP uploads as well as JTAG.  I'm pretty sure that recent versions of avrdude will support JTAGICE3, so it's just a matter of configuration/etc.  You can probably do it by changing arduino/programmers.txt

massive-inno

But which protocol should i use in the programmers.txt for the JTAGICE3?
Others have 'stk500v1', 'stk500v2', 'usbtiny' and so on...

Thanks!

fungus


But which protocol should i use in the programmers.txt for the JTAGICE3?


Have you typed "JTAGICE3 with arduino" into google?

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

massive-inno

Well i solved it by my own...
I choosed the latest Arduino IDE build (1.5.7), where the avrdude supports JTAGICE3 ISP.
In programmers.txt i added following lines:
Code: [Select]

jtagice3.name=JTAGICE3
jtagice3.communication=usb
jtagice3.protocol=jtag3isp
jtagice3.program.protocol=jtag3isp
jtagice3.program.tool=avrdude
jtagice3.program.extra_params=-Pusb -B22


Working like a charm with my Arduino Uno! :)


Regards,
Alex

spoetnic

Hi Alex, thanx for your programmers.txt lines. I've got the JTAGICE3 now under the programmers too...BUT
I am unfortunately still not able to program the ATMEGA328 using the JTAGICE3 ISP. I am using an external power supply on the Arduino board, on the ICE, the red and green led are on, but uploading doesn't work, because no serial port is not found. What can be wrong?

Thx

westfw

Quote
because no serial port is not found.
You used "upload using programmer", and not just the upload command, right?
jtagice3 doesn't use a serial port, thus the "jtagice3.program.extra_params=-Pusb -B22" part of the programmers.txt change...

spoetnic

Ok, thanks for the help but I am really stuck here.

I am working with atmel studio for the first time now and bought an ICE3 debugger to do prototyping faster than I am used to in the Arduino IDE. (and being able to use the lockbits)

After reading / viewing several instructions on the internet of how to configure atmel studio with visual micro for arduino on the web, it's still quite fuzy how to configure the atmel studio for directly programming the arduino UNO board (with ATMEGA328p) board using either the comport for 'normal' serial programming OR using my new ICE3 to go a step further and use debugWire.

I've now used this tutorial: http://www.engblaze.com/tutorial-using-atmel-studio-6-with-arduino-projects/

Is this a good tutorial for programming the UNO board with atmel studio?

The problem now is (without using the ICE3), it complains about : "cannot find cygwin1.dll". I've tried really a lot of things put none of this solves this issue. I think it is crucial in order to program anything, because now avrdude.exe cannot start at all.

I hope someone can help me a little bit, maybe give me the correct settings, help with the cygwin problem, or with a good tutorial.

Thanks!

westfw

Quote
Is this a good tutorial for programming the UNO board with atmel studio?
It seems to pre-date the "visual micro" extension.  Did you want to use VM, or did you want to do your own raw install?
Since it seems to be "old", it may not be current with the post 1.0 Arduino Structure.



Quote
it's still quite fuzy how to configure the atmel studio for directly programming the arduino UNO board (with ATMEGA328p) board using either the comport for 'normal' serial programming OR using my new ICE3 to go a step further and use debugWire.
I haven't done full compile cycles under AS (just some debugging when I was really desperate!)  I would think that "normal serial programming" MUST be done using avrdude as an "external tool", while the ICE3 needs set up as an internal debugger.  It probably involves changing the "project configuration" relatively significantly.  So you probably need to look up separate tutorials; one for the ICE3 setup, and one for using avrdude as the external programmer.


spoetnic

Ok, I also think I need to solve this problem step by step. So first I want to learn how to upload a sketch with AS. I have installed arduino 1.5.8 and AS v.6.2 with the latest visual micro extension.
But I think it should be possible to upload directly from AS to the UNO board right?

So after configurating AS and setting the external tool with searchpath AS keeps complaining about : "cannot find cygwin1.dll"...

Does anyone know what to do? I am using a fresh install of windows7 with all the updates available. Fresh install of the latest arduino and Atmel Studio 6.2.

There is some problem with my AVRDUDE

If I open AVRDUDE.exe under    C:\Program Files (x86)\Arduino\hardware\tools\avr\bin
it gives the error: cannot find access point of procedure __ctype_ptr__ in DLL file cygwin1.dll
This needs to be fixed...but how?

ian332isport

I recently posted this in a different thread, but seems relevant here also.

http://forum.arduino.cc/index.php?topic=118089.0

Apparently AVRdude doesn't like the Jungo drivers that come with AVR Studio.

Ian.

Go Up