Skip to main content
Associate
Oct 17, 2026 9:41 AM UTC
Question

STM32CubeProgrammer 2.23.0: write to EDATA on STM32H5F4 reports success but writes nothing

Hello,

On an STM32H5F4, programming the EDATA (high-cycle data) area with STM32_Programmer_CLI -d finishes with "File download complete" and exit code 0, but nothing is written to flash. NB: The same procedure works on an STM32H573.

Environment

  • STM32CubeProgrammer CLI v2.23.0 (Linux)
  • Target: STM32H5F4 (DEV_ID 0x47A), product state Open (0xED)
  • Probe: ST-LINK, SWD, mode=UR, reset=HWrst
  • Option bytes: EDATA1_EN=1, EDATA1_STRT=7, EDATA2_EN=1, EDATA2_STRT=7 (last 8 sectors of each bank used as EDATA)

Steps to reproduce

  1. Enable EDATA on both banks:

STM32_Programmer_CLI -c port=SWD mode=UR reset=HWrst -ob EDATA1_EN=1 EDATA1_STRT=7 EDATA2_EN=1 EDATA2_STRT=7
 

  1. Confirm the target area is mapped and blank (it reads back without error as all 0xFF):


STM32_Programmer_CLI -c port=SWD mode=UR reset=HWrst -r32 0x09028800 0x10
 

  1. Program 16 bytes:


printf '\xA5\x5A\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E' > test.bin
STM32_Programmer_CLI -c port=SWD mode=UR reset=HWrst -vb 3 -d test.bin 0x09028800

 

  1. Read the area back:


STM32_Programmer_CLI -c port=SWD mode=UR reset=HWrst -r32 0x09028800 0x10
 

Expected result
The data is programmed and reads back as 02015AA5 ...

Actual result
The CLI reports success, but the read-back is still FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF.

The verbose log shows an erase step that does nothing (0 ms, no FLASH register access). The data is then written directly to the EDATA address over the debug port, without the flash program sequence (no unlock, no PG bit set in FLASH_NSCR):


Erasing Segment <0> Address <0x09028800> Size <16>Bytes
Memory Erase via Debugger!
erase: 0000ms
...
Programming via FlashLoader!
Buffer program...
w ap 1 @0x09028800 : 0x00000010 bytes, Data 0x02015AA5...
Sector[0] downloaded successfully
File download complete

 

Additional notes

  • Our firmware programs and erases EDATA correctly on the same part through the HAL, so the hardware and option bytes are fine.
  • The EDATA region (0x0900xxxx) does not appear in STM32_Prog_DB_0x47A.xml, so it seems not to be treated as flash for this device family.
  • The silent success is the main concern: scripted production flows get exit code 0 and only catch the failure if they read the data back.

Questions

  1. Is EDATA programming via -d supported for STM32H5E4/H5E5/H5F4/H5F5 in v2.23.0? If not, is support planned?
  2. Is there a recommended workaround in the meantime?

Thank you.

4 replies

rich.g.williams
Senior
Oct 19, 2026 9:49 AM UTC

STM32H5E5 and more so STM32H5F5 are very fussy about security. I would check the provisioning/open/partially secure/secure settings - Option Bytes etc.

Bill's Notes
Kouthair
ST Technical Moderator
Oct 20, 2026 3:40 PM UTC

Hello ​@RichardI & welcome to the community!
Thank you for providing this thorough description and for reporting this issue.
I was able to reproduce this behavior; it appears that there is an issue with high cycle flash in bank 2 in H5F4/F5 (4M) and the development team are now aware of this issue and are working on a fix. (Internal ticket number: CDM0066745)
I will let you know if there is any update on this matter

PS: Internal Ticket number: CDM0066745 is an internal tracking number and is not accessible or usable by customers.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
RichardIAuthor
Associate
Oct 21, 2026 2:59 AM UTC

Many thanks for checking and confirming!

Would you be able to say whether the issue is in the silicon or in the tools?

Kouthair
ST Technical Moderator
Oct 21, 2026 8:43 AM UTC

Hello again ​@RichardI ,

The issue is only present in bank 2 of the high cycle flash, so bank 1 works as expected. I believe then that the issue is on STM32CubeProgrammer side.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.