Skip to content

Commit

Permalink
memfault: main & security mcu to report diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
fouge authored Mar 8, 2024
2 parents e007404 + 568dea6 commit 6307b15
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions messages/mcu_messaging_common.options
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FirmwareUpdateData.image_block max_size: 39
Log.log max_length: 50
MemfaultEvent.chunk max_size: 50
7 changes: 7 additions & 0 deletions messages/mcu_messaging_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,10 @@ message Versions
FirmwareVersion primary_app = 1;
FirmwareVersion secondary_app = 2;
}

message MemfaultEvent
{
// chunk must be sent to the Memfault backend in order
uint32 counter = 1;
bytes chunk = 2;
}
1 change: 1 addition & 0 deletions messages/mcu_messaging_main.proto
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ message McuToJetson
BatteryInfoMaxValues battery_info_max_values = 25;
BatteryInfoSocAndStatistics battery_info_soc_and_statistics = 26;
ConePresent cone_present = 27;
MemfaultEvent memfault_event = 28;
}
}

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 @@ -50,6 +50,7 @@ message SecToJetson
private.TamperRaw tamper_raw = 9;
private.TamperStates tamper_states = 10;
Temperature temperature = 11;
MemfaultEvent memfault_event = 12;
}
}

Expand Down

0 comments on commit 6307b15

Please sign in to comment.