This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debugging external nRF51422

Hi,

I am programming and debugging an external customised board by following the DK manual and the below link: electronut.in/.../

I use the interface P20 instead of P19, and wire the four signals (VTG, GND_Detect, SWDIO and SWDCLK) to the external board. I think the programming should be fine because I can see the programming processing bar. However, I cannot debug this external board. As mentioned in the manual of DK, the DK should bypass the internal chip and debug the external one if the external one is powered on, but from what I could see, the DK is still debugging the internal chip.

Could you please give me some suggestions? Thanks

[Update]

I checked again about this problem, and I do the following efforts:

  1. I first upload a script into the chip, so the chip will print characters on the serial port.

  2. I connect the VDD and SH_VTG of P20, GND and SH_GND_DETECT of P20 together (as the photo show below, without connecting the external board). image description

  3. Under this configuration, I suppose the DK should bypass the internal chip. However, it does not. After powering on the DK, the serial port is still doing the printing.

  4. Under this configuration, I tried to do the programming, but it is not successful - meaning the programming is directed to the external chip.

Would you please give me some suggestions?

Parents
  • Hi, I did change to P19 for programming, but the same problem still exists, the code is uploaded to the external chip but the debugging is directed to the internal one. Here is how I judge it (if the code is uploaded correctly, it will print on the serial port): 1. Connecting all the cables from P19 to the external board; 2. Powering on the external board and programming it from the DK; 3. Monitoring from the serial port shows nothing; 4. Disconnect only SWCLK signal from the external board, programming failed; 5. Disconnecting the whole external board, and programming the DK; 6. The serial port is printing normally; 7. Reconnecting the external board to P19, the serial port still works normally; So from above steps, I can tell the programming function works fine, but the debugging does not. I measured the voltage on Pin1 of P19, it is 3.3V, so I suspect the DK should bypass the internal chip. Would you please guide me on this? Many thanks.

Reply
  • Hi, I did change to P19 for programming, but the same problem still exists, the code is uploaded to the external chip but the debugging is directed to the internal one. Here is how I judge it (if the code is uploaded correctly, it will print on the serial port): 1. Connecting all the cables from P19 to the external board; 2. Powering on the external board and programming it from the DK; 3. Monitoring from the serial port shows nothing; 4. Disconnect only SWCLK signal from the external board, programming failed; 5. Disconnecting the whole external board, and programming the DK; 6. The serial port is printing normally; 7. Reconnecting the external board to P19, the serial port still works normally; So from above steps, I can tell the programming function works fine, but the debugging does not. I measured the voltage on Pin1 of P19, it is 3.3V, so I suspect the DK should bypass the internal chip. Would you please guide me on this? Many thanks.

Children
No Data
Related