Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
flomll
PostPosted: Mar 16, 2011 - 02:43 PM
Rookie


Joined: Mar 18, 2009
Posts: 34


Hello,

I couldn't find the ATmega8 in the AVR Programming list. Only the ATmega8U2 is listed. But if I read the device ID the JTAG ICE mkII detect the right device.

Look at the pictures.

Can any one help me?

_________________
If someone finds an error it can keep! Very Happy
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Mar 16, 2011 - 03:10 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62359
Location: (using avr-gcc in) Finchingfield, Essex, England

I wonder if this is because (even for ISP) they only offer devices that have JTAG, PDI or debugWire? I don't think AS4 had such a limitation so you are probably better off sticking with that until they finish writing AS5.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Koshchi
PostPosted: Mar 16, 2011 - 03:20 PM
10k+ Postman


Joined: Nov 17, 2004
Posts: 13851
Location: Vancouver, BC

Rather odd. For the JTAGICE MkII I get the same result as you. For the STK600 I get the mega8A (which should work for a mega8), as well as the mega8515 and mega8535, but I don't get the mega649P. You would think that the ISP list would be the same for both devices.

_________________
Regards,
Steve A.

The Board helps those that help themselves.
 
 View user's profile Send private message  
Reply with quote Back to top
Plons
PostPosted: Mar 16, 2011 - 03:58 PM
Raving lunatic


Joined: Nov 01, 2005
Posts: 6326
Location: Hilversum - the Netherlands

Mega8 is not fully supported yet in AS5.
I reported that when I tried to use the Dragon as ISP-programmer under AS5. And was told that that info is in the releasenotes of AS5: it was there Smile

For my current project (mega8) I use AS4 until this issue is fixed.

_________________
Dragon broken ? Or problems with the Parallel Port Programmer ? Scroll down on my projects-page http://www.aplomb.nl/TechStuff/TechStuff.html for tips
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
flomll
PostPosted: Mar 16, 2011 - 05:50 PM
Rookie


Joined: Mar 18, 2009
Posts: 34


I looked at the AVR Studio 4 but there is also no ATmega8 to programming.

Could I use the STK500 for programming or is it possible to program the ATmega8 with the JTAGIce mkII?

_________________
If someone finds an error it can keep! Very Happy
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
flomll
PostPosted: Mar 16, 2011 - 05:54 PM
Rookie


Joined: Mar 18, 2009
Posts: 34


If I select the ATmega8U2 I can read the FUSE bits and so on.
But if I try to program I got a error message!

_________________
If someone finds an error it can keep! Very Happy
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Mar 16, 2011 - 06:04 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62359
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

Could I use the STK500 for programming or is it possible to program the ATmega8 with the JTAGIce mkII?

If all else fails then avrdude will do it. It's always been better programming software than anything Atmel has offered.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
flomll
PostPosted: Mar 16, 2011 - 07:11 PM
Rookie


Joined: Mar 18, 2009
Posts: 34


So I build a programming cable to use the atmega8 with the STK500.

It runs right. I hope the Studio 5 get full support for all ATmega!!!

Thanks at all!! Smile

_________________
If someone finds an error it can keep! Very Happy
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Koshchi
PostPosted: Mar 16, 2011 - 07:14 PM
10k+ Postman


Joined: Nov 17, 2004
Posts: 13851
Location: Vancouver, BC

Quote:
If I select the ATmega8U2
The mega8U is a very different chip from the mega8. You won't be able to get results with that.

_________________
Regards,
Steve A.

The Board helps those that help themselves.
 
 View user's profile Send private message  
Reply with quote Back to top
mindziux
PostPosted: Apr 21, 2011 - 10:02 PM
Newbie


Joined: Jul 19, 2007
Posts: 1


I was surprised too. I'm using avr dragon and avr studio 5 dont see atmega8. I looked in the C:\Program Files (x86)\Atmel\AVR Studio 5.0\devices the ATmega8.xml file exists. So because my programmer is avrdragon I copied C:\Program Files (x86)\Atmel\AVR Studio 5.0\tools\AVRDragon\xml\ATmega88_AVRDragon.xml to C:\Program Files (x86)\Atmel\AVR Studio 5.0\tools\AVRDragon\xml\ATmega8_AVRDragon.xml and inside file changed <device name="ATmega8"> instead of (<device name="ATmega88">). Restarted avr studio and then my avr dragon saw the device, and signatures was ok and device reading (fuses) was ok and new software runs fine.
 
 View user's profile Send private message  
Reply with quote Back to top
ZAPrime
PostPosted: Apr 23, 2011 - 01:07 PM
Wannabe


Joined: Apr 30, 2010
Posts: 58
Location: 6000 feet above sea level

flomll wrote:
So I build a programming cable to use the atmega8 with the STK500.

It runs right. I hope the Studio 5 get full support for all ATmega!!!

Thanks at all!! Smile


Why? The ATmega8 plugs straight into the STK500.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
alioscia
PostPosted: Aug 03, 2011 - 02:52 PM
Hangaround


Joined: Jun 16, 2010
Posts: 371


I'm using JTAGICE mkii to program ATmega8 in ISP mode with connection how showed in
Quote:
http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/JTAGICEmkII/mkII/JTAGICEmkII.htm#Html/JTAGICE_mkII_Programming_with_JTAGICE_mkII.htm

