cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-CRYPTOLIB cmox_eddsa_sign HardFault

lll
Associate II

stm32L476VC + CubeMX + IAR + X-CUBE-CRYPTOLIB STM32CubeExpansion_Crypto_V4.2.0

 

i copy the example from "NUCLEO-L476RG\Applications\ECC\EDDSA_SignVerify" to my project, cmox_eddsa_sign will cause HardFault:

The processor has escalated a configurable-priority exception to HardFault.

A precise data access error has occurred (CFSR.PRECISERR, BFAR)

At data address 0x58024c00.

An imprecise data access error has occurred (CFSR.IMPRECISERR, BFAR)

At data address 0x58024c00.

Exception occurred at PC = 0x800901e, LR = 0x20002cc4

 

call stack:

HardFault_Handler()
<Exception frame>
[cmox_md_generateTag + 0x51]

 

other api work well (cmox_rsa_pkcs1v15_verify, cmox_ecdsa_sign ...)

10 REPLIES 10

0x600 solved this problem,thanks a lot  @Jocelyn RICARD  @Tesla DeLorean @Dor_RH