Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

twilfredo
Copy link
Contributor

@twilfredo twilfredo commented Aug 26, 2022

Pull Request Overview

Adds a new test suite to test the flash controller directly.
Previous testing was implicit through the TickV tests.

This is useful for testing OT changes to the flash controller
directly, and much faster (on Verilator)/easier to debug compared to
TicKV tests.

We currently test all supported functionality,
read_page, write_page and erase_page.

Testing Strategy

make BOARD_CONFIGURATION=sim_verilator test-verilator

Verilator Output:

I00001 test_rom.c:115] Test ROM complete, jumping to flash!
Unable to find otbn-rsa, disabling RSA support
OpenTitan initialisation complete. Entering main loop
[FLASH_CTRL] Test page read/write....
    [ok]
[FLASH_CTRL] Test page erase....
    [ok]
trivial assertion... 
    [ok]

Notes

The testing is done on the latest supported version of Tock for Opentitan, so this depends on #3056

Documentation Updated

  • No updates are required.

Formatting

  • Ran make prepush.

Adds a new test suite to test the flash controller directly.
Previous testing was implicit through the TickV tests.

This is usefull for testing OT changes to the flash controller
directly, and much faster for when running on Verilator compared to
TicKV tests.

We currently test all supported functionality,
`read_page`, `write_page` and `erase_page`.

Signed-off-by: Wilfred Mallawa <[email protected]>
@github-actions github-actions bot added the WG-OpenTitan In the purview of the OpenTitan working group. label Aug 26, 2022
@bradjc bradjc added the blocked-AfterRelease Waiting for an active release process to finish label Aug 26, 2022
@bradjc
Copy link
Contributor

bradjc commented Sep 7, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 7, 2022

@bors bors bot merged commit 85c54bf into tock:master Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-AfterRelease Waiting for an active release process to finish WG-OpenTitan In the purview of the OpenTitan working group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants