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
CharlyLownoize
PostPosted: Jun 26, 2011 - 12:22 PM
Newbie


Joined: Jun 26, 2011
Posts: 4


Hey Guy's

i'm new in this forum so please be patient with my first entry here.

I'm programming on avr's since a while. Till now always on win xp, with my avr isp mk2 (factory firmware - 20080211). Every device was working fine, no problems.

Now i upgraded to win7 x64, avr studio 5 and also did a firmware upgrade (with the avr studio 5) at my avr isp mk2.
The installation of the avr studio and the isp happend without any errors. But when i try to programm my devices (2x ATMega32, 1x ATMega128) i got this error message:

Programming session setup failed: TCF command: Device:startSession failed: Code:1 ,Service: ,Message from peer:Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00

what can this mean? the isp and the devices worked well till the update came? did i miss any config parameter?

Thanks for your help!
charly
 
 View user's profile Send private message  
Reply with quote Back to top
CharlyLownoize
PostPosted: Jun 26, 2011 - 12:51 PM
Newbie


Joined: Jun 26, 2011
Posts: 4


forgotten to say, when i connect the isp to the atmega the led switches from red to green.
 
 View user's profile Send private message  
Reply with quote Back to top
wedgen
PostPosted: Jun 27, 2011 - 10:00 PM
Rookie


Joined: Jun 14, 2011
Posts: 23


I have the same exact problem. I'm using the ATtiny2312. The system recongnizes the device just fine. it can read the voltage but when i try to do anything with the device it gives that same error:

Code:
Programming session setup failed: TCF command: Device:startSession failed:  Code:1 ,Service: ,Message from peer:Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00


Any help would be great! Thanks!
 
 View user's profile Send private message  
Reply with quote Back to top
CharlyLownoize
PostPosted: Jun 28, 2011 - 06:35 AM
Newbie


Joined: Jun 26, 2011
Posts: 4


I'm not alone, it doesn't solve the problem but it fine to see that others have this problem too.

the voltage reading is also no problem with my isp.
 
 View user's profile Send private message  
Reply with quote Back to top
wedgen
PostPosted: Jun 28, 2011 - 03:50 PM
Rookie


Joined: Jun 14, 2011
Posts: 23


I also tested it with AVR Studio 4.18, Still could not enter programming mode. Installing on another system now to see if that helps.
 
 View user's profile Send private message  
Reply with quote Back to top
wedgen
PostPosted: Jun 28, 2011 - 04:36 PM
Rookie


Joined: Jun 14, 2011
Posts: 23


I fixed my problem. It was a problem with the header i made, i had a pin shorted with another. Works fine now.
 
 View user's profile Send private message  
Reply with quote Back to top
CharlyLownoize
PostPosted: Jun 28, 2011 - 07:07 PM
Newbie


Joined: Jun 26, 2011
Posts: 4


i'm using the example project's to test it ... nothing changed till now.
 
 View user's profile Send private message  
Reply with quote Back to top
pinpc0000
PostPosted: Oct 10, 2011 - 05:00 PM
Newbie


Joined: Mar 04, 2009
Posts: 8


I have got the same error warning and can not read out the fuse setting, search for advise.
 
 View user's profile Send private message  
Reply with quote Back to top
vladbutsky
PostPosted: Oct 23, 2011 - 10:30 PM
Newbie


Joined: May 29, 2011
Posts: 10


I've the same error too. First I though I messed up something in my Butterfly (ATmega169) so I got another exactly same unit that I didn't program at all, it still has factory demo code running. New unit shows the same error. Tried to search the Internet but nothing helped so far. May be somebody on this forum know how to fix it or diagnose further.
 
 View user's profile Send private message  
Reply with quote Back to top
SkylerZio
PostPosted: Oct 29, 2011 - 06:25 PM
Newbie


Joined: Oct 29, 2011
Posts: 15


Brand new to this site, Brand new to these chipsets, Hello! I've got a similar problem. I bought two ATtiny85 chips, and a ATAVRISP2. I have 2 green LEDs, and am trying to program a hex code to one of them, for a SD card reader project I saw online (Reads wav file from SDcard and plays it through speaker).

-ATtiny85
-AVR Studio 5
-ATAVRISP2

In AVR studio 5 I setproper tool, device, interface, hit apply, and it takes me to the clock speed screen. I have tried every clock speed in this list down to 2.152KHz, but when I hit 'Read' on either device ID or Voltage, I get an error.

Quote:

Unable to enter programming mode. Please verify that the programmer is correctly attached to the target and that target power has been switched on. Also verify that the correct device and interface settings have been specified.
Timestamp: 2011-10-29 11:22:42.733
Severity: ERROR
ComponentId: 20100
StatusCode: 0

Programming session setup failed: TCF command: Device:startSession failed: Code:1 ,Service: ,Message from peer:Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00


Wiring is correct, and I have verified it 4 times myself and had others check. I've tried inserting an external CLK @ 1MHz. i've used both power sources from the USB and from a DC power supply. I am completely stuck and frustrated for the last 3 weeks.

