NRF52805 ADC BLE APP UART

Hello, I'm working currently on an nrf52805 module and I'm creating a board with it, for now, I managed to do the ble app uart for this module and improve to code a little bit.

My goal, for now, is to create an ADC measurement of voltage, and I'm struggling with this. If someone could help me with this that would be great to give a code that would be good with it or an idea (i'm kinda new with BLE)

So I tried to use the example:    github.com/.../ble_app_uart__saadc_timer_driven__scan_mode

I'm trying to readapt the example to my board and thanks to the datasheet i saw that The nRF52805 only has 10 PPI channels (0-9) and The nRF52805 also only has 3 timers (TIMER0-TIMER2) but when I'm trying to taking off this in the code i get this error after : 

Thank you to everybody for their help. 

  • This is my program with errors that i dont understnad

  • Hello,

    My goal, for now, is to create an ADC measurement of voltage, and I'm struggling with this. If someone could help me with this that would be great to give a code that would be good with it or an idea (i'm kinda new with BLE)

    Welcome!
    Please do not hesitate to ask if anything should be unclear, we're happy to help you! :) 

    I managed to do the ble app uart for this module and improve to code a little bit.

    Could you elaborate on the changes you have already made to the referenced example code? 

    I'm trying to readapt the example to my board and thanks to the datasheet i saw that The nRF52805 only has 10 PPI channels (0-9) and The nRF52805 also only has 3 timers (TIMER0-TIMER2) but when I'm trying to taking off this in the code i get this error after :

    In your code you are trying to use TIMER instance 3, while no such instance exists in the nRF52805.
    You will need to update your sdk_config to match the new configuration (by making sure that the selected TIMER instance is enabled).

    For future reference it is always better if you share the errors you encounter as text instead of screenshots, by copy-paste'ing it into the reply using the Insert -> Code -> Text option here on DevZone.

    Best regards,
    Karl

  • Hello, i' m going to give you the code :) of my ble app uart : pca10040e_nrf52805 nouveau test avec fragmentation.zip

    I put some timer for the data of my module to be send automatically and now my goal is to measure the voltage consumption with adc with the same program that i have now. 

    And the problem is that i don't know if i'm in the right road with the example that i showed you before ( saadc timer driven and ble app uart example ) i would like to know what i have to dot with my code of now (ble app uart) to just add ADC and have the voltage consumption result thank you :) 

  • Building ‘ble_app_uart_pca10040_s132’ from solution ‘ble_app_uart_pca10040_s132’ in configuration ‘Release’
    2> Checking ‘thumb_crt0.s’
    2> 'Output/Release/Obj/ble_app_uart_pca10040_s132/thumb_crt0.o' is up to date
    3> Checking ‘nrf_log_backend_rtt.c’
    3> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_backend_rtt.o (19.04.2022 10:18:12).
    3> Compiling ‘nrf_log_backend_rtt.c’
    4> Checking ‘nrf_log_backend_serial.c’
    4> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_backend_serial.o (19.04.2022 10:18:12).
    4> Compiling ‘nrf_log_backend_serial.c’
    5> Checking ‘nrf_log_default_backends.c’
    5> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_default_backends.o (19.04.2022 10:18:12).
    5> Compiling ‘nrf_log_default_backends.c’
    6> Checking ‘nrf_log_frontend.c’
    6> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_frontend.o (19.04.2022 10:18:12).
    6> Compiling ‘nrf_log_frontend.c’
    7> Checking ‘nrf_log_str_formatter.c’
    7> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_str_formatter.o (19.04.2022 10:18:12).
    7> Compiling ‘nrf_log_str_formatter.c’
    8> Checking ‘app_button.c’
    8> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_button.o (19.04.2022 10:18:13).
    8> Compiling ‘app_button.c’
    1> Checking ‘app_error.c’
    1> 'Output/Release/Obj/ble_app_uart_pca10040_s132/app_error.o' is up to date
    2> Checking ‘app_error_handler_gcc.c’
    2> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_error_handler_gcc.o (19.04.2022 10:18:13).
    2> Compiling ‘app_error_handler_gcc.c’
    1> Checking ‘app_error_weak.c’
    1> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_error_weak.o (19.04.2022 10:18:14).
    1> Compiling ‘app_error_weak.c’
    1> Checking ‘app_fifo.c’
    1> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_fifo.o (19.04.2022 10:18:13).
    1> Compiling ‘app_fifo.c’
    2> Checking ‘app_scheduler.c’
    2> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_scheduler.o (19.04.2022 10:18:14).
    2> Compiling ‘app_scheduler.c’
    3> Checking ‘app_timer.c’
    3> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_timer.o (19.04.2022 10:18:14).
    3> Compiling ‘app_timer.c’
    4> Checking ‘app_uart_fifo.c’
    4> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_uart_fifo.o (19.04.2022 10:18:14).
    4> Compiling ‘app_uart_fifo.c’
    5> Checking ‘app_util_platform.c’
    5> 'Output/Release/Obj/ble_app_uart_pca10040_s132/app_util_platform.o' is up to date
    6> Checking ‘hardfault_implementation.c’
    6> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/hardfault_implementation.o (19.04.2022 10:18:14).
    6> Compiling ‘hardfault_implementation.c’
    7> Checking ‘nrf_assert.c’
    7> 'Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_assert.o' is up to date
    5> Checking ‘nrf_atfifo.c’
    5> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_atfifo.o (19.04.2022 10:18:15).
    5> Compiling ‘nrf_atfifo.c’
    7> Checking ‘nrf_atflags.c’
    7> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_atflags.o (19.04.2022 10:18:15).
    7> Compiling ‘nrf_atflags.c’
    8> Checking ‘nrf_atomic.c’
    8> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_atomic.o (19.04.2022 10:18:15).
    8> Compiling ‘nrf_atomic.c’
    1> Checking ‘nrf_balloc.c’
    1> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_balloc.o (19.04.2022 10:18:15).
    1> Compiling ‘nrf_balloc.c’
    2> Checking ‘nrf_fprintf.c’
    2> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_fprintf.o (19.04.2022 10:18:16).
    2> Compiling ‘nrf_fprintf.c’
    6> Checking ‘nrf_fprintf_format.c’
    6> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_fprintf_format.o (19.04.2022 10:18:16).
    6> Compiling ‘nrf_fprintf_format.c’
    3> Checking ‘nrf_memobj.c’
    3> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_memobj.o (19.04.2022 10:18:16).
    3> Compiling ‘nrf_memobj.c’
    4> Checking ‘nrf_pwr_mgmt.c’
    4> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_pwr_mgmt.o (19.04.2022 10:18:17).
    4> Compiling ‘nrf_pwr_mgmt.c’
    5> Checking ‘nrf_ringbuf.c’
    5> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_ringbuf.o (19.04.2022 10:18:16).
    5> Compiling ‘nrf_ringbuf.c’
    7> Checking ‘nrf_section_iter.c’
    7> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_section_iter.o (19.04.2022 10:18:16).
    7> Compiling ‘nrf_section_iter.c’
    8> Checking ‘nrf_strerror.c’
    8> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_strerror.o (19.04.2022 10:18:16).
    8> Compiling ‘nrf_strerror.c’
    1> Checking ‘retarget.c’
    1> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/retarget.o (19.04.2022 10:18:16).
    1> Compiling ‘retarget.c’
    2> Checking ‘ses_startup_nrf52.s’
    2> 'Output/Release/Obj/ble_app_uart_pca10040_s132/ses_startup_nrf52.o' is up to date
    6> Checking ‘ses_startup_nrf_common.s’
    6> 'Output/Release/Obj/ble_app_uart_pca10040_s132/ses_startup_nrf_common.o' is up to date
    2> Checking ‘system_nrf52.c’
    2> 'Output/Release/Obj/ble_app_uart_pca10040_s132/system_nrf52.o' is up to date
    6> Checking ‘boards.c’
    6> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/boards.o (19.04.2022 10:18:18).
    6> Compiling ‘boards.c’
    7> Checking ‘nrf_drv_clock.c’
    7> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_drv_clock.o (19.04.2022 10:18:18).
    7> Compiling ‘nrf_drv_clock.c’
    2> Checking ‘nrf_drv_uart.c’
    2> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_drv_uart.o (19.04.2022 10:18:18).
    2> Compiling ‘nrf_drv_uart.c’
    3> Checking ‘nrfx_clock.c’
    3> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_clock.o (19.04.2022 10:18:18).
    3> Compiling ‘nrfx_clock.c’
    5> Checking ‘nrfx_gpiote.c’
    5> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_gpiote.o (19.04.2022 10:18:19).
    5> Compiling ‘nrfx_gpiote.c’
    8> Checking ‘nrfx_prs.c’
    8> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_prs.o (19.04.2022 10:18:18).
    8> Compiling ‘nrfx_prs.c’
    4> Checking ‘nrfx_uart.c’
    4> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_uart.o (19.04.2022 10:18:19).
    4> Compiling ‘nrfx_uart.c’
    1> Checking ‘nrfx_uarte.c’
    1> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_uarte.o (19.04.2022 10:18:19).
    1> Compiling ‘nrfx_uarte.c’
    6> Checking ‘nrfx_saadc.c’
    6> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_saadc.o (19.04.2022 10:18:20).
    6> Compiling ‘nrfx_saadc.c’
    7> Checking ‘nrfx_ppi.c’
    7> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_ppi.o (19.04.2022 10:18:20).
    7> Compiling ‘nrfx_ppi.c’
    2> Checking ‘nrfx_timer.c’
    2> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_timer.o (19.04.2022 10:18:20).
    2> Compiling ‘nrfx_timer.c’
    3> Checking ‘nrf_drv_ppi.c’
    3> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_drv_ppi.o (19.04.2022 10:18:20).
    3> Compiling ‘nrf_drv_ppi.c’
    5> Checking ‘nrfx_power.c’
    5> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_power.o (19.04.2022 10:18:20).
    5> Compiling ‘nrfx_power.c’
    8> Checking ‘bsp.c’
    8> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/bsp.o (19.04.2022 10:18:21).
    8> Compiling ‘bsp.c’
    1> Checking ‘bsp_btn_ble.c’
    1> C:/Users/l.marcos/Desktop/nRF5_SDK_17.1.0_ddde560 URGENCE/examples/ble_peripheral/ble_app_uart__saadc_timer_driven__scan_mode V2/pca10040/s132/config/sdk_config.h (19.04.2022 15:43:12) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/bsp_btn_ble.o (19.04.2022 10:18:21).
    1> Compiling ‘bsp_btn_ble.c’
    4> Checking ‘main.c’
    4> Output/Release/Obj/ble_app_uart_pca10040_s132/main.o does not exist.
    4> Compiling ‘main.c’
    4> In file included from ../../../../../../modules/nrfx/nrfx.h:45,
    4>                  from ../../../../../../modules/nrfx/hal/nrf_gpio.h:44,
    4>                  from ../../../../../../components/boards/boards.h:43,
    4>                  from ../../../../../../components/libraries/bsp/bsp.h:58,
    4>                  from ../../../../../../components/libraries/bsp/bsp_btn_ble.h:60,
    4>                  from C:\Users\l.marcos\Desktop\nRF5_SDK_17.1.0_ddde560 URGENCE\examples\ble_peripheral\ble_app_uart__saadc_timer_driven__scan_mode V2\main.c:71:
    4> ../../../../../../modules/nrfx/drivers/include/nrfx_timer.h:71:39: error: 'NRF_TIMER3' undeclared here (not in a function); did you mean 'NRF_TIMER0'?
    4> ../../../../../../modules/nrfx/drivers/nrfx_common.h:92:37: note: in definition of macro 'NRFX_CONCAT_2_'
    4> ../../../../../../modules/nrfx/drivers/include/nrfx_timer.h:71:25: note: in expansion of macro 'NRFX_CONCAT_2'
    4> ../../../../../../integration/nrfx/legacy/nrf_drv_timer.h:64:50: note: in expansion of macro 'NRFX_TIMER_INSTANCE'
    4> C:\Users\l.marcos\Desktop\nRF5_SDK_17.1.0_ddde560 URGENCE\examples\ble_peripheral\ble_app_uart__saadc_timer_driven__scan_mode V2\main.c:130:42: note: in expansion of macro 'NRF_DRV_TIMER_INSTANCE'
    6> Checking ‘SEGGER_RTT.c’
    6> Output/Release/Obj/ble_app_uart_pca10040_s132/SEGGER_RTT.o does not exist.
    6> Compiling ‘SEGGER_RTT.c’
    4> ../../../../../../modules/nrfx/drivers/include/nrfx_timer.h:72:39: error: 'NRFX_TIMER3_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_TIMER_INSTANCE'?
    4> ../../../../../../modules/nrfx/drivers/nrfx_common.h:113:37: note: in definition of macro 'NRFX_CONCAT_3_'
    4> ../../../../../../modules/nrfx/drivers/include/nrfx_timer.h:72:25: note: in expansion of macro 'NRFX_CONCAT_3'
    4> ../../../../../../integration/nrfx/legacy/nrf_drv_timer.h:64:50: note: in expansion of macro 'NRFX_TIMER_INSTANCE'
    4> C:\Users\l.marcos\Desktop\nRF5_SDK_17.1.0_ddde560 URGENCE\examples\ble_peripheral\ble_app_uart__saadc_timer_driven__scan_mode V2\main.c:130:42: note: in expansion of macro 'NRF_DRV_TIMER_INSTANCE'
    4> ../../../../../../modules/nrfx/hal/nrf_timer.h:125:55: error: 'TIMER3_CC_NUM' undeclared here (not in a function); did you mean 'TIMER0_CC_NUM'?
    4> ../../../../../../modules/nrfx/drivers/nrfx_common.h:113:37: note: in definition of macro 'NRFX_CONCAT_3_'
    4> ../../../../../../modules/nrfx/hal/nrf_timer.h:125:41: note: in expansion of macro 'NRFX_CONCAT_3'
    4> ../../../../../../modules/nrfx/drivers/include/nrfx_timer.h:73:25: note: in expansion of macro 'NRF_TIMER_CC_CHANNEL_COUNT'
    4> ../../../../../../integration/nrfx/legacy/nrf_drv_timer.h:64:50: note: in expansion of macro 'NRFX_TIMER_INSTANCE'
    4> C:\Users\l.marcos\Desktop\nRF5_SDK_17.1.0_ddde560 URGENCE\examples\ble_peripheral\ble_app_uart__saadc_timer_driven__scan_mode V2\main.c:130:42: note: in expansion of macro 'NRF_DRV_TIMER_INSTANCE'
    5> Checking ‘SEGGER_RTT_Syscalls_SES.c’
    5> Output/Release/Obj/ble_app_uart_pca10040_s132/SEGGER_RTT_Syscalls_SES.o does not exist.
    5> Compiling ‘SEGGER_RTT_Syscalls_SES.c’
    7> Checking ‘SEGGER_RTT_printf.c’
    7> Output/Release/Obj/ble_app_uart_pca10040_s132/SEGGER_RTT_printf.o does not exist.
    7> Compiling ‘SEGGER_RTT_printf.c’
    2> Checking ‘ble_advdata.c’
    2> Output/Release/Obj/ble_app_uart_pca10040_s132/ble_advdata.o does not exist.
    2> Compiling ‘ble_advdata.c’
    3> Checking ‘ble_advertising.c’
    3> Output/Release/Obj/ble_app_uart_pca10040_s132/ble_advertising.o does not exist.
    3> Compiling ‘ble_advertising.c’
    Build failed
    
    I tried to enable in sdk_config the timer 0 1 and 2 but i have those errors again

Related