Skip to main content
Associate
September 10, 2024
Question

Problem with V2.17.0 and STM32G491, Erasing Too Many Sectors

  • September 10, 2024
  • 2 replies
  • 1063 views

STM32CubeProgrammer version 2.17.0

Target STM32G491, device ID 0x0479, 512KB flash

When loading a large hex file (284kB), the programmer tries to erase 65293 sectors!  There's only 256 sectors in target, and the image only needs 141 sectors erased.

We also use the internal flash to storage some settings of the device. These settings are erased when using version 2.17. 

We tried this earlier with version 2.13 and no problem was detected. 

See attached log files of both version 2.13 and 2.17

 

Please provide help.

Thanks, 

EG

2 replies

STTwo-32
Technical Moderator
September 10, 2024

Hello @EG1 and welcome to the ST Community :smiling_face_with_smiling_eyes:.

Could you please add the .hex file that you have been using so we can test it.

Best Regards.

STTwo-32

EG1Author
Associate
September 10, 2024

Dear STTwo-32, 

I send you a private message with the hex file. I prefer not to place the hex file in a public location. 

Please let me know if you find something.

Thanks, 

EG

STTwo-32
Technical Moderator
September 12, 2024

Hello @EG1 

Sorry for my late replay. I've been able to reproduce that issue, and I've escalated internally for correction on the coming releases (under internal ticket number 190918). Thank you so much for escalating.

Best Regards.

STTwo-32

Aziz BRIGUI
Technical Moderator
December 2, 2024

Hello @EG1

Issue is fixed in the newest STM32CubeProgrammer release available under this link.

Aziz

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.