AnsweredAssumed Answered

Can't get fopen ("i2c0:", NULL) to work

Question asked by Mike Marynowski on Oct 17, 2009
Latest reply on Feb 10, 2010 by Navin Bhaskar

Hi,

 

I'm currently trying out the 52259 eval board and MQX 3.3 and the following lines:

 

  

ftouch = fopen ("i2c0:", NULL);   if (ftouch == NULL) {   printf ("Failed to open the I2C driver!\n");   _task_block();}

 

 

always ends up going into the failed block.  I have enabled I2C0 in user_config.h for the BSP.  I also tried the i2c sample project in MQX samples and the same thing happens.

 

Any idea why that might be?

 

Thanks,

 

--Mike

Outcomes