Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Difficulties with SWD debugging due flashing status LED

    Scheduled Pinned Locked Moved
    Firmware developers
    2
    2
    170
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Thugmekundefined
      Thugmek
      last edited by

      Hello,
      I'm trying to debug Duet3 MB6HC boad with Raspberry pi as SWD debugger. I can start debug session, read registers, memory doing single steps via OpenOCD telnet interface, all these funny things just fine. But when I run the program via run command, status led, connected on SWDIO, starts blinking and my SWD connection beaks. Is there some build flag needed for disable status led?
      And second thing: I think, that Eclipse hasn't properly mapped source files to physical addresses. When I enter debug mode, card with hardware address, e.g. 0x48de08, pops up, but with message "Break at address "0x48de08" with no debug information available, or outside of program code." Is there some address offset, which I have to apply, or is here some additional config needed for Eclipse to accept source files, or is this just because program is deep in some library, which Eclipse can't disassemble?
      Thanks for your advice.

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Thugmek
        last edited by

        @Thugmek with regard to your first question, the Debug build configurations of RRF leave the SWD pins for SWD use. So you should use the Duet3_Debug build configuration for debugging.

        The Debug build configurations also enable generation of debug information in the compiler settings, which may go some way towards addressing your second question.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA