Skip to content

Commit

Permalink
[rstmgr, sival] Fix alert_info test on ROM_EXT + FPGA
Browse files Browse the repository at this point in the history
The test generates a kTopEarlgreyAlertIdFlashCtrlFatalErr
alert only on the FPGA and with ROM_EXT. It doesn't happens on
Silicon probrably because it has the seeds.

Signed-off-by: Douglas Reis <[email protected]>
  • Loading branch information
engdoreis committed May 2, 2024
1 parent ccb50a0 commit 32d2c5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sw/device/tests/rstmgr_alert_info_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@ static void init_expected_cause(void) {
.alert_info.alert_cause[kTopEarlgreyAlertIdI2c0FatalFault] = 1;
kExpectedInfo[kRound3]
.alert_info.alert_cause[kTopEarlgreyAlertIdSpiHost0FatalFault] = 1;

if (kDeviceType == kDeviceFpgaCw310 || kDeviceType == kDeviceFpgaCw340) {
kExpectedInfo[kRound3]
.alert_info.alert_cause[kTopEarlgreyAlertIdFlashCtrlFatalErr] = 1;
}
}

bool test_main(void) {
Expand Down

0 comments on commit 32d2c5c

Please sign in to comment.