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

Programming 3rd-Party nRF51822

Hello All Slight smile

Since 3 days now, I am trying to program my third party beacon board PTR9048 with the PCA10028. I'm pretty sure, that I connected it correctly, because I can program the SoftDevice on it, and can the it in nRFgo Studio as well. I tried flashing the Beacon_app_example with nRFgo Studio and in Linux via command line.. Flash executes without an error, so I guess it flashes somehow and somewhere. 

I assume, that the problem is either about memory organisation, because the nRF51822 got less RAM or it is about the pin-out of the CUSTOM-BOARD. I read something about this, but in one post there was said, that is not mandatory customizing this. And in additon I read something about crystal speed, but I do not know how to adjust this.

So concluded: Flashing Softdevice and Application works without error, I cannot see device in a Bluetooth Scan, so the example is not working.

Thanks for your help.

  • Hi,

     

    If you take an untouched example, for instance ble_app_hrs, then do the following alterations:

    1. Change the IRAM1 size from 0x5800 to 0x1800

    2. Set the LFCLK to RC oscillator: SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION, NULL);

    3. compile and load the firmware.

     

    Do you still have issues?

    If yes; try to erase the whole chip (nrfjprog -e) and reprogram the S130 softdevice v1.0 (This is the version used in SDK v10), then load your program again.

    Still have issues? Enter debug mode in Keil, and see where it stops.

     

    Kind regards,

    Håkon

Related