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

[opentitantool] Better SPI error messages from HyperDebug #21349

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

jesultra
Copy link
Contributor

Add text messages to the numerical codes received from HyperDebug. The binary protocol is shared with other debugger devices using the same codebase as HyperDebug, which unfortunately prevents us from splitting some of the codes further into more specific cases (such as repeated "not ready" from flash chip, as opposed to other kinds of timeouts.)

Also, increase the timeout for first response packet via USB to 1.1s, because the HyperDebug firmware has 1s timeout when repeatedly trying to poll the "ready bit" on EEPROM/flash devices, and we want to wait to receive a possible "timeout" response from HyperDebug.

Add text messages to the numerical codes received from HyperDebug.  The
binary protocol is shared with other debugger devices using the same
codebase as HyperDebug, which unfortunately prevents us from splitting
some of the codes further into more specific cases (such as repeated
"not ready" from flash chip, as opposed to other kinds of timeouts.)

Also, increase the timeout for first response packet via USB to 1.1s,
because the HyperDebug firmware has 1s timeout when repeatedly trying to
poll the "ready bit" on EEPROM/flash devices, and we want to wait to
receive a possible "timeout" response from HyperDebug.

Signed-off-by: Jes B. Klinke <[email protected]>
Change-Id: Ia38eff840c97fb696f2cb1190dbb81c5f0f70a92
@jesultra jesultra marked this pull request as ready for review February 13, 2024 20:52
@jesultra jesultra requested a review from a team as a code owner February 13, 2024 20:52
@jesultra jesultra added kokoro:rebuild SW:opentitantool CherryPick:earlgrey_es_sival This PR should be cherry-picked to earlgrey_es_sival labels Feb 13, 2024
Copy link
Contributor

@engdoreis engdoreis left a comment

Choose a reason for hiding this comment

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

Thanks @jesultra for working on this.

Copy link

Successfully created backport PR for earlgrey_es_sival:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CherryPick:earlgrey_es_sival This PR should be cherry-picked to earlgrey_es_sival SW:opentitantool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants