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

I'd like to add a peripheral device to the example code.

Hello, I am
I'm a Beginner at developing NRF 51822.

My Development Environment

sdk : 12.3

IDE: KEIL v5

SoftDevices : s130

I am developing using the example of 'ble_app_uart' of 'sdk 12.3'.

I want to add a peripheral device to the example code, but there was an error, so I'm asking you a question.

I will attach the problem as shown in the picture.

First, we added a timer example to the 'ble_app_uart' example.
Of course, we also modified the header and the included path options for c/c++.

  

However, during the build process, you will still receive an error stating that the symbol could not be found.

Please let me know if I added anything wrong.

Thank you for reading it.

Parents
  • You also need to enable the timer in the sdk_config.h file.

    It should look like this:

    #ifndef APP_TIMER_ENABLED
    #define APP_TIMER_ENABLED 0
    #endif

    Just set that to '1' instead of '0'

    Also, TIMER0 and TIMER1 should be set to '1'. Or more can be enabled if you need them for whatever reason.

    #ifndef TIMER0_ENABLED
    #define TIMER0_ENABLED 0
    #endif
    
    // <q> TIMER1_ENABLED  - Enable TIMER1 instance
     
    
    #ifndef TIMER1_ENABLED
    #define TIMER1_ENABLED 0
    #endif

Reply
  • You also need to enable the timer in the sdk_config.h file.

    It should look like this:

    #ifndef APP_TIMER_ENABLED
    #define APP_TIMER_ENABLED 0
    #endif

    Just set that to '1' instead of '0'

    Also, TIMER0 and TIMER1 should be set to '1'. Or more can be enabled if you need them for whatever reason.

    #ifndef TIMER0_ENABLED
    #define TIMER0_ENABLED 0
    #endif
    
    // <q> TIMER1_ENABLED  - Enable TIMER1 instance
     
    
    #ifndef TIMER1_ENABLED
    #define TIMER1_ENABLED 0
    #endif

Children
Related