Skip to content

Commit

Permalink
bootloader: reserve device info fields for reading bootloader/applica…
Browse files Browse the repository at this point in the history
…tion information from bootloader

Support for reading bootloader SHA is being added to ArduPilot - so reserving the device info fields here to maintain compatibility.
  • Loading branch information
joshanne committed Jan 8, 2025
1 parent 1abc27d commit 0ef0097
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platforms/nuttx/src/bootloader/common/bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@
#define PROTO_DEVICE_BOARD_REV 3 // board revision
#define PROTO_DEVICE_FW_SIZE 4 // size of flashable area
#define PROTO_DEVICE_VEC_AREA 5 // contents of reserved vectors 7-10
#define PROTO_DEVICE_RESERVED_6 6 // Reserved
#define PROTO_DEVICE_RESERVED_7 7 // bootloader software info bits
#define PROTO_DEVICE_RESERVED_8 8 // bootloader software build
#define PROTO_DEVICE_RESERVED_9 9 // application software build

// State
#define STATE_PROTO_GET_SYNC 0x1 // Have Seen NOP for re-establishing sync
Expand Down Expand Up @@ -690,6 +694,9 @@ bootloader(unsigned timeout)
// BOARD_REV reply: <board rev:4>/INSYNC/EOC
// FW_SIZE reply: <firmware size:4>/INSYNC/EOC
// VEC_AREA reply <vectors 7-10:16>/INSYNC/EOC
// Reserved (BL_OPTS) reply: <bootloader options:4>/INSYNC/EOC
// Reserved (BL_SOFTWARE) reply: <bootloader software:8>/INSYNC/EOC
// Reserved (APP_SOFTWARE) reply: <application software:8>/INSYNC/EOC
// bad arg reply: INSYNC/INVALID
//
case PROTO_GET_DEVICE:
Expand Down

0 comments on commit 0ef0097

Please sign in to comment.