cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G4 SBSFU do not display Welcome screen

NR-A Comm
Associate II

I tried to step-by-step execution based on UM2262. But I could not get SBSFU welcome screen display (Fig24).

My SBSFU display below.

[SBOOT] Flash Configuration KO: Dual bank mode activated. STOP!

[SBOOT] Security issue: execution stopped!

My step-by-step execution configuration are below.

- STM32CubeIDE v1.3.0, 2020/02/26

- X-CUBE-SBSFU v2.3.0, 2020/01/17

- NUCLEO-G474RE, RDP level 0, PCROP, DBANK are all default MCU setting (Fig 18 – 21)

- ST-LINK firmware version V3J5M2

Attached is STM32CubeIDE projects.

I also tried SW4STM32 but results are same.

Please advise or help me to get SBSFU display Welcome screen.

Thank you in advance.

6 REPLIES 6
Arno1
Senior

Hi,

If your working with a device that only supports single bank flash memory you must define SINGLE_BANK_FLASH=1.

Check sfu_low_level_security.c for more info.

BR,

Arno

NR-A Comm
Associate II

Thank you for advice. I understood where printing ERROR msg.

I tried and added define statement on sfu_low_level_security.c but it doesn't get Welcome screen.

STM32CubeProgrammer User Configuration and PCROP are attached for your reference.

I tried both Check/Uncheck of DBANK, but it was not solved.

NR-A Comm
Associate II

PS: I forget to attach reference.

Arno1
Senior

Looks like I mistakenly looked at code I had changed and SINGLE_BANK_FLASH is something I had created.

I had the same problem as you do when switching to another board with a different chip. Basically you can simply disable this error check by letting the function

SFU_LL_SECU_CheckFlashConfiguration return SFU_SUCCESS.

NR-A Comm
Associate II

Thank you. Yes, I can disable [SBOOT] Flash Configuration KO: Dual bank mode activated. STOP!.

But, I cannot still disable [SBOOT] Security issue: execution stopped!.

Anyway, again I thank you for advice.

NR-A Comm
Associate II

I can get Welcome Screen, by Option byte DBANK Off.

Thank you everyone.