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

problems of migrating SDK5 nrf51422 to nrf5182

Hi.

I struggled to migrate ble blinky example of nrf5 (nrf51422) to nrf51822 using KEIL (SDK5 v12.3) but failed

Here are what I tried.

Firstly, I changed target device from nrf51422 to nrf51822 as below

And I changed parameters of  ROM and RAM as below.

And then download the S130 and application code as usual but it seems the code doesn't work.

Please tell me what I missed.

Junho.

Parents Reply
  • MnP_Junho said:
    It seems using internal RC oscillator will work whether the board has the LF crustal or not.

    Yes, that is correct.

    MnP_Junho said:
    How can we use the RC oscillator?

    If you have not modified the example, the clock config will be collected from the board header file. It looks like you have a custom board file (BOARD_PCA10028_beacon). Open the board header file, look for the definition of NRF_CLOCK_LFCLKSRC, and replace it with this:

    #define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,              \
                                     .rc_ctiv       = 16,                               \
                                     .rc_temp_ctiv  = 2,                                \
                                     .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}

Children
Related