AVRStudio4 unable to debug, programs fine?

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

I am having some serious issues here all of a sudden.
One computer running vin7 with Dragon and a ATmega2560 can program and verify fine, but is unable to debug. (Hangs after run/reset and never reaches start of main.) A quick test of reading memory gives random 0x00's or 0x01 etc. Comms between programmer and target is fine as it can program and verify.
Machine was running 4.18 and it was upgraded to SP3 with no solution.

Another pc running xp was tested with ICE MKII and a ATmega128 using 4.17 and it has the same issues! I also tried the Dragon on it with no change. Upgrading to 4.18 SP3 made no difference.

I tried verifying target vs actual IC and they match.
This is all very strange and any suggestions are welcome.

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

Make sure that the JTAG lead is short, 4"-6" max (100mm-150mm)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Thanks. I already use the stk500 carrier board for mega128 and only the stock connection-wire for the ICE MKII.
As for the STK600 based ATmega2560 I use the same wire or for Dragon the stock jtag lead.

I find it very odd that programming and verification always works, but debugging fails to read memory. I sometimes get read error listings too.

I first thought I may have damaged the Dragon or MKII but what are the ods of damaging 2 Dragons and 1 MKII on multiple targets and platforms from 2 pc's and by 2 users the same day?

One thing I did notice however was both machines have recently (last day or so) had new windows updates installed.

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

I find it strange that both debuggers are no longer working for debugging but work for programming.

I did not see that the JTAG ice also had problems but it's a known fact that the Dragon is very temperamental when it comes to the length of the debug lead.

When you say

Quote:
ATmega2560 can program and verify fine
you mean in JTAG mode and not in ISP mode I presume.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

All programming and debugging is done via jtag here.
(Unless debugwire is only option on small devs ofcource.)

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

I'm out of ideas then :(

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I own m162 which programs and executes perfectly, but its OCD died (cannot rw IO space) all of a sudden. Bad luck.

No RSTDISBL, no fun!