2023-11-14 02:36 AM
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.
if reset SBSFU, still cannot run UserAPP.
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)
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.
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)
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.
Solved! Go to Solution.
2023-11-15 11:10 PM
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.
2023-11-15 07:41 AM
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
2023-11-15 11:10 PM
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.