Skip to content

Commit

Permalink
errors: trigger some error action to test system response
Browse files Browse the repository at this point in the history
allows testing of correct reporting of errors
  • Loading branch information
fouge committed May 7, 2024
1 parent 649a514 commit e3a2287
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions messages/mcu_messaging_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,22 @@ message MemfaultEvent
// Jetson was offline such as Hardware diagnostics, logs
// & Memfault data
message SyncDiagData {}

// Chaos engineering test
// only available in debug builds
message DiagTest
{
enum Action {
TRIGGER_WATCHDOG = 0;
TRIGGER_ASSERT_SOFT = 1;
TRIGGER_ASSERT_HARD = 2;
TRIGGER_LOG = 3;
TRIGGER_BUSFAULT = 4;
TRIGGER_HARDFAULT = 5;
TRIGGER_MEMMANAGE = 6;
TRIGGER_USAGEFAULT = 7;
TRIGGER_K_PANIC = 8;
TRIGGER_K_OOPS = 9;
}
Action action = 1;
}
1 change: 1 addition & 0 deletions messages/mcu_messaging_main.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ message JetsonToMcu
ConeLEDsPattern cone_leds_pattern = 44;
WhiteLEDsBrightness white_leds_brightness = 45;
SyncDiagData sync_diag_data = 46;
DiagTest diag_test = 47;
}
}

Expand Down
1 change: 1 addition & 0 deletions messages/mcu_messaging_sec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ message JetsonToSec
ValueGet value_get = 22;
FirmwareConfirmPrimary fw_image_primary_confirm = 23;
SyncDiagData sync_diag_data = 24;
DiagTest diag_test = 25;
}
}

Expand Down

0 comments on commit e3a2287

Please sign in to comment.