Failed to flash code into STM32L0

Failed to flash code into STM32L0.

I use VM-Ubuntu 20.04.

I use ST-Link V2 for flashing.

ST-Link not detected on VM-Ubuntu20.04. Only detect CP2102 as /dev/ttyUSB0

I run “dmesg -w”. to see the information of USBs

Seems like a udev setup issue. Did you update /etc/udev/rules.d/ with 99-openocd.rules yet?

Quick check would be sudo make BOARD-stm32l0538-disco flash-only… If that works than it is permissions.