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
  • Type 'P20' into the search box and read some of the previous threads about the difficulties of using P20 over P19. P20 is really designed for arduino shield debugging, P19 is the real debug out. There are a couple of suggestions in those threads which include shorting a couple of pins together. The best suggestion however is to use P19, the header which is actually designed for debug out.

Reply
  • Type 'P20' into the search box and read some of the previous threads about the difficulties of using P20 over P19. P20 is really designed for arduino shield debugging, P19 is the real debug out. There are a couple of suggestions in those threads which include shorting a couple of pins together. The best suggestion however is to use P19, the header which is actually designed for debug out.

Children
No Data
Related