Skip to main content
kaili.wu
Associate
May 5, 2023
Question

STM32CubeProgrammer page erase error

  • May 5, 2023
  • 2 replies
  • 1671 views

When using STM32CubeProgrammer to program STM32F103VET6, it is found that using the "page erase" function will erase the first page error by mistake (erase pages 1, 3, 5). 

Upon inspection, it is found that the page erase data sent by STM32CubeProgrammer v2.13 is 0x03 0x01 0x03 0x05 0x00 0x04, while the data sent by STM32CubeProgrammer v2.7.0 is 0x02 0x01 0x03 0x05 0x05. 


_legacyfs_online_stmicro_images_0693W00000bjSPlQAM.png 

By consulting the AN3155 manual, it is found that the data sent by v2.7.0 is correct and the data stream sent by v2.13 is wrong.


_legacyfs_online_stmicro_images_0693W00000bjSPWQA2.png

This topic has been closed for replies.

2 replies

AVish.2
Visitor II
May 10, 2023

I also found this error.

Here are 2 examples for STM32F103 (STM32_Programmer_CLI.exe with "-vb 3")

Erasing Segment <0> Address <0x08002000> Size <16>Bytes

Erasing internal memory sector 8

data sent successfully to target: 0x000808   - STM32CubeProgrammer v2.7 (correct)

data sent successfully to target: 0x01080009 - STM32CubeProgrammer v2.13 (incorrect erasing of sector 0x00)

Erasing Segment <1> Address <0x08002200> Size <17280>Bytes

Erasing internal memory sectors [8 25]

1108090a0b0c0d0e0f1011121314151617181910   - STM32CubeProgrammer v2.7 (correct)

1208090a0b0c0d0e0f101112131415161718193320  - STM32CubeProgrammer v2.13 (uncorrect erasing of sector 0x33)

kaili.wu
kaili.wuAuthor
Associate
May 11, 2023

Yes, I think it's a bug.

AVish.2
Visitor II
May 10, 2023