-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NRF unresponsive after button press #36
Comments
Hi! |
Hi. I am using two Crazyflies 2.1 with Lighthouse and LED decks attached. I compiled both, the Crazyflie firmware and the NRF firmware, with 'make'. Then I zipped the two *.bin files including the adjusted manifest.json. Finally I uploaded the firmware zip file by the PC-Client software over-the-air using Bootloader mode. Let me know if you need more information or if I shall make same further testing for you. Thanks for your attention to this issue. I guess the radio bug fixes you uploaded will depend on the NRF firmware as well? |
I investigated the situation, and you are right! The Crazyflie becomes unresponsive with the latest NRF firmware... I flashed the nrf with 'make cload' though from the terminal but that does not seem to make a difference. I also tried the latest release (tag 2019.02.1) and there it is still okay. I will try to debug the NRF and hopefully find a fix soon. It would be interesting to know which commit broke this, it could be the latest radio fixes since that is done for the NRF chip. Could you revert back to before those commits and check if the problem still exists? |
Small update on the matter. I was able to pinpoint the location in the code where the crazyflie becomes unresponsive. The Crazyflie can be started up by connecting and disconnecting the battery. However, once the botton is pressed, the NRF get's stuck in this while loop: crazyflie2-nrf-firmware/src/pm.c Line 136 in 90ac428
I do not know why yet, because that line of code has been around for 5 years. There must be something else that is going on before that. But I'll change the topic of this issue to explain the situation a bit better Let's continue the investigation! |
Another update! I figured out that the latest commit: 90ac428, broke it. Getting closer:) |
I've got to leave this issue today, so hopefully I'll figure it out this week. In the mean time @salocinx, if you make the nrf firmeware with bluetooth disabled (make BLE=0), you shouldn't have this issue. It is just a temporary fix for now. |
Hey that's amazing, thanks a lot for your great support! I also tried to pinpoint the issue, but my debugging equipment is currently quite bad. I am waiting for a JTAG debugger device which didn't arrive yet. Without, it's quite cumbersome. I just tried to compile with |
I ran into this issue as well today. @salocinx, how did you manage to revert to the latest release version with your CF2 after the initial (broken) attempt? For me, the radio is not working so I cannot upload the latest official release via the radio, and I cannot update the NRF firmware in DFU mode, only the STM32, which is not the problem here. I tried rebooting the CF2 with a warm boot using |
@ntamas have you tried the following:
This should be able to put the crazyflie in bootloader mode for sure. |
I will look at this issue this week again. @ataffanel is back from a holiday so I can also ask about the latest commit while trying to fix this |
@knmcguire yes, I have, and then I ran into issue #35 :) |
Oh yes, that is true, but issue #35 only happens if you do step 3 with the USB cable without a battery. Step 3 with a battery or battery + USB should work (I just double checked it with mine) |
Okay, thanks, will try that! Just to be clear: once I manage to reboot the CF in bootloader mode, will I have to upload the stock firmware with the radio or via USB? |
You need to bootload via radio. Crazyflie cannot be bootloaded via USB. |
Hi. I cloned and compiled the current master-branch today. Unfortunately, the power button on the Crazyflie does not work anymore. To be more specific, turning off the CF2 works, but when trying to power on again, nothing happens.
Only work-around is to open and close the power connector in order to power on the CF2 again. Moreover, I can't connect to the CF2 with radio using this master-branch (too many packets lost).
Finally I uploaded the latest release version to the CF2 and this one is working... So the power button is certainly not the problem. I also tried with a second CF2, same issue.
The text was updated successfully, but these errors were encountered: