From: Myles W. <my...@gm...> - 2014-11-21 21:10:07
|
On Fri, Nov 21, 2014 at 12:41 PM, Myles Watson <my...@gm...> wrote: > First of all, thanks for the great tool! > > I'm using OpenOCD 0.9.0 with an stlink to program a nRF51822 using hla_swd. > I forgot to include the command line that I'm using: sudo ../src/openocd -f interface/stlink-v2.cfg -c "transport select hla_swd" -f target/nrf51.cfg -c "program image.bin reset" > I'd like to disable the debugging mode as part of programming the chip. > In order to do that, the RESET register in the POWER module needs to be > written, and then swdioclk and swdio need to be held low for a minimum of > 100us. > > Since the nRF51822 has a shared swdio/nreset line, the reset doesn't work > if the chip is not returned to normal mode. > > Where should I add a "hard-reset" function which is specific to the > nRF51822 and SWD? > > Thanks, > Myles > |