Page 1 of 1

AVRdragon + ATMEGA32U4

Posted: Sun Jul 13, 2014 6:05 am
by TURBOTF
Hi Guys
I'm new to this program. I am having difficulty setting up a AVR dragon with ATMEGA32U4 either with JTAG or ISP. In the Compiler options under the programer tab I need some suggestions for the parameter settings.
The micro is running a 16mhz Xtal; and not useing a bootloader.

Thank you in advance.

Re: AVRdragon + ATMEGA32U4

Posted: Mon Jul 14, 2014 10:09 am
by Benj
Hello,

There's a post here that might help.
http://www.matrixtsl.com/mmforums/viewt ... gon#p45075

Let us know how you get on.

Re: AVRdragon + ATMEGA32U4

Posted: Tue Jul 15, 2014 10:32 am
by TURBOTF
no such luck. Im using 64 bit winodws, with avrstudio 6.2
There is no avrdragon.exe in avrstuddio6.2\tools\avrdragon

In my parts box I do have a USBtinyisp v3
I have never used it. Do you have the programmer parameters ?

Thanks you in advance

Re: AVRdragon + ATMEGA32U4

Posted: Tue Jul 15, 2014 10:44 am
by Benj
Hello,

Can you generate the hex file using Flowcode and then use AVR studio to transfer the hex file. I think things may have changed within AVR studio and they may no longer allow the external command tools to be called. Experienced similar issues with the AVRISP mkII.

Re: AVRdragon + ATMEGA32U4

Posted: Tue Jul 15, 2014 1:59 pm
by TURBOTF
I very fress to AVR IC's. Not able to use avr studio comfortably yet. I am able to create flowcharts so I thought id try flowcode.
Your programme compiles fine but is unable to upload to my dev board, due to not knowing how to setup theprogrammer parameters.

Regards,
Michael

Re: AVRdragon + ATMEGA32U4

Posted: Tue Jul 15, 2014 2:56 pm
by Benj
Hello,

I think AVR studio should see the dragon, allowing you to take the hex file produced by Flowcode and load it to the device.

Not used a dragon myself but there maybe someone who can help you with command line parameters for it.

This looks useful.

http://www.nongnu.org/avrdude/user-manu ... scriptions

Here are the options for the different modes:

dragon_dw Atmel AVR Dragon in debugWire mode
dragon_hvsp Atmel AVR Dragon in HVSP mode
dragon_isp Atmel AVR Dragon in ISP mode
dragon_jtag Atmel AVR Dragon in JTAG mode
dragon_pdi Atmel AVR Dragon in PDI mode
dragon_pp Atmel AVR Dragon in PP mode

Re: AVRdragon + ATMEGA32U4

Posted: Mon Aug 04, 2014 8:10 pm
by dazz
Hi
Can you try the following in the programmer tab of Build compiler options,bear in mind i dont have a dragon programer but the settings below should get you in the ball park if it doesnt work please can you post the msg.txt file it generates

64bit win
location

Code: Select all

C:\Program Files (x86)\Atmel\Atmel Studio 6.2\atbackend\atprogram.exe
parameters

Code: Select all

-t avrdragon -i jtag -d -chip  program -f  "%f.hex"

32bit win
location

Code: Select all

C:\Program Files\Atmel\Atmel Studio 6.2\atbackend\atprogram.exe
parameters

Code: Select all

-t avrdragon -i jtag -d -chip program -f  "%f.hex"
Regards
Dazz

Re: AVRdragon + ATMEGA32U4

Posted: Mon Aug 04, 2014 9:52 pm
by dazz
Benj wrote:Hello,

I think things may have changed within AVR studio and they may no longer allow the external command tools to be called. Experienced similar issues with the AVRISP mkII.

Hi Benj
they still have command line programing its linked above, so you should be able to use the avrisp (change dragon to avrisp ) but and heres a big but you may have to install libusb on top of the jango driver

Regards
Dazz

Re: AVRdragon + ATMEGA32U4

Posted: Wed Aug 06, 2014 12:12 pm
by dazz
Hi
further to my last post, im adding a rar file this has the libusb to install over the jungo drive(you will need the dragon plugged in to do this instructions on google) the latest avr dude exe and config(needs placing in flow code compilers avr bin folder),
lastly theres avr dudesss.exe (a very nice avrdude gui)
hope this helps

Regards
Dazz
A few tools.rar
(2.2 MiB) Downloaded 356 times