Skip to main content
EEdwa.1
Associate III
January 21, 2021
Question

I have downloaded the X-CUBE-SBSFU V2.4.0 and build project NUCLEO-G071RB. It works and can download firmware from Tera Term's ymodem send. Can we use only Tera Term? Do any other tools be used for download firmware?

  • January 21, 2021
  • 3 replies
  • 3098 views

..

This topic has been closed for replies.

3 replies

Jocelyn RICARD
ST Employee
January 25, 2021

Hello,

the SBSFU package provides and example of secure boot and secure firmware update.

This example implements the Ymodem protocol.

It you want to use another interface and/or protocol, you have to implement it.

The implementation of Ymodem protocol should help you understanding what needs to be changed.

Best regards

Jocelyn

Arno1
Senior
January 29, 2021

On linux I use minicom which uses sb to send files using the YMODEM protocol.

I've had to split the debug output from the update communication by using a different UART for each. I suppose TeraTerm is better able to filter out other data on the bus that is not used for YMODEM.

EEdwa.1
EEdwa.1Author
Associate III
January 29, 2021

Hi Arno,

So can you download firmware successfully by minicom?

I have try to comment "#define SFU_DEBUG_MODE" in app_sfu.h

And try to download firmware by minicom, but failed.

Should I need to modify anything else?

Thank you

Arno1
Senior
January 29, 2021

can you share your minicom ymodem settings?

Ctrl-A Z -> O (configure) -> File Transfer protocols

Jocelyn RICARD
ST Employee
January 29, 2021

Hello Arno,

this is not better with Teraterm. This is the limitation of this solution.

When downloading a new firmware through Ymodem, you lose the traces.

When it is needed to debug this specific part, I use a UART protocol analyzer connected to Rx and Tx.

Best regards

Jocelyn

Arno1
Senior
January 29, 2021

I'm going off of memory here as it's been a while but the splitting was more to see traces while testing ymodem uploads.

But that indeed may not have been the reason why things worked.