with AS5 and it works.
I followed the suggestion of mindziux:
Quote:

I copied C:\Program Files (x86)\Atmel\AVR Studio 5.0\tools\AVRDragon\xml\ATmega88_AVRDragon.xml to C:\Program Files (x86)\Atmel\AVR Studio 5.0\tools\AVRDragon\xml\ATmega8_AVRDragon.xml and inside file changed <device name="ATmega8"> instead of (<device name="ATmega88">). Restarted avr studio and then my avr dragon saw the device, and signatures was ok and device reading (fuses) was ok and new software runs fine.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
dlocken
PostPosted: Feb 13, 2012 - 07:08 AM
Newbie


Joined: Nov 11, 2009
Posts: 4


Thanks mindziux! 10 months later, and AS5 STILL doesn't have ATMega8. I just bought a Dragon, and was annoyed that I couldn't program my old stock of Mega8's. Tried mindziux's solution, and it seems to work OK.

Don't know why Atmel doesn't fix this? The Dragon marketing info and the user guide says the Mega8 is supported! Atmel needs to either fix the problem or fix the documentation.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Feb 13, 2012 - 09:29 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62359
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

Thanks mindziux! 10 months later, and AS5 STILL doesn't have ATMega8.

Not entirely true. What you mean is that it doesn't have Dragon support... (which is a bit of a shame!)

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
daqq
PostPosted: Mar 30, 2012 - 08:36 PM
Raving lunatic


Joined: Dec 15, 2003
Posts: 4404
Location: Slovakia, Bratislava

Seriously, how hard is it to add one bloody chip? Does anyone know if there is the support for this in AVRStudio 6? Or have they done with actually programming the ICs all together?

_________________
There are pointy haired bald people.
Time flies when you have a bad prescaler selected.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
solata10
PostPosted: Jun 27, 2012 - 06:46 PM
Wannabe


Joined: Dec 18, 2009
Posts: 75


nope .... its not present in avrstudio6 ....
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jun 27, 2012 - 06:55 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62359
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

nope .... its not present in avrstudio6 ....

Yes it is (just checked and AS6 agrees with my picture attachement above). You can program the chip as long as you have AVRISPmkII, STK500 or STK600. It's just the ICEs that are omitted.

Simplest solution to use an ICE is avrdude (you can add a toolbar button/icon for it in AS6).

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
js
PostPosted: Jun 27, 2012 - 11:49 PM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20392
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

Quote:
It's just the ICEs that are omitted.
There is NO debug facilities in the M8 apart maybe for the ICE40 or ICE50 which may no longer be supported.

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Jun 28, 2012 - 09:16 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62359
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

There is NO debug facilities in the M8 apart

John you miss the point. It's because the M8 has no debug that they knock the JATGICEmkII, JTAGICE3, Dragon and AVR One! off the list of "supported devices" but all of those devices *can* ISP the device - but the user isn't allowed to do this - avrdude has no such limitation.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
js
PostPosted: Jun 28, 2012 - 10:39 PM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20392
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

Quote:
they knock the JATGICEmkII, JTAGICE3, Dragon and AVR One! off the list of "supported devices"
Yet another reason not to download AS6, I need to look at the list there must be at least about a zillion of them by now. Smile

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
cancel
PostPosted: Oct 18, 2012 - 12:51 PM
Newbie


Joined: Mar 08, 2002
Posts: 13


copying file /tools/JTAGICEmkII/xml/ATmega88_JTAGICEmkII.xml to /tools/JTAGICEmkII/xml/ATmega8_JTAGICEmkII.xml and changing <device name="ATmega88"> to <device name="ATmega8"> works. You must restart AVRStudio5 then. It should work also with dragon in different dir as posted earlier.
 
 View user's profile Send private message  
Reply with quote Back to top
meolsen
PostPosted: Oct 18, 2012 - 01:02 PM
Resident


Joined: Jul 27, 2011
Posts: 541
Location: Atmel, Norway

cancel wrote:
copying file /tools/JTAGICEmkII/xml/ATmega88_JTAGICEmkII.xml to /tools/JTAGICEmkII/xml/ATmega8_JTAGICEmkII.xml and changing <device name="ATmega88"> to <device name="ATmega8"> works. You must restart AVRStudio5 then. It should work also with dragon in different dir as posted earlier.


Just a note on this: ICE support for Mega8 was added in Studio 6 SP1

_________________
:: Morten
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Oct 18, 2012 - 01:04 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62359
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

ICE support

presumably you mean ISP programming using an ICE? To actually add InCircuit Emulation support to a mega8 would take nothing short of an act of God. Smile

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
meolsen
PostPosted: Oct 18, 2012 - 01:10 PM
Resident


Joined: Jul 27, 2011
Posts: 541
Location: Atmel, Norway

clawson wrote:
Quote:

ICE support

presumably you mean ISP programming using an ICE? To actually add InCircuit Emulation support to a mega8 would take nothing short of an act of God. Smile


Ups Embarassed ... I meant that ICEs now are allowed to program some chips that do not have a OCD, notably mega8, mega8515 and mega8535..

Now, more coffee obviously

_________________
:: Morten
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits