April 26, 2024, 07:13:29 PM

arm-usb-ocd-h swd stm32 reset problem

Started by jerry okeefe, October 14, 2014, 07:05:07 PM

Previous topic - Next topic

jerry okeefe

Hi
  I two setups. One of a arm-usb-ocd-h with a stm32-H103 and open-OCD. This works great with it.

  But the second with the same software setup, arm-usb-ocd-h, SWD and a OLIMEXINO-STM32 board only works if I press the board's reset during the open-ocd setup. So a couple of questions. 

1. What is the correct value for reset_config for the OLIMEXINO-STM32 board?

2. I thought is was working fine last week. I is it possible I blew out the reset driver pin of arm-usb-ocd-h? ie put the swd connector in back wards.

3. Is there a recommend open-ocd config for the OLIMEXINO-STM32 board?
 
Thanks and regards
-Jerry

jerryo@jerryo-Lenovo-IdeaPad-S400:~/stm32/stm32-example/projects/stm_h103$ sudo openocd -f my2_openocd.cfg
[sudo] password for jerryo:
Open On-Chip Debugger 0.9.0-dev-00161-g9c47dc9 (2014-10-04-10:21)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.sourceforge.net/doc/doxygen/bugs.html
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
Error: session's transport is not selected.
Info : session transport was not selected, defaulting to JTAG
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m reset_config sysresetreq
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: stm32f1x.cpu: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0 in JTAG-DP transaction