STM32F070 + ST-LINK v2 SWD connection issues
I've made a custom design of a board with an STM32F070C6B6. When powering on the board and connecting a genuine ST-LINK v2 programmer, the connection fails halfway through the setup.
What i've tried (i'm on linux):
1) Via STM32CubeProgrammer:
Connect under reset & core reset: the connection fails with either "DEV_CONNECT_ERR" or "DEV_TARGET_CMD_ERR"
2) Via OpenOCD:
`openocd -f interface/stlink-v2.cfg -c "reset_config srst_only srst_nogate connect_assert_srst" -f target/stm32f0x.cfg --debug` : The connection succeeds, but the chip does not respond to "halt" or "flash banks mass_erase".
3) St-link tools: Tool can connect but says "unknown chip"
Any idea's what could cause this?
Attached are a picture of the board and the pcb layout.


