STK500 Connection / Hardware Problem/Error

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi anyone at AVR FREAKS

 

I'm having a potential critical problem with my STK500 board. It worked fine earlier today. I made a few changes to my program which i was going to program on to the AVR chip.

 

I then get this error message in Atmel Studio 6.2: 

 

Unable to connect to tool STK500 (COM3)

TCF (TCF command: Tool:connect failed.)

 

I have a ATmega32 on the board which uses an external crystal (16 Mhz). 

 

I have tried to connect to another STK500 board from my PC on COM3, which worked just fine. So its seems like i have an hardware problem of some sort.

 

In short: My program is recording data from the ADC (the analog signal is coming from an Analog Discovery) - the MCU is then doing some processing on this before sending through the UART (where i connect the RS232 cable in the RS232 Spare Port). I have then recorded this data with a small application on my PC. All of this worked fine earlier today. I just made a few changes to my program which i wanted to program to the microcontroller, but i couldn't connect anymore (and yes, i have switched my RS232 cable to the other port).

 

The 2 green LED is ON, and the red power LED is on. For some reason i just can't seem to connect to the board anymore :(

I also tried to measure the voltage on the 2 voltage regulators, which seems to be working just fine. 

 

I experienced the same error on another STK board yesterday which i'm not longer able to use, so therefor i borrowed this one from a friend.

 

Need help ASAP as i have an exam hand in next friday...

 

Hope anyone is able to help me out with this problem.

 

Cheers Anders

This topic has a solution.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Shut off the application on your PC when you want to program the AVR.  Most likely is the App is holding the COM port hostage

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have shut off the application. I also tried to restart my PC. 

When i try to connect to my friend STK it works fine (also through COM3)

This is the error message i'm getting:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SOLVED

 

After a lot of troubleshooting and reading around the internet i tried to program to an "empty" STK board without a microcontroller attached. 

Under "device programming" i choosed STK 500 + a random device like ATmega128 + ISP interface and then pressed apply. I then had a connection to my STK board. 

 

After this i simply put my ATmega32 back on the board, and choosed (STK500/ATmega32/ISP) and pressed apply. I was then able to program the microcontroller like usual. 

 

Hope other people can use this solution if they experience this bizarre and random error. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

THats not a random error.  HAd you mentioned that you were trying to communicate with an STK500 without an AVR in it, it could have helped.

 

No worries. all is well in the world. smiley

 

JIm

 

EDIT:

I just look at your OP and you say you have an AVR installed in the board, but your solution says to the contrary.   Ok, it's still fixed indecision

 

Jim

 

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Last Edited: Sun. Mar 8, 2015 - 03:27 AM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

^ Yes, i wasn't able to program to my STK board with an AVR installed. To "fix" this problem i pulled out the AVR and opened a connection to the empty board. After i had connection reestablished i put AVR back on the board.

 

However i found the next day that this was only a short term solution. My problem appeared again after short time.

 

I then saw that the AREF was set to 0.9 V so i pulled it back up to 5 V again and this has fixed my problem. 

 

What can cause the AREF to go "low"? And why was i not able to connect to the STK while AREF was "low"?

Last Edited: Sun. Mar 8, 2015 - 03:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What can cause the AREF to go "low"?

Sometimes the STK500 does crazy things like not remembering that you have 3.3V VCC set up and the next time you power up it goes to 5V VCC causing the "odd" problem.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My operator system is WIN10,driver is OK,all the LEDS are green.

and once  I have succeeded use the Avr stk500, programmer to program the Atmega32C1 previously day,

but after a long vacation I come back,it doesn't work.it brings me a lot of trouble, we effort to solve it.I really need your guys to help.

Thousand appreciate if you can give me some comments!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ben Peng wrote:
,it doesn't work.it
That isn't much of a fault description. My car wasn't working the other day - can you say what was wrong with it?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My car is a sort of Greyish Blue.   I hope that helps.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

but after a long vacation I come back,it doesn't work

I think it became jealous & went on its own vacation.  Programmers lead a stressful & punishing life.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

it means "Programmer Not Found" error

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try using a different serial adapter cable...some cheap ones are unreliable or have their counterfeit chips blocked once it has been detected.

 

You need to provide a lot more info if you want help...what steps are you taking?...what do you see? what have you tried?

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!