I'm trying to program a stm32l031k6 MCU using the UART interface and cube programmer.
BOOT0 is high and the chip is reset. Using the following command:
./STM32_Programmer_CLI -c port=/dev/ttyUSB0 -vb 3 -ob displ
i'm getting the following result:
-------------------------------------------------------------------
STM32CubeProgrammer v2.1.0
-------------------------------------------------------------------
Serial Port /dev/ttyUSB0 is successfully opened.
Port configuration: parity = even, baudrate = 115200, data-bit = 8,
stop-bit = 1,0, flow-control = off
No Init bits value is : 0
Sending init command:
byte 0x7F sent successfully to target
Wait ends after 1 loop, dataready = 1, delay = 1
Received response from target: 0x00
byte 0x7F sent successfully to target
Received response from target: 0x00
Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...
My USB to serial interface shows data going both ways (so apparently the MCU somehow reacts to the connection attempt) but I can't get to activate the device. I tried many uart settings but no luck so far.
