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

Programming nRF51422 externally

Hi,

I have designed and made a PCB with the nRF51422 chip on it. I am programming the chip externally using the P20 header pins on the nRF51-DK. I am not sure whether the chip on the PCB is being detected by the DK as the program is being loaded onto the DK chip. Is the chip on the DK also programmed normally when trying to program a chip externally or is the DK chip completely ignored once an external chip is detected? Also, is there a way to check whether the external chip is even being detected (in Keil uVision)?

Regards, Ehsan.

Parents
  • You should be able to test flashing with some simple FW which e.g. starts to blink with LEDs on DK board so if nRF5x chip on the board is erased and then it starts to blink (don't forget to reset the board to be sure it's not halted in debug mode or something similar) then you know you are not targeting external chip through P19 or P20. There are posts which can help with good set-up, see here and here. I personally use the trick with short between PIN2 (VDD) and PIN3 (VTG) on P20, that will make sure that SEGGER J-Link OB will always try to program external target on P20 and not internal chip. You can verify easily that even if you unplug other wires from P20 if you short VDD and VTG nrfjprog (or other flashing program you use) reports error "target not attached" (or something similar;).

  • No, you need to connect another GND PIN from nRF5 DK board to Ground on the target. See this and this. Also even if all ports and pins are connected correctly the programmer is picky about quality of wiring, be sure to use properly insulated reasonably short and if possible straight without loops wires.

Reply Children
No Data
Related