STM32L051R8 Program Issue with Cube Programmer
I am working with the L051 chip and having issues with the CubeProgrammer Download..
History: we work with many of the STM32 chips.....and have for years, so well versed in this ...
so this is an issue that we have not seen using any of the Tools...
I wrote a test program, very simple toggle led....
Set up the .IOC with Freertos
Program compiles just fine... as expected.....
But this program is not the issue, using the Cube programmer is where the error comes in..
Hardware setup....
Custom board with STM32L051 chip.
Using an FTDI USB - TTL cable for programming PORTA
100K pullups on the TX and RX as per AN2606
BOOT1 pin pulled low, via 10K resistor for correct Boot config.
Issues:
We are able to connect to the chip in CubePrgmr just fine every time...
In the TAB Erasing and Programming:
we load the .ELF file in to the prgmr and try to 'START PROGRAMMING'
the download starts then: See below:::
10:41:02 : Memory Programming ...
10:41:02 : Opening and parsing file: STM32L051R8T_Test.elf
10:41:02 : File : STM32L051R8T_Test.elf
10:41:02 : Size : 13.92 KB
10:41:02 : Address : 0x08000000
10:41:02 : Erasing memory corresponding to segment 0:
10:41:02 : Erasing internal memory sectors [0 111]
10:41:02 : Download in Progress:
10:41:03 : Response received from device: NACK
10:41:03 : Error: Write address not acknowledged: 0x8000900
10:41:03 : Error: failed to download Segment[0]
10:41:03 : Error: failed to download the File
Note: at different times the Address: 0x................ will vary....
I'd decreased the BAUD connection rate to 19200 but still get these errors...
There are times that if manages to program ok , but they are few... maybe 1 out of 20 times...
NOTE:
this is the same board we had used with an STM32L162 chip and had no issues whatsoever...
It was just when we switched to the L051 that the connectivity seems to have gone bad....
I've tried different USB ports, even different computers with the same issue...
So after a week of working this issues....I've have no real solution or even an idea to start looking for one.
As a last resort have even back peddled to an earllier version of Cube Programmer, same issue...
so from an investigative POV, it is looking like the L051 chip has some difference I am over looking.
BUT.....I would love to hear from the expert folks to see what you have to offer..
Thanks in advance
Chuck
