From 0ef0097d0a1bcde9c4b0db0f439e55333e6f770f Mon Sep 17 00:00:00 2001 From: James O'Shannessy <12959316+joshanne@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:33:40 +1100 Subject: [PATCH] bootloader: reserve device info fields for reading bootloader/application information from bootloader Support for reading bootloader SHA is being added to ArduPilot - so reserving the device info fields here to maintain compatibility. --- platforms/nuttx/src/bootloader/common/bl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platforms/nuttx/src/bootloader/common/bl.c b/platforms/nuttx/src/bootloader/common/bl.c index 7690fe062aa6..bf15681383db 100644 --- a/platforms/nuttx/src/bootloader/common/bl.c +++ b/platforms/nuttx/src/bootloader/common/bl.c @@ -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 @@ -690,6 +694,9 @@ bootloader(unsigned timeout) // BOARD_REV reply: /INSYNC/EOC // FW_SIZE reply: /INSYNC/EOC // VEC_AREA reply /INSYNC/EOC + // Reserved (BL_OPTS) reply: /INSYNC/EOC + // Reserved (BL_SOFTWARE) reply: /INSYNC/EOC + // Reserved (APP_SOFTWARE) reply: /INSYNC/EOC // bad arg reply: INSYNC/INVALID // case PROTO_GET_DEVICE: