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
aero1
PostPosted: Jan 29, 2012 - 12:09 AM
Hangaround


Joined: Aug 03, 2009
Posts: 162


Using JTAGICE mkII and Studio 4.18/716 to program/debug target board. Everything worked yesterday but today after entering debug mode twice subsequent entries led to error message:

"A device with ID 0xfb18003f was detected. This device is unknown or unsupported by this version of AVR Studio."

Signature Bytes can be read and seem reasonable (get 3 non-zero bytes but not sure if they are correct).

Also tried the JTAGICE mkII Upgrade but that did not change anything. Same results.

Tried another target board and get the same error message. JTAGICE gone bad or something else?
 
 View user's profile Send private message  
Reply with quote Back to top
ka7ehk
PostPosted: Jan 29, 2012 - 01:15 AM
10k+ Postman


Joined: Nov 22, 2002
Posts: 12197
Location: Tangent, OR, USA

Reduce the ISP clock frequency. This is a common symptom with the frequency is too high. It must be no higher than 1/4 of the CPU clock frequency.

Jim

_________________
Jim Wagner
Oregon Research Electronics, Consulting Div.
Tangent, OR, USA

"The only thing standing between us and victory is defeat" P.G.Wodhouse in Wooster & Jeeves series
 
 View user's profile Send private message  
Reply with quote Back to top
MBedder
PostPosted: Jan 29, 2012 - 01:32 AM
Raving lunatic


Joined: Nov 02, 2009
Posts: 3239
Location: Zelenograd, Russia

The JTAG mode is not affected by the ISP frequency setting.

_________________
Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.
 
 View user's profile Send private message  
Reply with quote Back to top
Mike B
PostPosted: Jan 29, 2012 - 02:10 AM
Raving lunatic


Joined: Jun 22, 2004
Posts: 3849
Location: South West Utah, USA

What AVR are you attempting to connect with? Is it supported in AVRstudio 4.18/716?

Search your AVR data sheet for "signature" too see what your AVR signature should look like.

Did you select the correct AVR chip for your JTAG?
 
 View user's profile Send private message  
Reply with quote Back to top
ka7ehk
PostPosted: Jan 29, 2012 - 02:13 AM
10k+ Postman


Joined: Nov 22, 2002
Posts: 12197
Location: Tangent, OR, USA

Has the OP always used JTAG (as in previously, when it did work)?

Is the programmer connected to the proper JTAG port of the MCU? It seems likely that it is, since some kind of response is generated.

Has any hardware been added to the TDO pin (PortF.6)

Jim

_________________
Jim Wagner
Oregon Research Electronics, Consulting Div.
Tangent, OR, USA

"The only thing standing between us and victory is defeat" P.G.Wodhouse in Wooster & Jeeves series
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jan 29, 2012 - 12:40 PM
10k+ Postman


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

I have a feeling the device ID it's referring to here is the USB ID of the JTAG interface, not the signature of the AVR.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
aero1
PostPosted: Jan 29, 2012 - 05:43 PM
Hangaround


Joined: Aug 03, 2009
Posts: 162


As mentioned in my original post
Quote:
Everything worked yesterday.
Mega128 is supported, always used JTAG, signature matches spec. There were NO hardware or configuration changes whatsoever. Did not edit or recomplie sources. Just turned the PC off at night, back on the next morning and tried to enter Debug Mode.

Reinstalled Studio on same PC and also another PC. Still the same results. Sounding more and more like JTAGICE failure?

I have a Dragon and STK500. Will try connecting with them.
 
 View user's profile Send private message  
Reply with quote Back to top
aero1
PostPosted: Jan 30, 2012 - 01:04 AM
Hangaround


Joined: Aug 03, 2009
Posts: 162


Some new information:
I am able to program/verify the Mega128 with the JTAGICE mkII by selecting Connect to Selected AVR Programmer > Program tab > Program (and Verify). I think this means there is no reason to try the Dragon or STK500. The problem remains that I cannot enter Debug Mode.
1 The link from the PC to the JTAGICE must be working
2 The link from the JTAGICE to the Mega128 Flash must be OK
3 The JTAGICE firmware upgrade worked so the firmware has been reloaded (in case it had been corrupted)

One other input:
When this first started I was able to enter Debug Mode 2 times and then failed every time after that. I tried another target board and it worked 1 time and then failed every time after that. I have not been able to get to Debug Mode at all since then.

What is different about Debug Mode?
 
 View user's profile Send private message  
Reply with quote Back to top
Mike B
PostPosted: Jan 30, 2012 - 01:32 AM
Raving lunatic


Joined: Jun 22, 2004
Posts: 3849
Location: South West Utah, USA

In the past with older versions of AVRstudio, I sometimes found completely un-installing, then re-installing it solved sudden unreasonable problems that cropped up. With your version I think you need to re-install all the service packs in sequence?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jan 30, 2012 - 09:14 AM
10k+ Postman


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

Quote:

With your version I think you need to re-install all the service packs in sequence?

Why bother now that 4.19 is available?

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Mike B
PostPosted: Jan 30, 2012 - 02:02 PM
Raving lunatic


Joined: Jun 22, 2004
Posts: 3849
Location: South West Utah, USA

clawson wrote:
Why bother now that 4.19 is available?
But 4.19 has its own problem outlined in several previous threads. I would consider "fixing" the current problem to be separate from changing to the next version. If 418 SP3 is reinstalled and the JTAG debug still fails at least you clearly "know" your problem is not solved. If the problem is solved, take a few more minutes to move to 4.19.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jan 30, 2012 - 02:22 PM
10k+ Postman


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

Quote:

But 4.19 has its own problem outlined in several previous threads.

There have been two issues of 4.19. The first had several serious problems. All fixed in the second.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
aero1
PostPosted: Jan 30, 2012 - 06:01 PM
Hangaround


Joined: Aug 03, 2009
Posts: 162


I installed Studio 4.19, then uninstalled it and went back to 4.18. I was able to get into Debug Mode 3 times and the code ran as expected. But after that all subsequent Debug Mode entries failed with the same error message.

I tried my old JTAGICE1 and it gave the messege below. Maybe this is the JTAGICE1 version of the original mkII error message?

Connected the JTAGEICE mkII to an AT90USBKEY and it entered Debug Mode and ran every time. Connected to a board from an older Mega128 project and it worked every time, also.

I think all this confirms that the mkII is OK but the original Mega128 has an intermittent problem. Some times it works and sometimes it does not. I tried chilling it but that didn't help. Being SMT it is not easy to replace but that is the next step. (Had it been a DIP in a socket that would have been the first thing I tried.)

This is a strange failure. Especially since I can connect and program/verify the MCU reliably from the Connect menu and then the code runs as expected. Have never seen an MCU fail intermittantly this way (just a signature error). Has anyone else seen this?
 
 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