cancel
Showing results for 
Search instead for 
Did you mean: 

I'm not able to make working the NUCLEO-L432KC example

GMG
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Fred
ST Employee

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

View solution in original post

2 REPLIES 2
Fred
ST Employee

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

GMG
Associate III

Thanks, I didn't really notice the error message! I solved it by putting the jumper between D2 and GND. Crazy