2020-12-20 06:47 AM
Hi i was wondering how i should go about implementing USB instead of UART to download the firmware in the SBSFU bootloader. I have successfully managed use USB in DFU mode to install a new firmware.
2020-12-22 10:54 AM
I have the same question.
Looking through the SBSFU code, the UART calls are abstracted down to SFU_LL_UART_[Init, Deinit, Transmit, Receive, Flush]. These just call the standard HAL_UART functions. Substituting calls to appropriately abstracted CDC calls might work.
I have no idea what exposing the USB stack would have on the security of the bootloader. Perhaps someone from ST could comment?