avarice "Watchdog has expired" on Meshnetics dev b

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

I have been able to successfuly debug my Meshnetics BitCloud application on the MeshBean development board using AVR studio with the Jungo driver for the jtagice mkII. But, I would prefer to use avarice with eclipse instead. So I uninstalled the Jungo driver and installed the winavr-20080610 mkII usb driver and was able to succesfully load an image and read/write fuses. I was also able to start avarice as a debug server on TCP port 2525, but I can't get much farther than that.

I can connet avr-gdb to remote target localhost:2525. But then as soon as I enter "continue" I get the following error:

(gdb) continue
Continuing.
cannot read program counter
Watchdog has expired. Target detached.

I have googled for potential problems and the only idea I have is that the BitCloud stack may be sleeping and waking periodically. In fact, When debugging under AVR studio I remember seeing continuous messages like "target is sleeping" "target is waking". Could it be that the AVR studio Jungo driver can handle this constant sleeping and waking, but avarice can not?

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

The latest AVaRICE can handle that. Unfortunately, I didn't find the
time so far to roll a full release of it, but there's a snapshot release
available.

If you can disable the sleep for debugging purposes (it doesn't save
much energy anyway, as OCDEN keeps the main oscillator running), you
can probably work around that issue as well.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

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

I wish I could disable the sleep. But that is in the Meshnetics stack and they only provide a library and headers (no source). I will try out the latest snapshot of avarice. Will it compile on mingw on Windows or do I have to use Cygwin?

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

ok, my mistake. After downloading the latest version from CVS it now works.

Thanks

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

I got the same problem and the latest CVS, how did you solve this problem ?