Skip to main content
Associate
August 27, 2026
Question

STM32H563RGT6 + IAR EWARM 9.70.1: flash verification error writing to Bank 2 only

  • August 27, 2026
  • 2 replies
  • 72 views

When downloading firmware via IAR Embedded Workbench to an STM32H563RGT6, a flash verification error occurs **exclusively** when the write target is configured to program

**Bank 2** (`0x0808'0000 - 0x080F'FFFF`) via a custom `.board` and ‘.icf’ file override. The exact same

project, when writing to Bank 1 (`0x0800'0000`, default configuration without override),

**never** shows this error

 

If I load the firmware onto the blank flash, I have no problems. But if I make a change and reload the modified firmware, I have the following problem (IAR Debug Log):

Tue Aug 25, 2026 15:28:23: Hardware reset with strategy 0 was performed

Tue Aug 25, 2026 15:28:23: Verification error at 0x80a'3e3c: mem = 0x04, file = 0x06

Tue Aug 25, 2026 15:28:23: Download completed but verification failed.

 

The memory cell where the error occurs changes depending on where the firmware was modified.
The only way to continue debugging is to erase the flash and load the firmware.

 

2 replies

mƎALLEm
ST Technical Moderator
August 27, 2026

Hello ​@fra.mar_mate and welcome to the ST community,

1- Did you try to write to bank 2 with STM32CubeProgrammer? try to upload your program with CubeProgrammer.

2- Are you sure there is no Flash protection enabled on BANK2?

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate
August 27, 2026

Hi,

1 - I have the same problem also with STM32CubeProgrammer, I’ve created the .srec file from IAR and then I’ve tryed to download with CubeProgrammer but I’ve had the same error

2 - Yes I think that the protection is not enabled WRPSGn2 = 0xffffffff