Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

TWI Compile Errors - N548M4CB

Rank

Total Posts: 2

Joined 2015-11-11

PM

Hello,

I am trying to connect an MPU-6050 to my N548M4CB (Nordic nRF51422-CEAA, IC V2) from the N5 Starter Kit. To get accustom with TWI (Nordic's I2C), I've been trying to run the example code from the link below:

https://devzone.nordicsemi.com/question/48894/hardware-twii2c-example/

But every time I build in the Keil ARM-MDK using SoftDevice S110, I get many path errors like this:

compiling main.c...
..
\..\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 
RF_DRV_TWI_INSTANCE(1); // Set up TWI instance 1 with default values
..\..\main.c(55): warning:  #223-D: function "CONCAT_3" 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 "TWI" is undefined
      
const nrf_drv_twi_t           p_twi_instance 


None of the libraries and dependencies appear to be working. Furthermore, I've tried deselecting all of the TWI drivers and just including paths to all files in \Keil_v5\ARM\Device\Nordic\components. But it looks like I have to include a path to every sub-directory possible, which isn't very efficient.

I still haven't got TWI working because of this. Has anyone had this issue? Should I be using an older SDK for rev.2 IC's? The N5 starter kit recommends 9.0 but I don't know if 6.1 is better with TWI. (I've heard their twi_hw_master drivers are identical though)

I'd really appreciate some help!

------------------------------------------------

On a side note, the N5 starter kit comes with 2 new N5150M5CD models but they are missing their FCC ID. What does this mean? Can we not legally use these boards or something?

Thanks,
Andrew      
Rank

Total Posts: 2

Joined 2015-11-11

PM

Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Thanks for posting back here!