cloader

Crazyflie radio bootloader for flashing firmware.


Classes

Cloader

Cloader(link, info_cb=None, in_boot_cb=None)

Bootloader utility for the Crazyflie

Init the communication class by starting to communicate with the link given. clink is the link address used after resetting to the bootloader.

The device is actually considered in firmware mode.


Methods

def check_link_and_get_info(self, target_id=255)

Try to get a connection with the bootloader … update_info has a timeout of 10 seconds


def close(self)

Close the link


def decode_cpu_id(self, cpuid)

Decode the CPU id into a string


def open_bootloader_uri(self, uri=None)

def read_flash(self, addr=255, page=0)

Read back a flash page from the Crazyflie and return it


def request_info_update(self, target_id)

def reset_to_bootloader(self, target_id: int) > bool

def reset_to_firmware(self, target_id: int) > bool

Reset to firmware The parameter target_id corresponds to the device to reset.

Return True if the reset has been done, False on timeout


def scan_for_bootloader(self)

def upload_buffer(self, target_id, page, address, buff)

Upload data into a buffer on the Crazyflie


def write_flash(self, addr, page_buffer, target_page, page_count)

Initiate flashing of data in the buffer to flash.