Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to abort from write_flash in openlcb/Bootloader.hxx #721

Open
atanisoft opened this issue Jul 9, 2023 · 0 comments
Open

Add ability to abort from write_flash in openlcb/Bootloader.hxx #721

atanisoft opened this issue Jul 9, 2023 · 0 comments

Comments

@atanisoft
Copy link
Collaborator

When running the bootloader to update firmware it can be useful to abort the process as soon as there is an error in write_flash. Today there is no way to handle this other than rebooting the node entirely.

An example usecase is with the the ESP32 firmware, the first segment (~256b or so) contains firmware identification data (target chip id, size, etc). If the firmware is not for the currently running SoC it doesn't make sense to continue reading the rest of the firmware over CAN and instead abort the request immediately with an error code like ERROR_FIRMWARE_INCOMPATIBLE.

Other similar use cases could be considered and would allow flexibility on aborting earlier in the stream.

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

No branches or pull requests

1 participant