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
Solved! Go to Solution.
Hi,
I am new to FreeScale and MQX. I am facing similar problem as described by Mike. Can some body please help me?
Thanks in advance
Also, just tried the I2C sample in MQX 3.2, same thing.
That version passes I2C_DEVICE_MASTER_MODE explicitly as the second parameter to fopen, so that's not the problem.
EDIT:
I can fopen the SDA0 / SCL0 pins on PORT_AS just fine as GPIO, so I'm not sure why the I2C fopen is failing.