PLEASE HELP!!
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Oct 29, 2011 - 07:25 PM
10k+ Postman


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

try using AS4

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
SkylerZio
PostPosted: Oct 30, 2011 - 02:12 AM
Newbie


Joined: Oct 29, 2011
Posts: 15


Just got done trying that. Getting the same type of error, cannot program. And with AS4 i can't even get both green LEDs. In re-installing AS5 right now, so i can compare things.
 
 View user's profile Send private message  
Reply with quote Back to top
SkylerZio
PostPosted: Oct 30, 2011 - 02:18 AM
Newbie


Joined: Oct 29, 2011
Posts: 15


From what i'm finding online, I cant use an ISP unit to program these on the first go. Is this correct?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Oct 30, 2011 - 03:11 PM
10k+ Postman


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

Quote:

I cant use an ISP unit to program these on the first go. Is this correct?

No not correct - AVRISPmkII will happily ISP mega32 and mega128 from AS4.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
MECAMIKEN
PostPosted: Jan 27, 2012 - 01:39 AM
Newbie


Joined: Jan 27, 2012
Posts: 12


HI, I HAVE THE SAME PROBLEM, BUT I KNOW WHAT IS THE REASON, [ERROR] TCF command: Device:startSession failed: Code:1 ,Service: ,Message from peer:Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00, IT IS BECAUSE WE HAVE TO PROGRAM THE FUSES OF THE MICROCONTOLLER, IF YOU WANT YOU CAN SEND ME AN E-MAIL, mikenutp@hotmail.com
 
 View user's profile Send private message  
Reply with quote Back to top
mactom
PostPosted: Feb 24, 2012 - 05:24 PM
Hangaround


Joined: Jun 15, 2007
Posts: 110
Location: Gdańsk, Poland

I have just started having the same problem. It happened to me with ATtiny13A. Starting from the virgin chip, I've selected a 128kHz internal clock fusebits in AVR Studio 5.1. Ever since the chip won't talk and I'm getting the same error as mentioned before.
By the way, the same error is issued when there is no target device, or fusebits are misconfigured (In my case it was either SPIEN or RSTDISBL, so ultimately the chip acted as if it was not present). Otherwise my setup (win 7 x64, AVR Studio 5.1, USB AVR ISP STK-500 fake) works okay.
Oh, and the only properly read property is the voltage, just like mentioned before.
Rolling Eyes

EDIT: Yay, I've made it! Since the chip operated at 128kHz I had to slow down the ISP clock in Interface settings screen (I've turned that down to 1,747kHz). To make things work, I have reduced the baud rate of virtual COM port (the one used by my programming kit), to comparable value (that is, 1800). It was not good enough to program the chip (I think the transmission got busted because of the frequencies mismatch), but I was able to restore the 9.4MHz fusebits setting. yay!
By the way, something fishy is going on about ISP programming. Anyways the producer of my USB "dongle" recommends using 115200 kbps which matches an option in AVR Studio, so I'll just stick to it. Perhaps the others struggled with similar mismatch too, hm?

ANOTHER EDIT: It seems that one is able to type in the individual ISP clock value in interface settings (forget about the slider thingie) after all. It keeps on "rounding" my 1.8k value down to 1.798k for some reason, but works like a charm now. Flash verification is successful on all occasions.

_________________
Not entirely familiar with AVR thingies... yet.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Ringmeister
PostPosted: Mar 03, 2012 - 07:08 AM
Rookie


Joined: Jun 02, 2009
Posts: 27
Location: British Columbia, Canada.

Just wondering if any of the posters had this problem with Avrisp mkII in PDI mode?

I can't get mine to program or erase an Xmega (Xplained board) but it will read intermittently!

See this thread for more info: http://www.avrfreaks.net/index.php?name ... p;t=118029

_________________
Avrisp mk ii
Xplained Atxmega128A1
ATTiny13, Mega328, Mega8 etc.
Pololu USB AVR Programmer
Open Workbench Logic Sniffer
AVR Studio 4 & 5
 
 View user's profile Send private message  
Reply with quote Back to top
Cervicek
PostPosted: Nov 26, 2012 - 09:29 PM
Newbie


Joined: Nov 26, 2012
Posts: 1


Hi there
I have the same problem (ispEnterProgMode: Error status received: Got 0xc0, expected 0x00)
Can“t read the procesor info.
Have someone find the solution for this?
---------
MKII, AVR6, win7x64
 
 View user's profile Send private message  
Reply with quote Back to top
meslomp
PostPosted: Nov 27, 2012 - 04:48 PM
Raving lunatic


Joined: May 02, 2007
Posts: 3022
Location: Nieuwegein, Netherlands

what is your programming speed set to?
is it a virgin device or have the fuse bits been set to other values?

_________________
1)Datasheet and application notes checked?
2)tutorial forum
3)Newbie start here
 
 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