cancel
Showing results for 
Search instead for 
Did you mean: 

cannot launch UserAPP after SBSFU

alyssa
Associate

Hi, I am a beginner in SBSFU.

STM32L4S7ZIT6

STM32CUBEIDE Version: 1.12.0

STM32CUBEProgrammer v 2.13.0 (for download SBSFU and full chip erase)

Tera Term v 4.106

When run SBSFU, I can get EXECUTE USER FIRMWARE at end, but cannot run UserAPP.

alyssa_0-1699955016076.png

if reset SBSFU, still cannot run UserAPP.

alyssa_3-1699956507644.png

I have done some debug:

1. never use RDP2 level 2

2. boot is set to GND

3. modify linker_common and STM32L4S7ZITX_FLASH.ld by STM32CubeExpansion_SBSFU_V2.6.2 (B-L4S5I-IOT01A)

alyssa_4-1699957019484.png

4. modify system_stm32l4xx.c and STM32L4S7ZITX_FLASH.ld in UserAPP for SBSFU( if don't change, i mean that UserAPP can run normally without SBSFU)

5. disable SECBOOT_DISABLE_SECURITY_IPS at app_sfu.h

reference:

1. if i run UserAPP alone, it show error Break at address "0x1fff51da" with no debug information available, or outside of program code. then it can run to main.

alyssa_2-1699956302724.png

2. if i run SBSFU alone, it show error Break at address "0x1fff51da" with no debug information available, or outside of program code. then it can run to main. (i think the correct one is i can see run at startup_stm32l4s7.s then back to main)

alyssa_1-1699956165944.png

i don't know why after SBSFU the UserAPP cannot run. Maybe the point is 0x1fff51da?

it will be very helpful, if any one tell me something.

thank you.

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @STea 

thanks for you reply.

The good news is I follow you suggestion, and find the solution. I make some mistakes on SLOT_Active_1 address . Also i change the memory area for ISR_VECTOR. Both is in the STM32L4S7ZITX_FLASH.ld.

now it is working as expected.

View solution in original post

2 REPLIES 2
STea
ST Employee

Hello @alyssa ,

according to my understanding you have made a ported version of the SBSFU form the "STM32CubeExpansion_SBSFU_V2.6.2\Projects\B-L4S5I-IOT01A" to the STM32L4S7ZITX board .

if it is the case i thin you have made some missed steps while doing this process so i recommend following the process described in the AN5056  section 3 Porting X-CUBE-SBSFU onto another board this should take you throw all the necessary steps needed if i understand you correctly .

BR 

 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi @STea 

thanks for you reply.

The good news is I follow you suggestion, and find the solution. I make some mistakes on SLOT_Active_1 address . Also i change the memory area for ISR_VECTOR. Both is in the STM32L4S7ZITX_FLASH.ld.

now it is working as expected.