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

Resolved! STM32H7B0VBT6 External Loader

I am using the STM32H7B0VBT6 microcontroller, which has limited internal flash memory. To implement Secure Boot and Secure Firmware Update (SBSFU), I have connected an external W25Q256JVIQ flash memory to the MCU via Quad SPI.   Is it possible to sto...

STM32L5 J-Flash RDP Level 2 using

Hello,I am trying to use below file to enable RDP 2 on an STM32 L552 controller.wiki.segger.com/images/7/78/STM32L5_Lock.jflash This has exit step "ExitStep21_Action" that set the DRP Level 1, However, I need to set RDP Level 2 by setting the value a...

Unprotect Flash to write a new Bootloader

I'm using a STM32F103RCT6Flash contains my own boot loader in pages 0 thru 10 and main application in 11 thru 61.When the device is flashed in manufacturing, protection is set to prevent reading and writing via the jtag port.I need to update the boot...

Joe.H by Senior
  • 906 Views
  • 1 replies
  • 0 kudos

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
  • 509 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
  • 1489 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
  • 2471 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
  • 7252 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...