From: Maximin C. <max...@gm...> - 2018-11-16 17:20:16
|
Hi, I followed the Adafruit guide[1] () to flash an STM32F410 (on a Nucleo Board, but I don't want to use the STLink part) from a Raspberry Pi Zero and connected directly the SWDIO, SWDCLK, GND and RST pins on my STM32F410 (using the F410 datasheet, SWDIO is PA13 and SWCLK is PA14) Using my config file: ====== source [find interface/raspberrypi-native.cfg] transport select swd set CHIPNAME stm32f4x source [find target/stm32f4x.cfg] #reset_config srst_only reset_config srst_nogate adapter_nsrst_delay 100 adapter_nsrst_assert_width 100 init targets reset halt bcm2835gpio_swd_nums 25 24 bcm2835gpio_trst_num 7 bcm2835gpio_srst_num 18 ====== and then call: sudo openocd -f myconfigfile.cfg OR calling directly the following command: sudo openocd -f interface/raspberrypi-native.cfg -c "transport select swd" -f target/stm32f4x.cfg leads me to the exact same output: ====== Open On-Chip Debugger 0.10.0+dev-00577-gea410488 (2018-11-16-14:47) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html BCM2835 GPIO config: tck = 11, tms = 25, tdi = 10, tdo = 9 BCM2835 GPIO nums: swclk = 11, swdio = 25 swd adapter speed: 2000 kHz adapter_nsrst_delay: 100 none separate cortex_m reset_config sysresetreq Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : BCM2835 GPIO JTAG/SWD bitbang driver Info : JTAG and SWD modes enabled Info : clock speed 2030 kHz Info : SWD DPIDR 0x01a9da40 in procedure 'init' in procedure 'ocd_bouncer' ====== instead of the target listing I'm expecting. (I don't even have the feared 'unknown' state listing. Is this even an error ? (I don't see the word 'error' anywhere... !) Do I missing something ? (Probably !) Any help would be gladly appreciated ! Best regards, [1]: https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi -- M.C |