> Great! But where can I find the ID for the MCU? How do I change it in the 
> config file?

What happens if you try autoprobing?
See section 10.7 - Autoprobing of the OpenOCD User's Guide:

https://openocd.org/pages/documentation.html

Once you know the IDCODE for the APM32F0 you can try making a copy of the 
stm32f1x.cfg file and changing the IDCODE here:

https://github.com/openocd-org/openocd/blob/c7d1f0ddabb301e00738686671b939bb92a06ed9/tcl/target/stm32f1x.cfg#L35

Alternatively, temporarily suppress IDCODE checking by changing this and see 
what happens:

https://github.com/openocd-org/openocd/blob/c7d1f0ddabb301e00738686671b939bb92a06ed9/tcl/target/stm32f1x.cfg#L48C76-L48C86

to

... -expected-id 0


Reply via email to