Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Couldn't flash my external board via nrf52 DK (nrfjprog)

I have my external board with nrf52832, and I want to flash it via nrf52 DK.

However, I couldn't flash it when I used `nrfjprog` command such like;

nrfjprog --program /path/to/nrf52832_xxaa.hex -f nrf52 --sectorerase

  • Settings
    • Connect nrf52 DK to PC
    • Connect my external board to nrf52 DK through P19(Debug Out)
    • Flash program by nrfjprog command

According to the nrf52 DK document, I think above command can flash an external board when it is powered.

When the external board is powered, the interface MCU will detect the supply voltage of the board and
program/debug the target chip on the external board instead of the onboard nRF52832.

Why couldn't I flash my external board? I'm beginner for embedded system. Please help me.

Parents Reply Children
  • Thank you for your reply. and sorry for my late reply.

    First, I've solved the above problem by myself !
    The reason of it is that I mistook the connection nrf52 DK and my external board with 10 pin cable.
    I didn't connect the CH1 of Debug Out(P19) of nrf52 DK to the CH1 of my external board...

    By the way, answer your questions;

    Could you provide the log with messages which you get after running nrfjrog command?

    Here is the log;

    Parsing hex file.
    Erasing page at address 0x1F000.
    ...
    Erasing page at address 0x41000.
    Applying system reset.
    Checking that the area to write is not protected.
    Programming device.
    nrfjprog --reset -f nrf52
    Applying system reset.
    Run.

    How is your external board connected to the development kit?

    I used 10 pin cable to attach to nrf52 DK's Debug Out.

    How do you provide power to the external board?

    I provide the power by 3V battery using B2B-PH-K-S(LF)(SN)

  • HI,

    Thank you for the update. It is great to hear that you managed to solve the problem by yourself.

    Best regards,

    Dejan

Related