Hello Jaouen,

  I have a development issue when running TFM download process on the STM32L562.Print a error log"[ERR] Image in the secondary slot is not valid!" when download tfm_s_enc_sign.bin.ALL other 3 bin(tfm_s_sign.bin,tfm_ns_sign.bin,tfm_ns_enc_sign.bin) download success.

        I follow the document UM2671 chapter 11.4 Download a new firmware image.

        The project is en.stm32cubel5_v1-3-0.zip,file:Projects\STM32L562E-DK\Applications\TFM

Steps to reproduce:

Reason:

  1.hash verify not pass because after decrypt, the image not same with origin image.log as below: 

  =====================================================

[INF] verify counter  0 1000000 1000000

[INF] counter  0 : ok

[INF] hash256 : 54, cc, 2c, 4c, 97, b5, 55, 68,

[INF] hash256 buf : cd, 76, a3, a1, cb, 1, 4d, bc,

[ERR] Image in the secondary slot is not valid!

 ======================================================

Does anyone know what I'm doing wrong?

 

Thanks in advance!