cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer incorrectly erases on dual bank 1MB STM32F7

MKenn.1
Associate III

I'm having a problem with STM32CubeProgrammer and a 1MB STM32F767ZG configured in dual bank mode. On the left, I tried to flash a 520k bin to the device, over the top of previous firmware.

Expected behavior: erase sectors 0-7, 12, then write 520K bytes starting at address 0x08000000.

Actual behavior: erases sectors 0-8, then write 520K bytes starting at address 0x08000000.

Since it tries to erase the non-existent sector 8, sector 12 (the actual sector at 0x08080000) doesn't get erased and as such the contents of sector 12 get corrupted by the multiple writes without an erase.

See screenshot below: stm32cubeprogrammer tries to erase sector 8 at 0x0808 0000, but in dual bank mode, there is no sector 8!

0693W00000GZO2oQAH.png

2 REPLIES 2
arro239
Senior

Looks like both versions 2.8.0 and 2.9.0 are both affected

MKenn.1
Associate III

It also incorrectly identifies my MCU:

0693W00000GZOplQAH.png 

This is in reality an STM32F767ZGT, but it identifies it as 2MB.