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.
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.