The latest TWI example I can find is from 4 SDK revisions ago and uses old libraries. Is there a sample using the nrf_drv_twi library that is recommended for current development?
The latest TWI example I can find is from 4 SDK revisions ago and uses old libraries. Is there a sample using the nrf_drv_twi library that is recommended for current development?
Hi Martin,
What version of MDK are you currently using? I am on 5.17. I was hoping to try 5.16a, the current version when you posted, but I think I have to purchase the full version to do so...
Could you provide your current configurations (MDK version, SDK version, etc.) or what configurations you know work?
Thanks, Andrew
Hi martin I want to connect mpu9150 chipset via I2C. But i can't find the project what i want.
I have tested your project. But i have encountered same problem as below...
Build target 'nrf51422_xxac' compiling main.c... ....\main.c(55): warning: #223-D: function "CONCAT_2" declared implicitly const nrf_drv_twi_t p_twi_instance = NRF_DRV_TWI_INSTANCE(1); // Set up TWI instance 1 with default values ....\main.c(55): error: #20: identifier "NRF_TWI" is undefined
My MDK version is V5.14
Thanks.
Hey Everyone,
I believe the issue might lie in the Keil packs for nrf_libraries and nrf_drivers. I used the second newest versions (made in July) with Martin's new TWI example (V3) and it was able to build.
Not sure if its the best solution but it worked.
Thanks, Andrew
Hi. You were right in your answer below. For the record I'm using Keil uVision (MDK) v5.12.
Hi. @NewToNordic has the answer below. I have updated my initial answer with a step-by-step explanation.