Skip to main content
Visitor II
September 4, 2025
Question

X-CUBE-SBSFU: Can you update firmware using USART DFU?

  • September 4, 2025
  • 1 reply
  • 972 views

All the provided examples are using USART YMODEM to transfer data. I know, that it really doesn't matter what kind of protocol you use as long as image is placed in a correct place in the memory, but I wonder if I can use DFU feature to update firmware and still use SBSFU. Additionaly is there any reference or resource that supports we only have to upload .sfb file and we can't use .bin file? If we have to use .sfb file only then what is the correct method of downloading it because we can't download .sfb file through cli as it doesnot support .sfb extension and same I am not able to upload it through STM32 CUBE Programmer.

1 reply

Jocelyn RICARD
ST Employee
December 4, 2025

Hello @Hammad ,

first, you can rename .sfb file into .bin. This is a pure binary file.

You cannot use DFU provided by system bootloader, because you should have your device closed.

If this is for testing purpose, with open device, you can download sfb file at the right slot address. This will work (Just rename .sfb in .bin). But this is only for testing.

For production, you can implement DFU protocol to replace Ymodem, but I'm not aware of any public example.

Best regards

Jocelyn