2022-08-17 10:47 PM
I've been fighting this really frustrating issue and have tried everything that can humanly be found on the internet (including STM32CubeIDE downgrades and upgrades on multiple machines).
Simply put, whenever the program size is 64 or more sectors, flashing it results in the following error message and incorrect behavior:
Erasing internal memory sectors [0 64]
Download in Progress:
Error: failed to download Segment[0]
Error: failed to download the File
Erasing internal memory sectors [0 64]
Download in Progress:
Error: failed to download Segment[0]
Error: failed to download the File
I found it interesting that dat sheet for this device family (https://www.st.com/resource/en/reference_manual/rm0444-stm32g0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf) indicates that the Flash bank is only 64 pages of 2KB memory (128K) with the 256K variant being a dual-bank device. Can someone help me out here because 128K is absolutely not enough on a 256K micro.
2022-09-02 07:06 AM
Hi @SSpen ,
Sorry to come back late to this question.
It is interesting to understand the current status of your issue.
If it is still being faced, could you please try to use STM32CubeProgrammer on standalone:
-Amel
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.