Solid or Blinking M2 LED [Solved]
Posted: Wed Oct 05, 2016 4:06 pm
When I power on the crazyflie on the M2 LED lights up. And when I enter bootloader mode by holding the power button for more than a few seconds M2 starts blinking. There is nothing else happening on the board.
For the past week everything had been working well until today. I tried using the VM to set up the debugger and it just kept not working. I was following the instructions here: https://wiki.bitcraze.io/projects:virtu ... jtag_debug
I connected the debugger and hit debug in eclipse and it opens the debug window. But I never get the chance to actually set breakpoints and step through the code as it keeps popping up with various errors (Symbol Null is not defined etc).
So I stopped eclipse and just went straight to the makefile and tried using gdb and to debug/flash it. I get an error that says "target halted due to debug-request, current mode: Thread"
1. The VCC is at 2.99V so that's not the problem.
2. I tried using the cfclient to reset the bootloader using the instructions (replug radio, etc) and nothing happens.
3. I have changed out the batteries and left the crazyflie unplugged for a few minutes.
4. I tried powering it just over USB and there is not change.
5. I have tried this in both native linux and the most recent virtual machine.
6. I tried using the cfloader flash tool but it says it can not connect to the bootloader.
It appears as if the firmware (stock, most recent pull) somehow got stuck in debug mode despite the reset and power off.
1. How can I reset the crazyflie?
2. After resetting the drone, how can I actually use the debugger to step through the code?
For the past week everything had been working well until today. I tried using the VM to set up the debugger and it just kept not working. I was following the instructions here: https://wiki.bitcraze.io/projects:virtu ... jtag_debug
I connected the debugger and hit debug in eclipse and it opens the debug window. But I never get the chance to actually set breakpoints and step through the code as it keeps popping up with various errors (Symbol Null is not defined etc).
So I stopped eclipse and just went straight to the makefile and tried using gdb and to debug/flash it. I get an error that says "target halted due to debug-request, current mode: Thread"
1. The VCC is at 2.99V so that's not the problem.
2. I tried using the cfclient to reset the bootloader using the instructions (replug radio, etc) and nothing happens.
3. I have changed out the batteries and left the crazyflie unplugged for a few minutes.
4. I tried powering it just over USB and there is not change.
5. I have tried this in both native linux and the most recent virtual machine.
6. I tried using the cfloader flash tool but it says it can not connect to the bootloader.
It appears as if the firmware (stock, most recent pull) somehow got stuck in debug mode despite the reset and power off.
1. How can I reset the crazyflie?
2. After resetting the drone, how can I actually use the debugger to step through the code?