cancel
Showing results for 
Search instead for 
Did you mean: 

Possible bug report: PEMPTY Flag Issue with STM32L431CCT6 in STM32CubeIDE v1.19

Martí
Associate

Summary

When flashing the STM32L431CCT6 (Device ID=0x435) using STM32CubeIDE v1.19, the MCU intermittently fails to boot from user flash (0x08000000), instead jumping to system memory (around 0xfff1...). This causes the Reset_Handler to crash or fail. Downgrading to STM32CubeIDE v1.18.1 resolves the issue, suggesting a flash loader bug in v1.19.

 

Non working:

CubeIDE version: 1.19.0
Cubeprogrammer version: 2.20.0

Working:

CubeIDE version: 1.18.1
Cubeprogrammer version: 2.19.0

Issue Description

  • Symptoms:

    • Flashing with STM32CubeIDE v1.19 results in intermittent failures, with the MCU breaking at addresses around 0xfff1... (system memory).

    • The Reset_Handler sometimes crashes, likely due to incorrect booting.

    • The issue is consistent on one laptop (v1.19) but absent on another (v1.18.1).

  • Cause: Per a previous ST Community post, the PEMPTY flag is maybe not being cleared properly by the flash loader, causing the STM32L431CCT6 to boot into system memory instead of user flash. Reference: [ST Community thread mentioning flash loader patches for STM32L4 series].


    Could you check this behaviour please? I had to downgrade to 1.18.1 to keep on with the project, but i would like to know if its a bug or it comes from my side.

     I'm open to provide any files needed, just ask. Thanks for your time!
0 REPLIES 0