Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootloader: reserve device info fields for reading bootloader/application information from bootloader #24182

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading