Build Error After Update nRF Connect SDK from v2.3 to v2.5

Hello,

After updating the SDK from version 2.3 to 2.5, I have been encountering warnings and errors. Unfortunately, the compiler's suggestions haven't been consistent or reliable. I am seeking guidance on where to find documentation regarding the SPIM, RTC/TIMER, and GPIOTE APIs for nRF Connect SDk v2.5. 

 

sample.c:122:41: error: 'NRFX_TIMER_DEFAULT_CONFIG' undeclared (first use in this function)
  122 |         nrfx_timer_config_t timer_cfg = NRFX_TIMER_DEFAULT_CONFIG;
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~


sample.c:162:111: error: 'NRFX_SPIM_PIN_NOT_USED' undeclared (first use in this function); did you mean 'NRF_GPIO_PIN_NOSENSE'?
  162 |         nrfx_spim_config_t spim_config = NRFX_SPIM_DEFAULT_CONFIG(SPIM_SCK_PIN, SPIM_MOSI_PIN, SPIM_MISO_PIN, NRFX_SPIM_PIN_NOT_USED);
      |                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.5.0\modules\hal\nordic\nrfx\drivers\include\nrfx_spim.h:155:23: note: in definition of macro 'NRFX_SPIM_DEFAULT_CONFIG'
  155 |     .ss_pin         = _pin_ss,                                                                   \
      |                       ^~~~~~~
sample.c:259:37: warning: implicit declaration of function 'nrfx_gpiote_out_task_addr_get'; did you mean 'nrfx_gpiote_out_task_address_get'? [-Wimplicit-function-declaration]
  259 |         uint32_t cs_out_task_addr = nrfx_gpiote_out_task_addr_get(SPIM_CS_PIN);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     nrfx_gpiote_out_task_address_get
sample.c:260:37: warning: implicit declaration of function 'nrfx_gpiote_clr_task_addr_get'; did you mean 'nrfx_gpiote_clr_task_address_get'? [-Wimplicit-function-declaration]
  260 |         uint32_t cs_clr_task_addr = nrfx_gpiote_clr_task_addr_get(SPIM_CS_PIN);
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     nrfx_gpiote_clr_task_address_get
sample.c:261:41: warning: implicit declaration of function 'nrfx_spim_start_task_get'; did you mean 'nrfx_gpiote_set_task_get'? [-Wimplicit-function-declaration]
  261 |         uint32_t spim_start_task_addr = nrfx_spim_start_task_get(&spim);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                         nrfx_gpiote_set_task_get
sample.c:262:40: warning: implicit declaration of function 'nrfx_spim_end_event_get'; did you mean 'nrfx_gpiote_in_event_get'? [-Wimplicit-function-declaration]
  262 |         uint32_t spim_end_event_addr = nrfx_spim_end_event_get(&spim);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~
      |                                        nrfx_gpiote_in_event_get

Thank you!

Parents Reply Children
No Data
Related