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

TWI - NRFX_CHECK(NRFX_TWIM_ENABLED) always undefined

Alright, I'm starting to question my sanity on this one. I am currently trying to use the TWIM driver nrfx_twim.c to access a TWI device. As usual, I did the checks for the required defines in the sdk_config.h and thought I had them wired up correctly.

Yet, when I open the nrfx_twim.c everything starting with line 43 (#if NRFX_CHECK(NRFX_TWIM_ENABLED) is greyed out. Alright, this somehow goes back to apply_old_config.h where I can see that it can't be defined since TWI_ENABLED is undefined. Back to sdk_config.h .. but now .. TWI_ENABLED is set to 1. Ahem .. so now what? In fact all of them are actually correctly defined but Segger won't show me and when I call nrfx_twim_init from my main.c file (I have included #include "nrfx_twim.h" as well) I get an undefined reference to nrfx_twim_init (because it's not defined).

Any idea how I can debug that issue - why is TWI_ENABLED not defined when I compile the module nrfx_twim.c.

The framework version is v16 and the device is a nrf82840 based ublox module.

Parents Reply Children
Related