Into Avrstudio5.0 my JTAGICE MKII doesn't program the xmega

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

Hi,
I'm trying AVRSTUDIO 5.0 with jtagice MKII last revision.
I'm trying to program an ATXmega256A3 with PDI.

If I use AvrStudio 4.18 all works fine. I'm able to program, read and debug.

With avrstudio 5.0 appears an error message on screen when the programmer verifies the content of the xmega.

The message tell that at a specific location like 0x002a the value read is not the value it aspected to read!!!

There are some settings to do for adjust the timing or something else?

I already updated the jtagice firmware.

I'm able to read the flash content and also the fusebits but not able to write them.

Also not able to erase the chip!!!

Someone have an idea?

Thanks

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

Slow down the avrisp clock some more?

Imagecraft compiler user

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

try updating the JTAGICE firmware. I had the same problem and the firmware was to blame. (you have to reprogram it with the older firm when moving back to 4.xx though).

At least that was the way I got my ICE connected to my XMega.

Cheers,
-Rain-

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

Hi guys,
thanks for your answers.
I installed just now the new version of avrstudio5 and I updated the Jtagice firmware and it seems to runs well, but......
It's able to program the flash, erase correctly the chip but it's not able to change fuse bits!
Lock Bits are all into NOLOCK mode
I'm able to read the fusebits but not program them.

BobGardner, you told me to slow down the the avrisp clock.
How I can do it?
By software or hardware?
Into avrstudio I'm not able to find a menu that speak of avrisp clock.
May be you say to change the resonator into my jtagice MKII?

I hope not to choose this solution because I bought just 1 week ago.my jtagice, it's new. :-)

For now I've not more solutions.

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

What interface are you actually using to program the Xmega? ISP? JTAG? PDI?

Can you give us the error it gives you when you try to write the fuse bits? And have you tried to do the same thing with AVR Studio 4 (fuse bit manipulation)?

-Rain-

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

Hi,
Yes, I use PDI interface.
In avrstudio4.18 after update the firmware of my jtagice MKII, I'm able to program the flash, eeprom, erase the chip, and also to change the fusebits.
When I go into avrstudio5.0 I do update again the jtagice firmware and so I'm able to program the flash, the eeprom, erase the chip, of my Xmega256A3 but not able to program the fusebits!
It not appears an error window message, but I read only the report that appears on the bottom of the window while it write the chip:
The result is:

    Starting operation write fuses
    Writing register FUSEBYTE0...OK
    Writing register FUSEBYTE1...OK
    Writing register FUSEBYTE2...OK
    Writing register FUSEBYTE4...OK
    Writing register FUSEBYTE5...OK
    Write fuses...OK
    Starting operation verify fuses
    Verify register FUSEBYTE0...Failed!
    Verify fuses...Failed!

Effectively if I go to read the fusebits I see that they are not changed.

Ok, now that I'm able to program flash and eeprom, the problem is minor because if I need to program the fusebits I go to avrstudio4.18, but I think there are some problems of timing or what?
What do you think?

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

oh NO!
It started again! Do not program also the flash and eeprom.

For me there are serious problems on AVRSTUDIO5.0 because with AVRSTUDIO4.18 always works fine!!!

When I program the flash, during the verify appears a message like this

    Timestamp: 2011-11-25 15.44.33.865
    Severity: ERROR
    ComponentId: 20000
    StatusCode: 0

    Verifying Flash...Failed! address=0x5812 expected=0x8f actual=0x80

I'm starting to hate AVRSTUDIO5.0 :)
Untill now I lost too much time to try to use it! :)
The problem that works fine only Avrstudio 4.18 because the release 4.19 gave me many errors too, like:

unknow commnd -wall
unknow command - g
etc....

I've a gost into my computer..... or a virus or what? :)
I don't know what to do to use avrstudios last revision, I think I'll continue to use Avrstudio 4.18

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

    I suggest sending a report on the same thing to atmel also. Maybe they can figure out what the problem is. Maybe it's the divers? Maybe the JTAG ICE's version doesn't support that. who knows... :P

    And of course use 4.18 if it works. there aren't that many things you gain when going to v5.x, only the integration of software framework.

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

    darighi wrote:
    The problem that works fine only Avrstudio 4.18 because the release 4.19 gave me many errors too, like:

    unknow commnd -wall

    https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=114162

    "Dare to be naïve." - Buckminster Fuller

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

    Hi guys and thanks for your answers.
    Yes, for now I think to use version 4.18 but I'll write an email to atmel for the problem on my jtagice.
    Best regards
    Davide

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

    I bet they tell you to try 4.19?

    Imagecraft compiler user