2.1.4.3.1. cli.cmd_bootloader.bootloader_binary_file.BootloaderBinaryFile
- class cli.cmd_bootloader.bootloader_binary_file.BootloaderBinaryFile(app: Path = WindowsPath('D:/_github/foxbms-2/build/app_embedded/src/app/main/foxbms.bin'), crc_table: Path = WindowsPath('D:/_github/foxbms-2/build/app_embedded/src/app/main/foxbms.crc64.csv'), program_info: Path = WindowsPath('D:/_github/foxbms-2/build/app_embedded/src/app/main/foxbms.crc64.json'))
Class to handle an application binary file and prepare the binary data for bootloader usage (e.g., calculate a CRC for of the application binary).
- __init__(app: Path = WindowsPath('D:/_github/foxbms-2/build/app_embedded/src/app/main/foxbms.bin'), crc_table: Path = WindowsPath('D:/_github/foxbms-2/build/app_embedded/src/app/main/foxbms.crc64.csv'), program_info: Path = WindowsPath('D:/_github/foxbms-2/build/app_embedded/src/app/main/foxbms.crc64.json'))
Methods
__init__
([app, crc_table, program_info])get_crc_and_data_by_index
(index_of_8_bytes)Get the CRC signature and data in 64 bits from the CRC table array based on the index.