cannot flash firmware - cannot connect to bootloader

Post here to get support
Post Reply
wydmynd
Member
Posts: 87
Joined: Thu Dec 06, 2018 9:25 am

cannot flash firmware - cannot connect to bootloader

Post by wydmynd »

hi

I cannot connect to bootloader to flash firmware.
I can connect to the drone in FW mode - (via USB)

Code: Select all

---
SYS: Crazyflie 2.0 is up and running!
SYS: Build 0:a1d5aac6f3e6 (2019.02) MODIFIED
SYS: I am 0x2035355237485008004D0039 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_DRIVERS: Found 16 drivers
DECK_INFO: Found 2 deck memories.
DECK_CORE: 2 deck enumerated
ZR2: Z-down sensor [OK]
PMW: Motion chip id: 0x49:0xB6
MPU9250 I2C connection [OK].
AK8963 I2C connection [OK].
LPS25H I2C connection [OK].
ESTIMATOR: Using estimator 2
CONTROLLER: Using controller 1
EEPROM: I2C connection [OK].
AK8963: Self test [OK].
MR: Init front sensor [OK]
MR: Init back sensor [OK]
MR: Init up sensor [OK]
MR: Init left sensor [OK]
MR: Init right sensor [OK]
DECK_CORE: Deck 0 test [OK].
DECK_CORE: Deck 1 test [OK].
SYS: Free heap: 8672 bytes
using "make cload" from the VM it says --

Code: Select all

Restart the Crazyflie you want to bootload in the next
 10 seconds ...
Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-clients-python/src/cfloader/__init__.py", line 150, in main
    if bl.start_bootloader(warm_boot=False):
  File "/home/bitcraze/.local/lib/python3.6/site-packages/cflib/bootloader/__init__.py", line 112, in start_bootloader
    self._cload.request_info_update(TargetTypes.NRF51)
  File "/home/bitcraze/.local/lib/python3.6/site-packages/cflib/bootloader/cloader.py", line 246, in request_info_update
    return self.targets[target_id]
KeyError: 254
254
using cfloader it just says "cannot connect to bootloader"

I don't know how to flash firmware via USB... if you have any link to do it

thanks
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: cannot flash firmware - cannot connect to bootloader

Post by kimberly »

Hi!

Did you put the Crazyflie in Bootloader mode? You should press the button for 3 seconds until the blue LED's start to blink, as explained here: https://www.bitcraze.io/getting-started ... #update-fw

Also you would need a Crazyradio PA to connect to the Crazyflie for 'make cload'. Flashing the firmware via USB is possible but we do not advise that since that can break the bootloader if done improperly. Through the Crazyradio PA is definitely the safest way to reflash your crazyflie.
Post Reply