ncs 2.7.0 RC error with i2s initialization

We have an issue with initializing our i2s instance as mentioned in sample code with an `id` of `0`:
// Instance of NRFX I2S driver (there is only one I2S instance in the system).
static nrfx_i2s_t omni_mic_instance = NRFX_I2S_INSTANCE(0);
We get this error:
/opt/nordic/ncs/v2.7.0/modules/hal/nordic/nrfx/drivers/include/nrfx_i2s.h:115:33: error: 'NRF_DT_N_S_soc_S_peripheral_50000000_S_i2s_280000' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_i2s_28000_ORD'?
  115 |     .p_reg        = NRFX_CONCAT(NRF_, I2S, id),             \
      |                                 ^~~~
/opt/nordic/ncs/v2.7.0/modules/hal/nordic/nrfx/drivers/nrfx_common.h:168:32: note: in definition of macro 'NRFX_CONCAT_2_'
  168 | #define NRFX_CONCAT_2_(p1, p2) p1 ## p2
      |                                ^~
/opt/nordic/ncs/v2.7.0/modules/hal/nordic/nrfx/drivers/nrfx_utils_internal.h:384:34: note: in expansion of macro 'NRFX_CONCAT_2'
  384 | #define _NRFX_CONCAT_2(arg, ...) NRFX_CONCAT_2(arg, _NRFX_CONCAT_1(__VA_ARGS__))
      |                                  ^~~~~~~~~~~~~
/opt/nordic/ncs/v2.7.0/modules/hal/nordic/nrfx/drivers/nrfx_common.h:168:32: note: in expansion of macro '_NRFX_CONCAT_2'
  168 | #define NRFX_CONCAT_2_(p1, p2) p1 ## p2
      |                                ^~
/opt/nordic/ncs/v2.7.0/modules/hal/nordic/nrfx/drivers/include/nrfx_i2s.h:115:21: note: in expansion of macro 'NRFX_CONCAT'
  115 |     .p_reg        = NRFX_CONCAT(NRF_, I2S, id),             \
      |                     ^~~~~~~~~~~
/Users/ever/Developer/pendant-3/src/omnimic.c:24:39: note: in expansion of macro 'NRFX_I2S_INSTANCE'
   24 | static nrfx_i2s_t omni_mic_instance = NRFX_I2S_INSTANCE(0);
To fix we reverted back to the 2.6.1 code instead of using `NRFX_CONCAT(NRF_, I2S, id)` in `nrfx_i2s.h`:

#define NRFX_I2S_INSTANCE(id)
.p_reg = NRF_I2S##id,
...



Parents Reply Children
No Data
Related