[riot-notifications] [RIOT-OS/RIOT] usbus/dfu: add Device Firmware Upgrade support for USBUS (2nd attempt) (#15460)

Dylan Laduranty notifications at github.com
Sun Nov 29 11:20:12 CET 2020


> looks pretty straightforward.
Would be nice to have the flash process integrated into the build system, so make PROGRAMMER=dfu-util flash flash works instead of having to manually invoke dfu-util.

I didn't implement it yet because I'm not that familiar with RIOT build system. I can add it here now or in another PR later (I prefer the latter :) )


> I tried to flash a third firmware:
However, this didn't seem to work - the firmware in slot 1 is always booted.

I'll look into this. This is not a normal behavior.

> It's seems like I can't flash into slot 1 when the last firmware is running from slot1, but that shouldn't matter for riotboot.

Indeed, but since there is no way to tell which slot or address we want to flash with dfu-utils (and DFU 1.1 spec) I had to take a decision about the slot selection. Basically, we let riotboot check which slot SHOULD start and we flash the other slot available with the newer firmware. 

> It's also a bit strange that the user has to take care about the firmware version - shouldn't the firmware that was flashed by the user always be booted, not matter what version the previously installed firmware had?

I'll rework it when I'll integrate dfu-utils to the build system.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15460#issuecomment-735371078
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201129/22b86c4c/attachment-0001.htm>


More information about the notifications mailing list