After reading the reference manual for the STM32L010F4P6 it seems all I need to talk with the STM32L010F4P6 over SWD is
- 3.3V on VDD (PIN 16)
- GND on VSS (PIN 15)
- GND on BOOT0 (PIN 1 - PB9)
- Connect SWCLK (PIN 20 - PA14) and SWDIO (PIN 19 - PA13) lines to debugger
I have this circuit:
The cap between VDD and Gnd is a 0.1uF film capacitor.
I tried flashing the controller but was getting
Error: init mode failed (unable to connect to the target) in procedure 'program' ** OpenOCD init failed ** shutdown command invoked
So then I tried
st-link --probe and got
Found 1 stlink programmers version: V2J29S7 serial: 56FF70067267495317140967 flash: 0 (pagesize: 0) sram: 0 chipid: 0x0000 descr: unknown device
It seems like the st-link is unable to connect to the chip. Is there something I'm missing in the documentation? I've been able to flash a stm32f103c8t6 with the same probe.