zephyriot / zephyr-issues

0 stars 0 forks source link

i2c FRAM sample not working #391

Closed nashif closed 8 years ago

nashif commented 8 years ago

Reported by Anas Nashif:

Since we moved to I2C drivers from QMSI the FRAM sample stopped working, the sample hangs while reading the data from the FRAM module. Bisecting leads to commit:

a7d33296948169106f617edc72138bbc82f74d8f

(Imported from Jira ZEP-398)

nashif commented 8 years ago

by Anas Nashif:

can you guys please take a look?

nashif commented 8 years ago

by Baohong Liu:

Root caused. Patch will be posted.

nashif commented 8 years ago

by Anas Nashif:

use JIRA to also report what the problem is, this can be helpful when people have similar issues later and find this JIRA...

nashif commented 8 years ago

by Kuo-Lang Tseng:

The root-cause - I2C_MSG_RESTART is not used in QMSI driver and what is missing is I2C_MSG_STOP which caused the issue:

   msgs[1].flags = I2C_MSG_READ | I2C_MSG_RESTART;

return i2c_transfer(i2c_dev, &msgs[0], 2, FRAM_I2C_ADDR);
nashif commented 8 years ago

by Kuo-Lang Tseng:

Patch was merged https://gerrit.zephyrproject.org/r/#/c/2244.

nashif commented 7 years ago

by Mark Linkmeyer:

Fixing incorrect priority