(linux) openOCD, trying to flash a stm32F072 with a rasberryPi
Im following this adafruit tutorial (gpio bitbanging swd).
As they are flashing an AVR chip and i want to flash an stm32f072 chip im using a different .cfg file:
source [find interface/raspberrypi2-native.cfg]
transport select swd
set WORKAREASIZE 0x2000
source [find target/stm32f0x.cfg]
reset_config srst_only srst_nogate
#transport select swd
adapter srst delay 100
adapter srst pulse_width 100
init
targets
reset halt
program myfirmware.bin verify reset
shutdownim using a RaspberryPi 3 model B v1.2.
my stm32 chip is externaly powered.
Wiring is made as follows:
Once i do "sudo openocd" i get randomly 3 different errors in reading IDR:
- IDR 0x0000000
- IDR 0xdeadbeef,
- cannot read IDR

