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. 

Parents
  • Thank you for providing the file.

    Please change to using the nrfx_timer driver directly.
    You will only need to replace the function calls with the same ones in the nrfx driver - if you look at the definitions of the legacy nrf_drv_timer_* calls you will see that they are macro forwarded to the nrfx implementation behind the scenes anyways. You should therefore use these calls directly instead.
    Then, when you are using the nrfx_timer driver you should remove the following legacy definitions entirely from your sdk_config.h file:

    // <e> TIMER_ENABLED - nrf_drv_timer - TIMER periperal driver - legacy layer
    //==========================================================
    #ifndef TIMER_ENABLED
    #define TIMER_ENABLED 1
    #endif
    // <o> TIMER_DEFAULT_CONFIG_FREQUENCY  - Timer frequency if in Timer mode
     
    // <0=> 16 MHz 
    // <1=> 8 MHz 
    // <2=> 4 MHz 
    // <3=> 2 MHz 
    // <4=> 1 MHz 
    // <5=> 500 kHz 
    // <6=> 250 kHz 
    // <7=> 125 kHz 
    // <8=> 62.5 kHz 
    // <9=> 31.25 kHz 
    
    #ifndef TIMER_DEFAULT_CONFIG_FREQUENCY
    #define TIMER_DEFAULT_CONFIG_FREQUENCY 0
    #endif
    
    // <o> TIMER_DEFAULT_CONFIG_MODE  - Timer mode or operation
     
    // <0=> Timer 
    // <1=> Counter 
    
    #ifndef TIMER_DEFAULT_CONFIG_MODE
    #define TIMER_DEFAULT_CONFIG_MODE 0
    #endif
    
    // <o> TIMER_DEFAULT_CONFIG_BIT_WIDTH  - Timer counter bit width
     
    // <0=> 16 bit 
    // <1=> 8 bit 
    // <2=> 24 bit 
    // <3=> 32 bit 
    
    #ifndef TIMER_DEFAULT_CONFIG_BIT_WIDTH
    #define TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
    #endif
    
    // <o> TIMER_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
     
    
    // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
    // <0=> 0 (highest) 
    // <1=> 1 
    // <2=> 2 
    // <3=> 3 
    // <4=> 4 
    // <5=> 5 
    // <6=> 6 
    // <7=> 7 
    
    #ifndef TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
    #define TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
    #endif
    
    // <q> TIMER0_ENABLED  - Enable TIMER0 instance
     
    
    #ifndef TIMER0_ENABLED
    #define TIMER0_ENABLED 0
    #endif
    
    // <q> TIMER1_ENABLED  - Enable TIMER1 instance
     
    
    #ifndef TIMER1_ENABLED
    #define TIMER1_ENABLED 0
    #endif
    
    // <q> TIMER2_ENABLED  - Enable TIMER2 instance
     
    
    #ifndef TIMER2_ENABLED
    #define TIMER2_ENABLED 0
    #endif
    
    // <q> TIMER3_ENABLED  - Enable TIMER3 instance
     
    
    #ifndef TIMER3_ENABLED
    #define TIMER3_ENABLED 1
    #endif
    
    // <q> TIMER4_ENABLED  - Enable TIMER4 instance
     
    
    #ifndef TIMER4_ENABLED
    #define TIMER4_ENABLED 0
    #endif
    
    // </e>


    Instead, you should now use the NRFX_TIMER_* defines to configure your nrfx_timer driver.
    Please make sure to define the NRFX_TIMER_ENABLED to 1, along with the *_ENABLE for the timer instance you will be using.

    Let me know if this resolves your issue! :) 
    Best regards,
    Karl

  • I'm sorry it is hard to understand i'm french... Could you do the work for me? or explain to me easily? thank you so much

