Skip to content

Add libhoth_get_flash_uid and htool get_flash_uid subcommand - #337

Open
ckungler wants to merge 1 commit into
mainfrom
get_flash_uid
Open

ckungler wants to merge 1 commit into
mainfrom
get_flash_uid

Conversation

@ckungler

Copy link
Copy Markdown
Collaborator

Add protocol support (HOTH_PRV_CMD_HOTH_GET_FLASH_UID, 0x0063) to query the cached SPI NOR flash JEDEC ID and Unique ID for each configured flash device slot without initiating live SPI bus transactions, and expose it in htool via htool get_flash_uid.

Add protocol support (`HOTH_PRV_CMD_HOTH_GET_FLASH_UID`, 0x0063) to query the
cached SPI NOR flash JEDEC ID and Unique ID for each configured flash device
slot without initiating live SPI bus transactions, and expose it in `htool`
via `htool get_flash_uid`.
@ckungler
ckungler requested review from esnguyen and mfield4 November 17, 2026 23:43
Comment thread host/protocol/flash_uid.c
if (rlen != sizeof(*response)) {
return LIBHOTH_ERR_CONSTRUCT(HOTH_CTX_CMD_EXEC, HOTH_HOST_SPACE_LIBHOTH,
LIBHOTH_ERR_FAIL);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (resp_payload_size != resp_buf_size) {

Code duplication nit: If you pass NULL here for rlen, this check is preformed in libhoth_hostcmd_exec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants