How to connect with OpenOCD to B-L072Z-LRWAN
I'm trying to flash/debug a B-L072Z-LRWAN Discovery kit from Ubuntu 20.04 using openocd, but its failing to connect:
openocd -f interface/stlink-v2-1.cfg -f target/stm32l0.cfg
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
adapter speed: 300 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : clock speed 240 kHz
Info : STLINK v2 JTAG v37 API v2 SWIM v26 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.248915
Error: init mode failed (unable to connect to the target)
What configuration do I need to connect to the embedded stlink-v2-1?
