Skip to content

[WIP] Add basic FOTA capable bootloader#27

Open
jonlamb-gh wants to merge 1 commit intodevelfrom
fota-bootloader
Open

[WIP] Add basic FOTA capable bootloader#27
jonlamb-gh wants to merge 1 commit intodevelfrom
fota-bootloader

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.

1 participant