3.1.18.5. waf_tools.crc_bootloader.BootloaderBinaryFile
- class waf_tools.crc_bootloader.BootloaderBinaryFile(app_file: Path, crc64_table: Path, info_file: Path)
Bases:
objectClass to handle an application binary file and prepare the binary data for bootloader usage (e.g., calculate a CRC for of the application binary).
- static fill_byte_array_with_app_size(byte_array: bytearray, app_size: int) bytearray
Fill a byte array to a certain size.
- Parameters:
byte_array – byte array to be filled
app_size – size of the app
- Returns:
new byte array with the given size
- static get_data64_vector_table(byte_array_vector_table: bytearray) list[int]
Convert byte array of vector table to list of integer.
- Parameters:
byte_array_vector_table – byte array of vector table
- Returns:
list of integers