2022-02-15 12:05 PM
I wont to test the L432KC example on a NUCLEO-L432KC board
"\SBSFU\STM32CubeExpansion_SBSFU_V2.6.0\Projects\NUCLEO-L432KC\Applications\1_Image"
I have created correctly a new workspace and imported the necessary projects. All compiles fine and I get "SBSFU_UserApp.bin" and "UserApp.sfb"
With CubeProgrammer I have written SBSFU_UserApp.bin that is a all in one firmware, but using TeraTerm I can see that the board continue to stay in boot-loader mode
I have tried to send UserApp.sfb, but at the end of process no error messages, the board makes a software reset, but stay always in boot mode.
= [SBOOT] System Security Check successfully passed. Starting...
======================================================================
= (C) COPYRIGHT 2017 STMicroelectronics =
= =
= Secure Boot and Secure Firmware Update =
======================================================================
= [SBOOT] SECURE ENGINE INITIALIZATION SUCCESSFUL
= [SBOOT] STATE: CHECK STATUS ON RESET
INFO: A Reboot has been triggered by a Software reset!
= [SBOOT] STATE: CHECK NEW FIRMWARE TO DOWNLOAD
= [SBOOT] STATE: DOWNLOAD NEW USER FIRMWARE
File> Transfer> YMODEM> Send
Tampering fault
========= End of Execution ==========
= [SBOOT] System Security Check successfully passed. Starting...
======================================================================
= (C) COPYRIGHT 2017 STMicroelectronics =
= =
= Secure Boot and Secure Firmware Update =
======================================================================
= [SBOOT] SECURE ENGINE INITIALIZATION SUCCESSFUL
= [SBOOT] STATE: CHECK STATUS ON RESET
INFO: A Reboot has been triggered by a Software reset!
= [SBOOT] STATE: CHECK NEW FIRMWARE TO DOWNLOAD
= [SBOOT] STATE: DOWNLOAD NEW USER FIRMWARE
File> Transfer> YMODEM> Send .................
User Yellow LED on top of the board continue to blink the RED one is fixed RED
Can someone check if there is some issue ?
SBSFU version is STM32CubeExpansion_SBSFU_V2.6.0
Solved! Go to Solution.
2022-02-15 11:09 PM
Hi,
I can see this error message in your logs:
" Tampering fault"
Which is an error message:
/**
* The following strings associated to the exceptions/errors are used for debugging purpose.
* WARNING: The string array must match perfectly with the @ref SFU_EXCPT_IdTypeDef.
* And the @ref SFU_EXCPT_IdTypeDef enum must be a sequence starting from 0
*/
static char *m_aErrorStrings[] ={ "No error. Success",
"Memory fault",
"Hard fault",
"Tampering fault",
...
So maybe the tamper detects an intrusion while the process is in progress.
To make sure this is not the problem, you can modify app_sfu.h to disable this protection:
/* #define SFU_TAMPER_PROTECT_ENABLE */
Then you can recompile SBSFU.
Thanks & Regards,
Fred
2022-02-15 11:09 PM
Hi,
I can see this error message in your logs:
" Tampering fault"
Which is an error message:
/**
* The following strings associated to the exceptions/errors are used for debugging purpose.
* WARNING: The string array must match perfectly with the @ref SFU_EXCPT_IdTypeDef.
* And the @ref SFU_EXCPT_IdTypeDef enum must be a sequence starting from 0
*/
static char *m_aErrorStrings[] ={ "No error. Success",
"Memory fault",
"Hard fault",
"Tampering fault",
...
So maybe the tamper detects an intrusion while the process is in progress.
To make sure this is not the problem, you can modify app_sfu.h to disable this protection:
/* #define SFU_TAMPER_PROTECT_ENABLE */
Then you can recompile SBSFU.
Thanks & Regards,
Fred
2022-02-16 12:53 AM
Thanks, I didn't really notice the error message! I solved it by putting the jumper between D2 and GND. Crazy