From: Jacob R. <jak...@gm...> - 2014-09-28 09:26:12
|
PaulFertser worked with me in irc today. We found that for the jlink edu and rfduino the following command worked just fine using HEAD ( c0b8e605f7d8cbefcd7a9e47261aa2e06dd2b4e1): openocd -f interface/jlink.cfg -c "transport select swd" -f target/nrf51.cfg However on my jlink 'lite' on my nrf51822 dongle from the development kit, openocd couldnt find the jlink. I've given usb dumps to him to investigate further and Paul can probably report this better than me, but theres at least 2 problems. First the endpoints weren't being set dynamically but with this (barely tested)patch openocd finds the jlink successfully. http://paste.debian.net/123445/ However it still can't communicate with the nrf51 for some reason: https://www.irccloud.com/pastebin/pcZdkcA2 On Sat, Sep 27, 2014 at 7:45 PM, Jacob Rosenthal <jak...@gm...> wrote: > Thanks for responding! > > On Sat, Sep 27, 2014 at 6:11 PM, Angus Gratton <gu...@pr...> wrote: > >> n 1 (VTRef) -> VCC >> Pin 7 (SWDIO) -> SWDIO/nRESET >> Pin 9 (SWCLK) -> SWCLK >> Pin 4 (GND) -> GND >> > > My other nrf device is the rfduino with a jlink edu. I am able to upload > with the nrfgostudio so Im pretty sure my connections are fine and it was > powered. > > What I have in front of me right now is the nrf51 'pca10000' dongle which > has a jlink lite onboard. I've successfully programmed from JLinkEXE > command line (Mac) so again Im pretty sure there are no hardware or driver > issues. > > I think its just configuration and I just don't know much about openocd or > debugging yet. Something about reset configuration? I have the schematic > for it, which tec > > jacob:~ jacobrosenthal$ openocd -f interface/jlink.cfg -c "transport > select swd" -f target/nrf51.cfg > Open On-Chip Debugger 0.9.0-dev-snapshot (2014-09-27-18:24) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.sourceforge.net/doc/doxygen/bugs.html > Info : JLink SWD mode enabled > swd > cortex_m reset_config sysresetreq > adapter speed: 1000 kHz > Error: J-Link command 0x01 failed (0) > Error: J-Link command EMU_CMD_VERSION failed (0) > Error: Selected transport mode is not supported. > in procedure 'init' > jacob:~ jacobrosenthal$ > > |