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

[WIP] Add basic FOTA capable bootloader #27

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

jonlamb-gh
Copy link
Owner

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
interact with the bootloader over a TCP connection.

@jonlamb-gh jonlamb-gh changed the title Add basic FOTA capable bootloader [WIP] Add basic FOTA capable bootloader Sep 27, 2018
@jonlamb-gh
Copy link
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.
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.

None yet

1 participant