Yes I'm on an Arch distribution.
Thanks for wireshark tip. I will check USB connection.

How long is breaking/stepping with your setup?

In fact, flash ends successfully through ISP in debugWire mode. But after, if I want to launch a debug session I must unplug MCU. Reset line is just pulled up.
This problem is also descriped on this topic :
http://awtfy.com/2012/03/29/hardware-debugging-the-arduino-using-eclipse-and-the-avr-dragon/
"If you get an error, check that you’re using libusb. Also in most cases just cycling the power on both the Dragon and the Arduino puts it back to working. If you give avarice a -v flag for verbose it will constantly spit shit out for you to read and not be interested in as you debug. "

Lah.

Le 09/12/2014 10:27, Armin Otterstätter a écrit :
I assume you're on Linux?
I did the Tracing with Wireshark (http://wiki.wireshark.org/CaptureSetup/USB). There you can set the time-display to "relative to previous captured packet" (or similar) and then you can quickly see where the USB is hanging.

Hmm the DEBUGWIRE SYNC FAILD doesn't sound too good. When I'm downloading I don't have to unplug. Maybe there is some problem with the DebugWire communication alltogether. Do you have anything connected to Reset apart from the AVR Dragon?

Cheers,
Armin

PS.: sorry missed the reply-all in the first response... so now back to the mailinglist...

2014-12-09 10:14 GMT+01:00 Rémi Pincent <mr.laho...@laposte.net <mailto:mr.laho...@laposte.net>>:

    Hi Armin,

    I'm using AVaRICE version 2.13, Sep 19 2014 09:15:10.
    According to sf status "AVaRICE 2.12 is the latest release."!
    What is your version?

    How did you trace these USB issues?

    Another question, after flashing code using debugger, I have to
    unplug/plug debugger and MCU  otherwise when I launch avarice I
    have "set paramater command failed: DEBUGWIRE SYNC FAILED", have
    you some tips in order to solve this issue?

    Cheers
    Lah

    Le 09/12/2014 10:08, Armin Otterstätter a écrit :
    Which Version of avarice are you using?
    I had similar problems when using the avarice that came with an
    apt-get install on a recent ubuntu (Version 2.11). I traced it
    down to some USB timeout issue. But the problem is resolved in
    trunk. Just get the most recent version from sf.net <http://sf.net>.
    If you're on the trunk already then it'll probably be something
    different...

    Cheers,
    Armin

    2014-12-09 9:54 GMT+01:00 Rémi Pincent <mr.laho...@laposte.net
    <mailto:mr.laho...@laposte.net>>:

        Hi all,

        I'm debugging ATmega328p with avarice + avr-gdb + avrdragon
        using debugWire.
        My binary is compiled with following options : -g2 -gstabs -O0
        -ffunction-sections -fdata-sections -std=gnu99
        All is right... But debugging is very slow, stepping is
        awfully slow
        (~5s), and breaking is also quite slow (~2s).
        Moreover if have often to reflash code, it seems flash get
        corrupted
        when debug sessions does not finish cleanly.

        I've written topic about this issue here
        
http://www.avrfreaks.net/forum/avrdragon-debugwire-atmega328p-nice-unusable
        But for now, I haven't found any people working with a usable
        debugging
        environment with debugWire and avr-gdb... Suggestions are
        about changing
        toolchain and debugging tools in order to use some
        proprietary solutions...

        Have you got some suggestions in order to debug efficiently?

        Regards.



        
------------------------------------------------------------------------------
        Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
        from Actuate! Instantly Supercharge Your Business Reports and
        Dashboards
        with Interactivity, Sharing, Native Excel Exports, App
        Integration & more
        Get technology previously reserved for billion-dollar
        corporations, FREE
        
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
        _______________________________________________
        avarice-user mailing list
        avarice-user@lists.sourceforge.net
        <mailto:avarice-user@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/avarice-user





------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user

Reply via email to