On Sun, Oct 15, 2023 at 11:24:01AM +0200, kristof.mul...@telenet.be wrote:
> Hi Paul and Liviu,
> > What happens if you use stm32f0x.cfg config?
> Then I get the following problem:
>     ** Programming Started **
>     Error: Cannot identify target as a stm32x

OK, so the flash driver isn't compatible. One would need to check the
datasheet and see what really differs there.

> > I have experience with APM32F103CBT6, it works fine with the existing
> > script, just needs an ID for a newer Cortex-M variant to be set, can
> > be done without modifying the stm32f1x.cfg at all, just by setting the
> > variable beforehand.
>
> Great! But where can I find the ID for the MCU? How do I change it in
> the config file?

When ID is mismatched OpenOCD reports it in message. You do not need
to change it in the config file though, just doing
-c "set CPUTAPID 0x2ba01477" -f target/stm32f1x.cfg

is enough to get APM32F103 working with OpenOCD.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

Reply via email to