Skip to content

Commit 52b8d12

Browse files
committed
Added option to request firmware blocks over CAN in UF2 format
1 parent fd8b210 commit 52b8d12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/CanMessageFormats.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,9 @@ struct __attribute__((packed)) CanMessageFirmwareUpdateRequest
667667
static constexpr CanMessageType messageType = CanMessageType::firmwareBlockRequest;
668668

669669
uint32_t fileOffset : 24, // the offset in the file of the data we need
670-
bootloaderVersion: 6, // the protocol version of the bootloader or firmware making this request, currently 0
671-
fileWanted : 2; // 0 = want firmware file, 1 = want bootloader, 2 and 3 reserved
670+
bootloaderVersion: 5, // the protocol version of the bootloader or firmware making this request, currently 0
671+
uf2Format : 1, // set if we want UF2 format, otherwise we want binary
672+
fileWanted : 2; // 0 = want firmware file, 1 and 2 reserved, 3 = want bootloader
672673
uint32_t lengthRequested : 24, // how much data we want
673674
boardVersion : 8; // the hardware version of this board, currently always 0 for production boards
674675
char boardType[56]; // null-terminated board type name (firmware request) or bootloader class name (bootloader request)

0 commit comments

Comments
 (0)