cancel
Showing results for 
Search instead for 
Did you mean: 

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

EG1
Associate

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

4 REPLIES 4
STTwo-32
ST Employee

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

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.

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

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

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.

Aziz BRIGUI
ST Employee

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.