Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Update RFFE reprog functions #158

@henrique-silva

Description

@henrique-silva

The RFFE reprog algorithm has changed lnls-dig/rffe-fw@30a1815
Now the bsmp client must send a message with 128 bytes, being the first 3 the new firmware version that is going to be uploaded in the order -> MAJOR MINOR PATCH, followed by 125 pad bytes (doesn't matter the value).
Right after, the variable Reprogramming (ID=9) must be set to 1. Then, the firmware must be uploaded in 128-bytes pages, with the last one being padded with 0xFF if necessary.
When finished, the variable Reprogramming must be set to 2, so that the RFFE can process the new file and Reset itself.

A python implementation of this routine can be found here

OBS: The reset happens automatically after processing the new firmware file, no need to set the Reset variable for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions