5.3.1.3.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_ti_arm_cgt/src/app/main/foxbms.bin'), crc_table: Path = WindowsPath('D:/_github/foxbms-2/build/app_ti_arm_cgt/src/app/main/foxbms.crc64.csv'), program_info: Path = WindowsPath('D:/_github/foxbms-2/build/app_ti_arm_cgt/src/app/main/foxbms.crc64.json'))
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).
- get_crc_and_data_by_index(index_of_8_bytes: int) tuple[int, int]
Get the CRC signature and data in 64 bits from the CRC table array based on the index.
- Parameters:
index_of_8_bytes – index of the CRC table array
- Returns:
A tuple containing the CRC signature and data in 64 bits.