AVR Dragon Debug Error

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

Hi.
I'm a complete newbie to AVR32 and AS6, and I'm trying to debug my brand new UC3-A3 Xpain board with my also brand new AVR Dragon.
I'm getting a very confusing error when I try to connect within AS6 via the "Start Debugging" green arrow, can anyone help me out. The error is.

base EBI_CS0
Unavailable when debuggee is running
Launch error: Object reference not set to an instance of an object.

I can connect to my UC3 with the device programming tool, and I can read the fuses and voltages correctly. I can also download my code if I select "Start Without Debugging" button.
I remember reading through some PDF's which said the Dragon could debug the AVR32 via Jtag. Have I messed it up and bought the wrong tool?

I've included a image of the error I'm getting.

Thanks
mb

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

oops try to attach a file again.

Attachment(s): 

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

Really,...no one? .. not even a hint?

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

I am having the same exactly problem. Can anyone help ?

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

I have the same Problem when trying to debug an AT32UC3B0512 using JTAGICE3.
debugging worked nice when working on ATMEGA644. After connecting to the AT32 I am able to read fuses. I also read the whole chip through JTAG and when start debugging the new code is written to the chip (through JTAGICE3). But debugging is stopped with:
"ERROR 20000, StatusCode 0"
Launch error: Object reference not set to an instance of an object.

edit:
upgraded to latest AtmelUSB (11.03.000 to 11.9)
jtagice3 is latest firmware. Still not able to debug.

edit:
found a "workaround"!
Tool->Programming settings - set this to "Erase only program area".
start debugging flashes the new code but throws the Error!
enter Tool->Programmming settings again and select "Skip Programming".
NOW DEBUG WORKS!!!
but after recompile I have to do the trick again ... No idea what going wrong here?!

edit:
sorry - me again...
the problem seems to be the BOOTLOADER! After erasing THE WHOLE CHIP everything works fine. At least I can debug now with moderate turn-around time.

will try tomorrow to generate code with a loader linked instead of that trampoline code which seems to be responsible for that strange error!

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

I think I found the solution. I am not sure what the real issue was but after reading this thread (https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=136608) I got the hint that the drivers installed on AS6.1 dont work properly. So here is what I did:

-Open Program and Features and uninstalled ATMEL USB version 11.0 (that was installed with AS6.1)
-Download and install AVR Studio5.1 (which will install AVR Jungo USB version 10.4)
-Run&Debug a couple of examples on AVR Studio5.1

After that I could debug my UC3-A3 XPLAINED just fine. So my conclusion is that this is a driver issue, which isnt new on Windows.

I hope it helps.. :D

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

I believe that this was fixed for 6.2 beta. I would also be very weary about using the 5 series for anything :P

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.