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.
debug configuration
Re: debug configuration
Looking forward to your reply. Thank you very much.
Jackie
Jackie
Re: debug configuration
You entered the Hard fault handler before reaching main. Probably because you flashed a bad FW.
Re: debug configuration
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
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
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).
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).