STM32 MCUs Security

Ask questions and find answers on STM32 security frameworks and tools, including cryptographic libraries, TrustZone, and the Secure Manager.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

HAL_CRYPEx_AES() maximum number of output bytes?

I am using an STM32L4S9ZIJX part and attempting to encrypt a 256KB buffer (actually 262,144 - 16 = 262,128 bytes) using AES256 CTR mode in polling mode.I created a wrapper function to perform the encryption: int encrypt_CTR_mode(uint8_t* key, uint8_t...

dsorber by Associate
  • 452 Views
  • 2 replies
  • 0 kudos

X-CUBE-CRYPTOLIB cmox_eddsa_verify memory fail

Hi everyone!In our project for stm32f446, we are trying to use X-CUBE-CRYPTOLIB to verify the firmware signature on the device using ED25519. Unfortunately, when trying to call the cmox_eddsa_verify method, we get the CMOX_ECC_ERR_MEMORY_FAIL error. ...

AKole.3 by Associate
  • 1350 Views
  • 6 replies
  • 1 kudos

SBSFU not detecting Active Slot Image

I'm working on integrating the latest SBSFU (v2.6.2) onto an STM32L4A6 platform. I've reviewed both the user manual and application note for the SBSFU, as well as the examples provided.In my use case:I have an external attached MMC flashI'm not plann...

jmcoreymv by Associate III
  • 2209 Views
  • 15 replies
  • 0 kudos

how to configure SBSFU in stm32l496

Hi, I am using stm32l496 for sbsfu. I followed the tutorial and it ran the example code but they gave me their scripts for that project. how do we make our own script for my project which converts project binary into .sbsf file? and how to configure ...

Problem with reloading option bytes - STM32L452RE

I want to modify option bytes to set up readout protection. I am programming this device with my own programming tool (UART+BOOT0+RESET pin). Programming works fine using bootloader protocol. Setting readout protection doesn't. After setting it up it...

WPuch by Associate II
  • 3077 Views
  • 9 replies
  • 0 kudos

Secure firmware update at secure zone with SBSFU

Hello,I am programming with the STM32U575ZIT6 microcontroller, and I am trying to update the firmware in the secure zone. However, when I try to update the firmware in the secure zone, the function ret_arm=LOADER_FLASH_DEV_NAME.EraseSector(sector_add...

Hard Fault when reading flash

I am working to generate the CRC for the flash memory, During this I am facing hard fault when the CRC module tries to read from certain flash locations, to debug it I made a small loop which assigns the value of each 4 byte. I found that reading at ...

sivaram by Associate III
  • 6862 Views
  • 25 replies
  • 0 kudos

Resolved! Interrupt Issues for UWB in SBSFU

Hello,I am using the SBSFU application on the U575 microcontroller and have created my own program, which is stored in the secure area and accessed via NSC. I am trying to send data via ultrawideband, but the interrupt is not triggered. I have tested...