Wednesday, May 23rd 2018, 10:37pm UTC+2

You are not logged in.

  • Login
  • Register

guan

Beginner

Date of registration: Jan 30th 2013

Posts: 2

41

Wednesday, January 30th 2013, 4:14pm

Many Mac OS X problems

I've had a lot of problems along these lines, and also a lot of great solutions.

I basically went through 3 phases with my nRF51822 Evaluation Kit board (PCA10001).

In phase 1, everything worked will, both with and without softdevice. I could use JLinkExe to download programs and I could use JLinkGDBServer with gdb to debug. This was with version 4.62, previous versions didn't work so well.

In phase 2, I could use JLinkExe to download programs using the si 1 and selemu commands first (without them it didn't work). However, the GDB server didn't work. The output was:

Source code

1
2
3
4
5
6
7
Connecting to J-Link...
Connecting to J-Link failed. GDBServer will be closed...
Restoring target state and closing J-Link connection...
Connecting to J-Link...
Connecting to J-Link failed. GDBServer will be closed...
Restoring target state and closing J-Link connection...
Shutting down...


In phase 3, JLinkExe doesn't work even with si 1 and selemu. This is the output:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
J-Link>selemu
J-Link[0]: Connection: USB, Serial number: 0, USB address: -257
Select emulator index: 0
DLL version V4.62, compiled Jan 25 2013 15:29:24
Firmware: J-Link OB-SAM3U128 V1 compiled Jan  7 2013 18:12:29
Hardware: V1.00
S/N: 480202242 
VTarget = 3.300V
Info: Could not measure total IR len. TDO is constant high.
Info: Could not measure total IR len. TDO is constant high.
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x0BB11477
Info: Found SWD-DP with ID 0x0BB11477
No device found on SWD.
Did not find any core.
Failed to identify target. Trying again with slow (4 kHz) speed.
Info: Could not measure total IR len. TDO is constant high.
Info: Could not measure total IR len. TDO is constant high.
No devices found on JTAG chain. Trying to find device on SWD.
Info: Found SWD-DP with ID 0x0BB11477
Info: Found SWD-DP with ID 0x0BB11477
No device found on SWD.
Did not find any core.


So it can connect to the debugger, but not contact the device.

Throughout these phases, I've always been able to use the "Recover" command in the latest version of nRFgo Studio.

My questions are:

1. Does anyone know a sequence of commands that does the same thing as Recover in nRFgo Studio?

2. Do you have any suggestions for how to get JLinkGDBServer up and running? I was thinking that I could put some commands in a script to be launched with JLinkGDBServer, but I'm not sure what the non-interactive version of selemu is.