Page 1 of 1

debug configuration

Posted: Sat Jun 30, 2018 11:04 am
by liuyuzhen
Hello,

I recently ran into a problem while debugging crazyflie with stlink. I followed the procedure: “To start debugging go into the "Run -> Debug configurations..." dialog and under "GDB OpenOCD Debugging" I find "Crazyflie 2.0". Press the debug button”.
It should start the debug and hit a breakpoint at main, but it didn't. The eclipse interface is shown below Fig. 1 and Fig. 2. I don't know what the problem is. But I've done it before, and it stops at the break point of the main function.

Re: debug configuration

Posted: Sat Jun 30, 2018 11:06 am
by liuyuzhen
Looking forward to your reply. Thank you very much.

Jackie

Re: debug configuration

Posted: Mon Jul 02, 2018 8:40 am
by tobias
You entered the Hard fault handler before reaching main. Probably because you flashed a bad FW.

Re: debug configuration

Posted: Mon Nov 05, 2018 8:55 pm
by josbat
Hi, Im a beginner,
Why can't i debug the crazyfile 2.0 with Crazyradio PA 2.4 GHz USB dongle other than the Debugger kit, can you please explain in briefly.

Thank you

Re: debug configuration

Posted: Wed Nov 28, 2018 9:04 am
by arnaud
Hi josbat, are you having the same problem as the original poster in this topic? if not please create a new topic with a bit of context.

A quick answer: if you want to set breakpoint and look into the CPU state you need a debug adapter since this is the only way to connect to the STM32 debug port. Crazyflie has many development subsystem like log and param that allows to work with the firmware without having to use a debugger, basically as long as you are not doing low lever driver work you should not need a debug adapter (we very rarely use one).