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

Flashing Module w/ DK

Hello,

I am using WT51822-S4AT based on the nRF51822 SoC and I am trying to program it with the ble-beacon example from the SDK. Looking at the DK documentation, I need to use P20 pins to program it. It sounds like once I get it all hooked up right to the module, it should detect and program it automatically.

This is how I have it hooked up:

From DK to Module:

I can program the chip on the DK just fine. The beacon example works and shows up on my phone. When I connect the module into the P20 pins, and the flash it, everything is reported to be successful. But now I don't see any beacon showing up on my phone. I use eclipse and GCC. I have even tried with nRFGo Studio.

Do I have it hooked up wrong? What is wrong? Any help would be really appreciated since I've been at this for a month now.

  • I got it working now. FINALLY! Connection is set up correctly. The issue was these lines in main.c:

        nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

        // Initialize the SoftDevice handler module.
        SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL);

    Program would hang inside SOFTDEVICE_HANDER_INIT with debugger message ending with "Starting CPU...". The problem was clock_lf_cfg was using wrong values inside its struct.

    Doing a google search lead me to this guy's solution: https://rigado.zendesk.com/hc/en-us/articles/225674668-Example-files-will-not-run-on-my-hardware-but-do-on-the-Eval-board-

    I followed what he said, which involved changing my pca10028.h file and makefile, then it started working (I also decreased the length of RAM inside my linker script previously, which may or may not have helped).