I am trying to flash STM32F1 from linux on the NanoPi Neo with openocd. The problem i have is i can't use any of the interfaces such as interface/raspberrypi2-native.cfg because i use NanoPi and not Raspberry Pi and I don't have the knowledge to write my own cfg.
The goal is to have STM32F1 (pins SWCLK and SWIO) connected to NanoPi GPIO pins but i don't know which pins and how to write a cfg that would enable me that.
I assume this is possible to do because there are plenty tutorials to do it with Raspberry pi eg. this one.
Thank you for your help.
I successfully flashed STM32F1 if i connected it over the ST-Link V2 connector with that cfg:
source [find interface/stlink.cfg]
transport select hla_swd
set CHIPNAME stm32f1x
source [find target/stm32f1x.cfg]
init
targets
reset halt
program blink_5000_stm32f1.bin 0x08000000 verify reset exit
stm32f1x lock 0
shutdown