AVRdragon + ATMEGA32U4

Moderator: Benj

Post Reply
TURBOTF
Posts: 3
Joined: Sun Jul 13, 2014 5:25 am
Has thanked: 1 time
Contact:

AVRdragon + ATMEGA32U4

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: AVRdragon + ATMEGA32U4

Post 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.

TURBOTF
Posts: 3
Joined: Sun Jul 13, 2014 5:25 am
Has thanked: 1 time
Contact:

Re: AVRdragon + ATMEGA32U4

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: AVRdragon + ATMEGA32U4

Post 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.

TURBOTF
Posts: 3
Joined: Sun Jul 13, 2014 5:25 am
Has thanked: 1 time
Contact:

Re: AVRdragon + ATMEGA32U4

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: AVRdragon + ATMEGA32U4

Post 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

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: AVRdragon + ATMEGA32U4

Post 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
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: AVRdragon + ATMEGA32U4

Post 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
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: AVRdragon + ATMEGA32U4

Post 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 337 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Post Reply