STM32CubeProgrammer is not able to successfully connect to or flash an STM32L471. This is a long-standing problem. I have no problem flashing other STM32L parts such as L051 and I have no problem flashing the L471 using an STLinkv2.
When you place the STM32L471 in DFU mode and attempt to connect via UART, the following is displayed in STM32CubeProgrammer:
14:39:27 : STM32CubeProgrammer API v2.5.0
14:39:28 : Serial Port COM9 is successfully opened.
14:39:28 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
14:39:29 : Timeout error occured while waiting for acknowledgement.
14:39:29 : Activating device: OK
14:39:29 : Chip ID: 0x415
14:39:29 : BootLoader protocol version: 3.1
It clearly sees the chip and communicates with it, but it never enters the connected state. A second attempt to connect indicates that the UART is busy (i.e. a thread is likely hung up in the STM32CubeProgrammer application) and I must exit the app and re-enter to access the COM port again. This is under Windows 10 x64. Everything works fine with other STM32L processors, but not with the L471. This issue has been open for several years and it would be awesome if ST would address it. Thanks!
