Skip to content

ECUs check for safe canflash state before resetting#544

Open
Tegh25 wants to merge 2 commits intomainfrom
atelieyt/ota_safe_canflash
Open

ECUs check for safe canflash state before resetting#544
Tegh25 wants to merge 2 commits intomainfrom
atelieyt/ota_safe_canflash

Conversation

@Tegh25
Copy link
Member

@Tegh25 Tegh25 commented Nov 16, 2025

Closes #521.
Updated all 3 ECUs front cont, tms, and lv cont.
Added CanFlashAllowed field to can message FcStatus, to communicate with other ECUs

@Tegh25 Tegh25 self-assigned this Nov 16, 2025
@Tegh25
Copy link
Member Author

Tegh25 commented Nov 16, 2025

This commit adds the ability for the front controller to share if it's in the safe state for flashing, the other two ECUs will check for this safe state before initiating the software reset.
However, this commit does not stop the canflash.sh script from completing its execution. Another potential solution to use candump to look for the CanFlashAllowed flag in the FcStatus message and stop execution if not in a safe state.

Updated all 3 ECUs front cont, tms, and lv cont.
Added CanFlashAllowed field to can message FcStatus, to communicate with
other ECUs
The can_flash_allowed state is broadcasted by the front controller. The
canflash script will read this value and continue with flashing only if
can_flash_allowed is 1.
@Tegh25 Tegh25 force-pushed the atelieyt/ota_safe_canflash branch from f4ceb1b to 60d39a9 Compare February 10, 2026 01:17
@Tegh25 Tegh25 marked this pull request as ready for review February 10, 2026 01:19
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.

OTA Safe CAN Flash State

1 participant

Comments