Open
Conversation
Owner
Author
|
Marking this as a WIP for now. Mostly I want to update the documentation, but also provide a path to opt-out for folks not interested in using the bootloader. |
This commit introduces a local lightweight bootloader that enables FOTA firmware updates.
It currently supports firmware updates over TCP via smoltcp IP stack, but stubs are in
place to support updates over CAN as well.
This is the new flash layout:
- first 8 bytes are used to store a sticky word for the bootloader flagging mechanism
- followed by the bootloader firmware at 0x2000_0008
- bootloader configurations are stored in sector 3, 0x0801_8000
- OxCC firmware stored in sector 4, 0x0802_0000
To enter the bootloader, reset the board with the user-button pressed or send the board
a bootloader reset CAN message.
A simple host-side `firmware-updater` Python script is provided as an example tool to
interract with the bootloader over a TCP connection.
492e126 to
fdb26e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a local lightweight bootloader that enables FOTA firmware updates.
It currently supports firmware updates over TCP via smoltcp IP stack, but stubs are in
place to support updates over CAN as well.
This is the new flash layout:
To enter the bootloader, reset the board with the user-button pressed or send the board
a bootloader reset CAN message.
A simple host-side
firmware-updaterPython script is provided as an example tool tointeract with the bootloader over a TCP connection.