Difficulties with SWD debugging due flashing status LED
-
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. -
@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.