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

Should we need button_led_init function

Hi everybody

I am making a custom board which using ANCS (nrf51 sdk 9.0.0, softdevice 110 ver8.0.0). I saw on the original code have button_led_init() function to initiate LED and button. However, in my custom board, I do not using any button and LED. Can I remove this function for my application ?

By the way, How should I configure the memory in Keil in order to work with nrf51822 CEAA package both for ANCS and bootloader?

Thank you very much !!!

Parents Reply
  • when I remove that function, the device manage always delete the bond information when I restart the application as in this:

    image description

    It causes my application require pair every time.

    Here, I print the log when I put this function again.

    image description

    It does not have "Successfully requested clear of persistent data" It does not make me sense. Could you please help me to solve it. Thank you.

Children
No Data
Related