cancel
Showing results for 
Search instead for 
Did you mean: 

SECoreBin Build Failure Linking STM32 Cryptographic Library With IARv9.70

SSaiPrasad
Associate II

Hello

I am developing on the STM32H7B3-DK using X-CUBE-SBSFU v2.7.0 with IAR compiler version 9.70. 

During the build, I encountered the following critical error:

Fatal error[Li004]: file "STM32CryptographicV3.1.3_CM7_IARv8.a" is not an object or archive file

It appears that the provided static library (STM32CryptographicV3.1.3_CM7_IARv8.a) was built with IAR v8.x and is incompatible with IAR v9.70, preventing successful linking. The static library is present in STM32CubeExpansion_SBSFU_V2.7.0\Middlewares\ST\STM32_Cryptographic\Fw_Crypto\STM32H7A3\Lib

Could you please advise:

  1. Is there an official version of the STM32 Cryptographic static library compatible with IAR v9.x for STM32H7B3?
  2. If not, what is the recommended procedure to rebuild or obtain a compatible library for use with IAR v9 ?

Thank you for your support.

 

@STackPointer64 @Jocelyn RICARD @Fred 

1 REPLY 1
Jocelyn RICARD
ST Employee

Hello @SSaiPrasad,

There is a SBSFU V2.8.0 available but unfortunately still tested with IAR v9.20.1 according to the release notes.

The cryptolib used in X-CUBE-SBSFU is the old Version 3. As X-CUBE-CRYPTOLIB is now using Version 4, I doubt there will be any update in this regard.

One possible solution I could see is to try to integrated Crypto library V4. There is a compatibility layer with V3, so may be not too hard. But before that you will need to check it links correctly with this IAR version.

Best regards

Jocelyn