cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to load UserApp (sfb file) using TeraTerm .The terminal is always stuck at the first block transfer.

p123
Associate II

Hello, I am new with NUCLEO STM32G4754 and trying the SBSFU examples (1 image). I can flash and launch the SBSFU but I can't load any user application (userapp.sfb)

I use STM32 tools, Windows with the same result :

  • I connect using Teraterm (on Windows) with YMODEM protocol,
  • The terminal display the SBSFU sequence, which is good and terminates by waiting for a user applion to be downloaded
  • I Send the UserApp.sfb with (File->Transfer->Ymodem)
  • AND the load remains stopped only elapsed time is increases..

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @PB1,

if the STLink does not find the STM32G4 target, this can be because you mistakenly activated RDP2 level 2. In this case you need to change your chip. There is no way to recover. Other possibility, something went wrong on your board, a jumper was removed, power fails, a short, anything that prevents the MCU to boot. You can check reset pin for instance to see if it is released.

Best regards

Jocelyn

View solution in original post

13 REPLIES 13
Frantz LEFRERE
ST Employee

Hello,

I was not able to reproduce your issue.

You can try to deactivate all the security feature :

in the file app_sfu.h :

#define SECBOOT_DISABLE_SECURITY_IPS 

Then you will be able to connect and debug the SBSFU

Jocelyn RICARD
ST Employee

Hello @p123​ ,

could you please tell which version of SBSFU you are using and which IDE.

Also, are you using TeraTerm V4.90?

Thank you

Best regards

Jocelyn

Okay

SBSFU Version - 2.4.0

IDE - STM32CubeIDE - 1.7.0

Tera Term - 4.106

p123
Associate II

I will try this and let you know

Jocelyn RICARD
ST Employee

Hi @p123​,

I have checked wit exact same configuration as yours without changing anything and it works fine.

Did you have an empty flash before downloading SBSFU ?

Also what do you see in the Ymodem window.

Here is what I see during the transfer:

0693W00000Hqh9wQAB.png 

Best regards

Jocelyn

Hi @Jocelyn RICARD​ ,

From STM32CubeExpansion_SBSFU_V2.5.0 we have taken NUCLEO-G474RE as our reference code.

In the reference code LPUART1 is been used

But we have STM32G484QE EVK so we made the changes in the ref code

All LPUART Mapping was converted to USART1 as per our EVK.

Case 1 :

If we deactivate all the security feature :

in the file app_sfu.h :

#define SECBOOT_DISABLE_SECURITY_IPS 

We could download the SBSFU code and started testing.

After the Program executes we are able to see the main menu

Download a new Fw Image ------------------------------- 1

Test Protections -------------------------------------- 2

Test SE User Code ------------------------------------- 3

Multiple download ------------------------------------- 4

Validate a FW Image------------------------------------ 5

Now when we press 1 i.e Download a new FW Image

we are getting the following message

"Feature Not Supported"

If we want to download a new image then pls. suggest a reference code which will help us in implementing the firmware upgrade using the YMODEM.

Case 2:

If we activate all the security feature :

in the file app_sfu.h :

#define SECBOOT_DISABLE_SECURITY_IPS 

We could download the SBSFU code and started testing.

After the Program executes we are able to see the main menu

Download a new Fw Image ------------------------------- 1

Test Protections -------------------------------------- 2

Test SE User Code ------------------------------------- 3

Multiple download ------------------------------------- 4

Validate a FW Image------------------------------------ 5

Now when we press 1 i.e Download a new FW Image

we are getting nothing.

(i.e. It cannot take any input....If we press key2 nothing is happen same for remaining key )

If we want to download a new image then pls. suggest a reference code which will help us in implementing the firmware upgrade using the YMODEM.

Hello @p123​,

As you are using the 1 image, the application cannot be used to download a new image.

This is way this feature is not supported.

To trigger the update you need to have a GPIO set to specific value after reset.

On the Nucleo board we use the blue button for this purpose.

So, if you maintain the blue button and then reset, SBSFU will detect it, will switch to firmware download mode.

So, on your board you need to find a way to do the same.

Regarding the input key not recognized when you activate protection, I have no idea what could be the reason.

To be able to get a clue, I would suggest activating the protections one by one in app_sfu.h and see which protection impacts this.

Best regards

Jocelyn

Hi @Frantz LEFRERE​ ,

After doing this we receive the following response:

We could download the SBSFU code and started testing.

After the Program executes we are able to see the main menu

Download a new Fw Image ------------------------------- 1

Test Protections -------------------------------------- 2

Test SE User Code ------------------------------------- 3

Multiple download ------------------------------------- 4

Validate a FW Image------------------------------------ 5

Now when we press 1 i.e Download a new FW Image

we are getting the following message

"Feature Not Supported"

If we want to download a new image then pls. suggest a reference code which will help us in implementing the firmware upgrade using the YMODEM.