avrdude can't upload program to stk600

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

Hello,

I did a mistake and pushed the program button on the stk600.

It entered the firmware state, and I couldn't get it out of it until I connected a atmel studio and tried to update (but I have the updated ver.)

 

After the update, I can't upload any code.

When I try to upload using avrdude plugin on eclipse I get this message:

    Programmer "stk600" could not initialize the target hardware.

    Please Check that the target hardware is connected correctly

    Reason:

    avrdude: initialization failed, rc=-1

and when I try using Atmel Studio I get this message:
 

Faield to enter programming mode. Error status received from tool: Result received is 0x03.

Unable to enter programming mode. Verify device selection, interface settings, target power and connections to the target device

 

This topic has a solution.

Last Edited: Sun. Jul 26, 2015 - 06:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When you use Atmel Studio, does it recognize your STK600? In Atmel Studio(if Atmel Studio 6) go to Tools -> Device Programming and see whether it reads device signature. Also check the target voltage and debug interface.

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

Hi Mandar, the voltage is 1.5V and it couldn't read the device memory

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

Do you have STK600 user guide? Refer it and follow the procedure according to it for your debug interface. It includes all the details including firmware upgrade procedure.

Are you using supply from USB port? I have STK600 it works at 3.5V when powered from USB port.

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

I tried the usb supply but it showed me only 0.2 V and after I connected the power supply it was on 1.5V 
Before that I was only on the usb and everything worked good.

Do you have any idea what caused it  or what is the problem?

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

I found a note in this page: http://www.atmel.com/webdoc/atmelstudio/atmelstudio.AvrStudioUserGuide.FirmwareUpgrade.ManualUpgrade.html

 

 
Note:
If a tool is locked in firmware upgrade mode, and normal reset does not restore normal operation, a forced firmware upgrade should reset the tool to a working state.
To do a firmware upgrade on a tool already in upgrade mode, invoke atfw the same way as normal firmware upgrade. Some warnings may be displayed as the tool is unable to switch the tool to upgrade mode, but should proceed with the upgade.
If a tool listing is done, the tool will have a name that is related to the mode it is in. atfw should however be invoked with the tool name as it is presented to the user in normal operation.

I will try it in sunday and update here with results 

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

Check all the jumper settings.

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

They didn't move from before, and it worked...

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

Is it working now? What changes did you make?

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

No no, I meant that it worked before the problem and I didn't touch the jumpers, so I don't think the problem is in them

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

Have you read STK600 user guide?

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

Yes the section about Manual Upgrade.

I will try it on Sunday. do you know what specific parameters I need to excute with atfw.exe command?

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

Update: I upgraded firmware using atfw.exe

but now the atmel studio reads the target voltage as 1.3V and can't read the device signature.
I connected the stk to usb and power, what else can I do?

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

What are indications on Main Power LED, Target Power LED and Status LED after giving USB supply?

Last Edited: Sun. Jul 26, 2015 - 05:46 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

main power led is red, status is green and target is off. (before this all happend the target led was also green)

now it is reading 0.2V from the usb. I can't understand what affect on it like this.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do one thing, I found this link http://atmel.force.com/support/a...

 

As shown in attachment you just check your VTarget setting whether it is low. Don't modify it directly as in your case VTarget is not stable.

 

(before this all happend the target led was also green)

Then problem could be something else.

Last Edited: Sun. Jul 26, 2015 - 06:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Mandar Joshi, Thanks, it worked!!!

wow I'm so happy.
I guess the problem was that the upgrade of the firmware reset the VTarget.

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

What was the previous setting?

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

0 .

I think that it was set automatically during the firmware upgrade