Local backend agent disconnecting

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

Hi

I am using AS6.1.2730 Service pack 2 on Windows 7. I have been debugging fine since the upgrade (Think its been 2 weeks, of which I only used debugging a few times), and somewhere along the line, I started getting the following message "Local backend agent disconnected. Debugging will now be terminated." whenever a break point is hit or I simply break execution. The problem is that it does not want to go away. I cant debug at all anymore. I tried restarting AS6, restarting PC, even reinstalling AS6 still the error remains.
I got the error to not appear (for about two days) after doing multiple uninstalls and re-installs of different versions of AS6 - Somewhere along the line debugging got fixed.

Does anyone know what might cause this and how to fix it? I saw one other post that mentioned this error, that pointed to a possible memory leak in backend agent, but that is not the case for me. Could not find any indication of backend agent misbehaving in that manner.

Please help!

Thanks

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

I have the same problem.

For me it began when I tried to watch memory areas.

Do you have a solution ? I currently use a JTAGICE3, did not try my older AVRDragon and JTAGICE mkII

I program like a man:
COPY CON: > firmware.hex

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

Well, I do watch memory areas all the time so it is possible that it was triggered by the same thing, but I can't confirm this. I am also using a JTAGICE3 though...

I'll pull out my old JTAGICE2 and see if I can break it. in the same way

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

After upgrading my JTAGICEII, debugging works...so far. I'll keep using it and see if it falls over.

If this issue is indeed a JTAGICE3 firmware issue, how do you go about downgrading firmware? (first need to confirm if this is the case, but would love to test the theory)

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

Update: My JTAGICE2 is still behaving during debugging.

Is there a way to backtrack the JTAGICE3 firmware and prevent AS6 from updating it again?

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

Quote:

Is there a way to backtrack the JTAGICE3 firmware and prevent AS6 from updating it again?

yes it's been mentioned a number of times here by Atmel employees. It involves renaming the file that would be used to do the update. I cannot remember the exact details but a search should find it. Look for posts by meolsen in particular.

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

If you want to keep the firmware at the current state, then rename the file /tools//_fw.zip to something else. This will obliterate all firmware knowledge from Atmel Studio.

In the gallery there is a packet with the old 2.x branch of the JTAGICE3 firmware. It contains a walkthrough to force downgrade the firmware.

Also, try to enable diagnostic logging (Tools|Options|Tools|Enable diagnostics logging = true) to give a better log from the backend agent. It should appear either in the Output or the Backend Agent tab in the output window.

:: Morten

 

(yes, I work for Microchip, 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.

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

Great, thanks! I'll give this a try. Appreciate your help!