AMcTools Forum 
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Problems with my STK 500 (Read 7278 times)
Cheba
YaBB Newbies
*
Offline



Posts: 6
Germany
Gender: male
Problems with my STK 500
02/28/10 at 11:28:00
 
Hi all,

i have a problem burning my hex-files with the atmel stk 500.
I think the device signature is the problem, because i can read the fuses and the lockbits. But when i try to read the signature the correct signature will be only shown in the log-field, but not in the Signature-Bytes' textbox. The signature-textbox shows only a '0'.

Thanks

The Log:

> [AVRStudio]\STK500.EXE -z -dATmega16 -ms -s
STK500 command line programmer, v 2.2 Atmel Corp (C) 2004-2005.

Scanning ports:
COM1 ... Connected to STK500 V2 on port COM1
Device parameters loaded
Programming mode entered
Signature is 0x1E 0x94 0x03
Programming mode left
Connection to STK500 V2 closed

# Exit status = 0

Edit:
[b]Something with reading the fuses is also wrong:[/b]

Log:

> [AVRStudio]\STK500.EXE -z -dATmega16 -ms -q
STK500 command line programmer, v 2.2 Atmel Corp (C) 2004-2005.

Scanning ports:
COM1 ... Connected to STK500 V2 on port COM1
Device parameters loaded
Programming mode entered
Reading fuse bits...
Fuse byte 0 read (0xFD)
Fuse byte 1 read (0xCF)
Programming mode left
Connection to STK500 V2 closed

# Exit status = 0

Displayed Programming word: 0xDFFF

With AVR-Studio it works fine.
Back to top
 
« Last Edit: 02/28/10 at 13:03:38 by Cheba »  
  IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: Problems with my STK 500
Reply #1 - 02/28/10 at 16:09:21
 
Thanks, I'll take a look

Take into account that the VMLAB STK500 interface is merely a wrapper for the Atmel command line software, and the one coming with VMLAB is probably out of date. So when using the STK500 interface:

- Use always the last Atmel release, it also checks the board release and re-flash it when necessary.

- If any trouble with VMLAB, and with AVRStudio one works fine, try to burn the part manually with the command line (STK500.EXE), and see what is the difference with the command issued by VMLAB.

Back to top
 
 
WWW   IP Logged
Cheba
YaBB Newbies
*
Offline



Posts: 6
Germany
Gender: male
Re: Problems with my STK 500
Reply #2 - 02/28/10 at 16:53:33
 
Hello,

I checked my stk500 firmware-version. It is 0x020a. Should be the most reason version i think.

I also checked the the commands in the commandline they work properly.  
As I wrote in my first post, the problem is the signature-check. The stk500.exe command from VMLAB is correct, but the wrapper cant get the actual signature and of course it could not be shown correctly in the wrapper GUI and programming fails of course too.

[b]Edit:[/b]
I just tried a workarount.
I disabled the the options in the VMLABs stk500.exe interface:

"On start STK500 dialog (from Tool menu)"
- Read and check device signature
- Verify fuses against settings in Project File

"On direct STK500 Burn Flash button click (from Toolbar)"
- Read and verify device signature

This works, but i think it is not good for safety reasons.

Back to top
 
 
  IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: Problems with my STK 500
Reply #3 - 02/28/10 at 17:47:05
 
Yes, your guess is fully right. The problem is as follows:

VMLAB retrieves the text from STK500.EXE output, to get the read signature and compare it with the used device. The current STK500.DLL tries to find the text "Reading signature..", that is what the old STK500.EXE wrote, but now it seems to write, as per you reported, "Signature is ...", so the problem.

Same stuff for the fuses...

I'll try to change it for a next upgrade. In the mean time, your workaround suggestion (ignore signature) is the only available one.
Back to top
 
 
WWW   IP Logged
Cheba
YaBB Newbies
*
Offline



Posts: 6
Germany
Gender: male
Re: Problems with my STK 500
Reply #4 - 02/28/10 at 18:12:42
 
Thank you very much.
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print