Associate
January 17, 2020
Question
STM32CubeProgrammer fails to program STM32L0s MCU when the size of the file to program is not a multiple of 8.
- January 17, 2020
- 6 replies
- 2023 views
Hi,
I am experiencing a problem with STM32CubeProgrammer: it fails to program STM32L0s MCU when the size of the file to program is not a multiple of 8.
In the attached zip file, there are 2 .bin files containing 16 bytes of zeros (working.bin), and 20 bytes of zeros (failing.bin), respectively.
The first one can be programmed to the FLASH of an STM32L0 with STM32CubeProgrammer v2.3.0 without problem, but the second file fails with the following error :
10:32:42 : Memory Programming ...
10:32:42 : Opening and parsing file: failing.bin
10:32:42 : File : failing.bin
10:32:42 : Size : 20 Bytes
10:32:42 : Address : 0x08000000
10:32:42 : Erasing memory corresponding to segment 0:
10:32:43 : Erasing internal memory sector 0
10:32:43 : Download in Progress:
10:32:44 : Error: failed to download Segment[0]
10:32:44 : Error: failed to download the File
10:32:44 : Time elapsed during download operation: 00:00:01.648Other possibly relevant information :
- The problem occurs when STM32CubeProgrammer runs under Linux or Windows
- The problem is the same when programming .elf or .hex files (I initially encountered the problem with a .hex file compiled/generated from a ST32CubeIDE project).
- The problem does NOT occur with programming an STM32L4 MCU (I have not tried other STM32 families)
- The problem occurs when using the GUI or the CLI of STM32CubeProgrammer
Thank you in advance for your help.
Olivier
