Skip to content
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

USB connected w/o battery does not go into bootloader #35

Open
knmcguire opened this issue Jul 2, 2019 · 3 comments
Open

USB connected w/o battery does not go into bootloader #35

knmcguire opened this issue Jul 2, 2019 · 3 comments
Labels

Comments

@knmcguire
Copy link
Member

When the USB is connected and there is no battery connected as well, a long press of the power button does not result the CF2 to go into bootloader mode. LED M2 does start blinking with the long press but upon release it will just restart the CF2

@tobbeanton
Copy link
Member

tobbeanton commented Jan 27, 2020

After some digging I found the problem with the booltoader mode when running from USB power only. It is a bug in the crazyflie2-nrf-bootloader that does not enable 500mA USB current limit. The crazyflie2-nrf-bootloader can be rebuilt with
make clean all USES_RFX2411N=1 USES_TI_CHARGER=1
which will enable the 500mA mode and fix the problem. Next problem is that the nrf-bootloader only can be updated with SWD. I suggest investigate the possibility to update it with the wireless bootloader.

@ataffanel
Copy link
Member

There is a (currently undocumented) functionality in the MBS that allows to safely flash a new bootloader and (possibly) BLE softdevice over the air. It requires to flash the new bootloader anywhere in flash and then to write a structure at a specific place in flash. At next reboot the MBS will then check the bootloader CRC, flash the new bootloader, verify that the flash is done successfully and clear the structure. If anything fails, the structure is still there and the flashing attempt will restart at next reboot.

This procedure is safe as long as the new bootloader is working. So this is not to be used for development but should be OK for deployment of a tested and released bootloader.

Using this functionality likely require change in the bootloader client to handle writing images in different places in flash.

@jonasdn
Copy link
Contributor

jonasdn commented Sep 8, 2021

What is the status of this issue? @tobbeanton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants