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

Add test for JTAG during uC reset #554

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

robertszczepanski
Copy link
Contributor

@robertszczepanski robertszczepanski commented Jul 4, 2024

Test for issue #523 resolved by PR #541.

The test flow description:

  1. Initiate Caliptra boot flow from the testbench typical for every test suite. The test suite awaits BOOTFSM_GO register value 0 in a loop.
  2. Connect to Caliptra via JTAG (OpenOCD).
  3. JTAG: Write 0 to BOOTFSM_GO register to ensure uC will not leave reset state unless permitted.
  4. Caliptra SW: Initiate Firmware Update Reset which puts uC in Boot FSM wait state due to BOOTFSM_GO set to 0.
  5. JTAG: Read dmstatus register until uC is in reset state.
  6. JTAG: Write 1 to BOOTFSM_GO register to proceed with boot flow.
  7. Caliptra SW: If reset was successful, write 1 to the mailbox to indicate successful boot.
  8. JTAG: Read the mailbox until it contains 1 and finish the test.

This test has been confirmed to fail before a1a2d69.

Internal-tag: [#61819]
Signed-off-by: Robert Szczepanski <[email protected]>
Internal-tag: [#61819]
Signed-off-by: Robert Szczepanski <[email protected]>
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.

1 participant