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

NRF/NRFX TWI manager configurations & NRFX_TWI0_INST_IDX undeclared

Cheers!

I've been working to enable TWI0 for our current project, but I've been getting stuck on this compile error:

../SDK/modules/nrfx/drivers/include/nrfx_twi.h:73:35: error: 'NRFX_TWI0_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_TWIM0_INST_IDX'?
     .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWI, id, _INST_IDX), \

I've updated my sdk_config to enable NRFX_TWI0, and I've attempted both to enable the legacy TWI/TWI0 as well as remove them from the sdk_config completely (per a suggestion for SPI posted here devzone.nordicsemi.com/.../142936 )

Additionally I've tossed in an if else in my main.c that'll tell me at compile time if TWI0 is enabled or not (Doesn't compile with this on, but I'll uncomment it and compile to check what it can see) and so far, regardless of what I do, I end up with NRFX_TWI0_ENABLED FALSE

SDK Config settings got NRFX TWI

And if/else check that tells me True or False after verifying NRFX_TWI0_ENABLE

Parents Reply Children
No Data
Related