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 thank for fast reply.
when i open your example and compile , i faced a build error like image screenshot. can you give any suggest for this.
hi martin thank for fast reply.
when i open your example and compile , i faced a build error like image screenshot. can you give any suggest for this.
Where did you extract the example? The folder path to your example .uvprojx file should look like this: "your_SDK9_folder\examples\peripheral\twi_simple_SDK9.0.0_v2\pca10028\arm5_no_packs\twi_simple_SDK9.0.0_v2.uvprojx". The example is meant to be used with the SDK folder structure in the .zip file here. It is not intended for use with the pack installer.
thanks martin. :)
This driver should be compatible with SDK8.1 as well, correct?
Yes, the SDK 9 driver only has a minor bug fix.
Hi! I am struggling to build this code. I'm getting errors like:
....\main.c(55): warning: #223-D: function "CONCAT_2" declared implicitly const nrf_drv_twi_t p_twi_instance = RF_DRV_TWI_INSTANCE(1); // Set up TWI instance 1 with default values ....\main.c(55): error: #20: identifier "NRF_TWI" is undefined const nrf_drv_twi_t p_twi_instance =
These appear to be basic TWI macros used by the libraries but definitions for variables like NRF_TWI cannot be found.
I am wondering if there is a file path issue that needs to be resolved. Or if this code does not apply to my scenario. I'm using SDK 9.0, nRF51422, Keil_V5, and soft device s110.
Any suggestions?