2021-12-28 04:04 AM
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 :
Solved! Go to Solution.
2022-01-07 08:26 AM
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
2022-01-04 08:37 AM
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
2022-01-04 10:12 AM
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
2022-01-04 08:11 PM
Okay
2022-01-04 08:14 PM
SBSFU Version - 2.4.0
IDE - STM32CubeIDE - 1.7.0
Tera Term - 4.106
2022-01-04 08:15 PM
I will try this and let you know
2022-01-05 10:46 AM
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:
Best regards
Jocelyn
2022-01-05 11:14 PM
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.
2022-01-06 12:54 AM
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
2022-01-06 12:55 AM
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.