BootLoader Uploader C++ based CAN bus firmware upload tool for embedded devices.
Setup CAN interface
sudo ip link set can0 type can bitrate 500000
sudo ip link set up can0
Run uploader
sudo ./bootloader_uploadersetid Set CAN node ID (0x00-0x1F)
erase Erase application flash
write Upload firmware file
crc Check application CRC
info Show device information
exit Quit application
bootloader> setid
Enter node ID: 0x01
bootloader> write
Enter firmware file: firmware.bin
Proceed? (y/n): y
[PROGRESS] 1024/2048 bytes (50%)
[NOTICE] Firmware upload completed!CAN 2.0B standard frame
Node ID: Bits 10-7
Command: Bits 6-0
0x01: Erase flash
0x02: Start write
0x03: Write data
0x04: End write
0x05: Request CRC
Linux with SocketCAN CAN interface (can0) libreadline-dev
sudo apt-get install libreadline-dev can-utils