Reply Children
  • Hello Karl i tried to understand what you said and modified the sdk like you suggested me ( i guess) and I have now differents errors : 

    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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_backend_rtt.o (21.04.2022 09:04:38).
    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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_backend_serial.o (21.04.2022 09:04:38).
    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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_default_backends.o (21.04.2022 09:04:38).
    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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_frontend.o (21.04.2022 09:04:38).
    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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_str_formatter.o (21.04.2022 09:04:38).
    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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_button.o (21.04.2022 09:04:38).
    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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_error_handler_gcc.o (21.04.2022 09:04:38).
    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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_error_weak.o (21.04.2022 09:04:38).
    1> Compiling ‘app_error_weak.c’
    4> Checking ‘app_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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_fifo.o (21.04.2022 09:04:39).
    4> Compiling ‘app_fifo.c’
    5> Checking ‘app_scheduler.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_scheduler.o (21.04.2022 09:04:39).
    5> Compiling ‘app_scheduler.c’
    6> Checking ‘app_timer.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_timer.o (21.04.2022 09:04:39).
    6> Compiling ‘app_timer.c’
    7> Checking ‘app_uart_fifo.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/app_uart_fifo.o (21.04.2022 09:04:40).
    7> Compiling ‘app_uart_fifo.c’
    2> Checking ‘app_util_platform.c’
    2> 'Output/Release/Obj/ble_app_uart_pca10040_s132/app_util_platform.o' is up to date
    3> Checking ‘hardfault_implementation.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/hardfault_implementation.o (21.04.2022 09:04:39).
    3> Compiling ‘hardfault_implementation.c’
    8> Checking ‘nrf_assert.c’
    8> 'Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_assert.o' is up to date
    1> Checking ‘nrf_atfifo.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_atfifo.o (21.04.2022 09:04:40).
    1> Compiling ‘nrf_atfifo.c’
    2> Checking ‘nrf_atflags.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_atflags.o (21.04.2022 09:04:40).
    2> 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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_atomic.o (21.04.2022 09:04:40).
    8> Compiling ‘nrf_atomic.c’
    4> Checking ‘nrf_balloc.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_balloc.o (21.04.2022 09:04:42).
    4> Compiling ‘nrf_balloc.c’
    5> Checking ‘nrf_fprintf.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_fprintf.o (21.04.2022 09:04:42).
    5> 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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_fprintf_format.o (21.04.2022 09:04:41).
    6> Compiling ‘nrf_fprintf_format.c’
    7> Checking ‘nrf_memobj.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_memobj.o (21.04.2022 09:04:41).
    7> Compiling ‘nrf_memobj.c’
    3> Checking ‘nrf_pwr_mgmt.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_pwr_mgmt.o (21.04.2022 09:04:42).
    3> Compiling ‘nrf_pwr_mgmt.c’
    1> Checking ‘nrf_ringbuf.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_ringbuf.o (21.04.2022 09:04:42).
    1> Compiling ‘nrf_ringbuf.c’
    2> Checking ‘nrf_section_iter.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_section_iter.o (21.04.2022 09:04:42).
    2> 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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_strerror.o (21.04.2022 09:04:42).
    8> Compiling ‘nrf_strerror.c’
    5> Checking ‘retarget.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/retarget.o (21.04.2022 09:04:43).
    5> Compiling ‘retarget.c’
    4> Checking ‘ses_startup_nrf52.s’
    4> '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
    7> Checking ‘system_nrf52.c’
    7> 'Output/Release/Obj/ble_app_uart_pca10040_s132/system_nrf52.o' is up to date
    3> Checking ‘boards.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/boards.o (21.04.2022 09:04:44).
    3> Compiling ‘boards.c’
    4> Checking ‘nrf_drv_clock.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_drv_clock.o (21.04.2022 09:04:44).
    4> Compiling ‘nrf_drv_clock.c’
    6> Checking ‘nrf_drv_uart.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_drv_uart.o (21.04.2022 09:04:44).
    6> Compiling ‘nrf_drv_uart.c’
    7> Checking ‘nrfx_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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_clock.o (21.04.2022 09:04:45).
    7> Compiling ‘nrfx_clock.c’
    1> Checking ‘nrfx_gpiote.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_gpiote.o (21.04.2022 09:04:45).
    1> Compiling ‘nrfx_gpiote.c’
    2> Checking ‘nrfx_prs.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_prs.o (21.04.2022 09:04:45).
    2> Compiling ‘nrfx_prs.c’
    8> Checking ‘nrfx_uart.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_uart.o (21.04.2022 09:04:45).
    8> Compiling ‘nrfx_uart.c’
    5> Checking ‘nrfx_uarte.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_uarte.o (21.04.2022 09:04:46).
    5> Compiling ‘nrfx_uarte.c’
    3> Checking ‘nrfx_saadc.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_saadc.o (21.04.2022 09:04:47).
    3> Compiling ‘nrfx_saadc.c’
    4> Checking ‘nrfx_ppi.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_ppi.o (21.04.2022 09:04:46).
    4> Compiling ‘nrfx_ppi.c’
    6> Checking ‘nrfx_timer.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_timer.o (21.04.2022 09:04:47).
    6> Compiling ‘nrfx_timer.c’
    7> Checking ‘nrf_drv_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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_drv_ppi.o (21.04.2022 09:04:47).
    7> Compiling ‘nrf_drv_ppi.c’
    1> Checking ‘nrfx_power.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_power.o (21.04.2022 09:04:47).
    1> Compiling ‘nrfx_power.c’
    2> Checking ‘bsp.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/bsp.o (21.04.2022 09:04:47).
    2> Compiling ‘bsp.c’
    5> Checking ‘bsp_btn_ble.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/bsp_btn_ble.o (21.04.2022 09:04:47).
    5> Compiling ‘bsp_btn_ble.c’
    8> Checking ‘main.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/main.o (20.04.2022 17:19:22).
    8> Compiling ‘main.c’
    3> Checking ‘SEGGER_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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/SEGGER_RTT.o (21.04.2022 09:02:13).
    3> Compiling ‘SEGGER_RTT.c’
    4> Checking ‘SEGGER_RTT_Syscalls_SES.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/SEGGER_RTT_Syscalls_SES.o (21.04.2022 09:04:47).
    4> Compiling ‘SEGGER_RTT_Syscalls_SES.c’
    7> Checking ‘SEGGER_RTT_printf.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/SEGGER_RTT_printf.o (21.04.2022 08:19:32).
    7> Compiling ‘SEGGER_RTT_printf.c’
    6> Checking ‘ble_advdata.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/ble_advdata.o (21.04.2022 09:00:30).
    6> Compiling ‘ble_advdata.c’
    1> Checking ‘ble_advertising.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/ble_advertising.o (21.04.2022 09:00:31).
    1> Compiling ‘ble_advertising.c’
    2> Checking ‘ble_conn_params.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/ble_conn_params.o (21.04.2022 09:00:31).
    2> Compiling ‘ble_conn_params.c’
    4> Checking ‘ble_conn_state.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/ble_conn_state.o (21.04.2022 09:00:31).
    4> Compiling ‘ble_conn_state.c’
    5> Checking ‘ble_link_ctx_manager.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/ble_link_ctx_manager.o (21.04.2022 09:00:31).
    5> Compiling ‘ble_link_ctx_manager.c’
    3> Checking ‘ble_srv_common.c’
    3> 'Output/Release/Obj/ble_app_uart_pca10040_s132/ble_srv_common.o' is up to date
    7> Checking ‘nrf_ble_gatt.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_ble_gatt.o (21.04.2022 09:00:31).
    7> Compiling ‘nrf_ble_gatt.c’
    3> Checking ‘nrf_ble_qwr.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_ble_qwr.o (20.04.2022 17:19:23).
    3> Compiling ‘nrf_ble_qwr.c’
    6> Checking ‘utf.c’
    6> 'Output/Release/Obj/ble_app_uart_pca10040_s132/utf.o' is up to date
    8> Checking ‘ble_nus.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/ble_nus.o (20.04.2022 17:19:24).
    8> Compiling ‘ble_nus.c’
    6> Checking ‘nrf_sdh.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o (20.04.2022 17:19:24).
    6> Compiling ‘nrf_sdh.c’
    1> Checking ‘nrf_sdh_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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh_ble.o (20.04.2022 17:19:24).
    1> Compiling ‘nrf_sdh_ble.c’
    2> Checking ‘nrf_sdh_soc.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 V1/pca10040/s132/config/sdk_config.h (21.04.2022 09:11:51) is later than Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh_soc.o (20.04.2022 17:19:24).
    2> Compiling ‘nrf_sdh_soc.c’
    1> Checking ‘ble_app_uart_pca10040_s132’
    1> Output/Release/Exe/ble_app_uart_pca10040_s132.elf does not exist.
    1> Linking ble_app_uart_pca10040_s132.elf
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_uarte.o: in function `UARTE0_UART0_IRQHandler':
    1> C:\Users\l.marcos\Desktop\nRF5_SDK_17.1.0_ddde560 URGENCE\modules\nrfx\drivers\src/nrfx_uarte.c:676: multiple definition of `UARTE0_UART0_IRQHandler'; Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_uart.o:C:\Users\l.marcos\Desktop\nRF5_SDK_17.1.0_ddde560 URGENCE\modules\nrfx\drivers\src/nrfx_uart.c:649: first defined here
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Exe/ble_app_uart_pca10040_s132.elf section `.init' will not fit in region `UNPLACED_SECTIONS'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: region `UNPLACED_SECTIONS' overflowed by 28832 bytes
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/thumb_crt0.o: in function `memory_set':
    1> (.init+0xe8): undefined reference to `__data_load_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0xec): undefined reference to `__data_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0xf0): undefined reference to `__data_end__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0xf4): undefined reference to `__text_load_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0xf8): undefined reference to `__text_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0xfc): undefined reference to `__text_end__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x100): undefined reference to `__fast_load_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x104): undefined reference to `__fast_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x108): undefined reference to `__fast_end__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x10c): undefined reference to `__ctors_load_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x110): undefined reference to `__ctors_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x114): undefined reference to `__ctors_end__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x118): undefined reference to `__dtors_load_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x11c): undefined reference to `__dtors_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x120): undefined reference to `__dtors_end__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x124): undefined reference to `__rodata_load_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x128): undefined reference to `__rodata_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x12c): undefined reference to `__rodata_end__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x130): undefined reference to `__tdata_load_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x134): undefined reference to `__tdata_start__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: (.init+0x138): undefined reference to `__tdata_end__'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/ses_startup_nrf_common.o: in function `InitializeUserMemorySections':
    1> (.init+0x3c): undefined reference to `__start_nrf_sections'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_frontend.o: in function `nrf_log_module_name_get':
    1> nrf_log_frontend.c:(.text.nrf_log_module_name_get+0x2c): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: nrf_log_frontend.c:(.text.nrf_log_module_name_get+0x30): undefined reference to `__stop_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_frontend.o: in function `nrf_log_color_id_get':
    1> nrf_log_frontend.c:(.text.nrf_log_color_id_get+0x28): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_log_frontend.o: in function `nrf_log_frontend_dequeue':
    1> nrf_log_frontend.c:(.text.nrf_log_frontend_dequeue+0x1fc): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/app_error_weak.o: in function `app_error_fault_handler':
    1> app_error_weak.c:(.text.app_error_fault_handler+0xac): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_pwr_mgmt.o:(.rodata.pwr_mgmt_data+0x0): undefined reference to `__start_pwr_mgmt_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_pwr_mgmt.o:(.rodata.pwr_mgmt_data+0x4): undefined reference to `__stop_pwr_mgmt_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_timer.o: in function `nrfx_timer_init':
    1> nrfx_timer.c:(.text.nrfx_timer_init+0xfc): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_timer.o: in function `nrfx_timer_enable':
    1> nrfx_timer.c:(.text.nrfx_timer_enable+0x30): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_timer.o: in function `nrfx_timer_compare':
    1> nrfx_timer.c:(.text.nrfx_timer_compare+0x4c): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrfx_timer.o: in function `nrfx_timer_extended_compare':
    1> nrfx_timer.c:(.text.nrfx_timer_extended_compare+0x54): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/main.o: in function `nus_data_handler':
    1> main.c:(.text.nus_data_handler+0x6c): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/main.o:main.c:(.text.gatt_evt_handler+0x48): more undefined references to `__start_log_const_data' follow
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_req_observers+0x0): undefined reference to `__start_sdh_req_observers'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_req_observers+0x4): undefined reference to `__stop_sdh_req_observers'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_state_observers+0x0): undefined reference to `__start_sdh_state_observers'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh.o:(.rodata.sdh_state_observers+0x4): undefined reference to `__stop_sdh_state_observers'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh_ble.o: in function `nrf_sdh_ble_default_cfg_set':
    1> nrf_sdh_ble.c:(.text.nrf_sdh_ble_default_cfg_set+0x168): undefined reference to `__start_log_const_data'
    1> C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.66/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/ble_app_uart_pca10040_s132/nrf_sdh_ble.o: in function `nrf_sdh_ble_enable':
    1> nrf_sdh_ble.c:(.text.nrf_sdh_ble_enable+0x78): undefined reference to `__start_log_const_data'
    Build failed
    
    1184.sdk_config.h

  • Yes thank you this is what i did i have the errors that a showed in the last post that i'm trying to fix...

  • Could you elaborate on what you changed?
    You do not necessarily have to change your nrf_drv calls to the nrfx equivalent - you could keep the nrf_drv function calls (since they are forwarded to the nrfx implementation behind the scenes) so long as you remove the part I specified from the sdk_config.

    Best regards,
    Karl

  • Karl, I have too many errors now ... I'm following what you are saying and now I have many many problems ble_app_uart__saadc_timer_driven__scan_mode V1.zip

Related