Causes of programming error

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

Hello,

I have a new board with an xmega128a3u. When I program it using the mk ii programmer I get the following error:

Verifying flash: failed! address=0x6400 expected=0xd1 actual=0xff.

There are no lock bits set.
Which are the possible causes for this problem?
What should I do to investigate further?

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

1) Can you read the fuses? This will verify if the interface from programmer to mcu is working properly.
2) Try reading out the program and use diff to compare. This will show if some or none of the programming is successful.
3) Do you have another board to try? It's very unlikely a new board with the mcu is fried, but who knows.

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

hehe I was going to answer, "By my experience, the knuckleheaded programmer."

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

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

mspeng wrote:
1) Can you read the fuses? This will verify if the interface from programmer to mcu is working properly.

Affirmative.

Quote:
2) Try reading out the program and use diff to compare. This will show if some or none of the programming is successful.

They seem identical except the last line. I say "seem" because the hex file generated by AS6 contains a shorter line:

:105EB000839FF00D749FF00D659FF00D9927729FE1
:105EC000B00DE11DF91F639FB00DE11DF91FBD016C
:0A5ED000CF0111240895F894FFCFCC
:105EDA004465766963654E65740000C0C101C303F9

but when I read back the flash content there is no such a separation. I guess it's just a matter of the Intel Hex formatting.
However, the following bytes seem the same.

Quote:
3) Do you have another board to try? It's very unlikely a new board with the mcu is fried, but who knows.

uhm... I was pretty sure the problem was about only one board. Instead I get the same error on others.
In detail is this:

Verifying Flash...Failed! address=0x6400 expected=0xd1 actual=0xff

I don't have any relocation instruction in my application right now.

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

In fact the last lines are:

Quote:
:1063FA008DDEEF82B3E0D1467724153B0A5968FF58
:04640A00CE9DAC0077

but the actually the bold values are not written.
Hence the error about D1.

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

Fixed upgrading to AS6.1.... :shock: