monkoton
Posts: 2
Joined: Tue Nov 22, 2016 5:11 am

Need help with interfacing with I2C FRAM

Tue Nov 22, 2016 5:13 am

Hi, I just got a FRAM board and wanted to read and write to it. I have the PIN's all setup were i2cdetect would detect the FRAM. However I am having trouble reading and writing data to the FRAM.

I tried open(), ioctnl(), and then write() and read() but I am not getting the results I want. Does anyone know how to read and write to the FRAM?

FRAM Board in question (https://learn.adafruit.com/adafruit-i2c ... t/overview)

aBUGSworstnightmare
Posts: 2014
Joined: Tue Jun 30, 2015 1:35 pm

Re: Need help with interfacing with I2C FRAM

Tue Nov 22, 2016 11:07 am

aren't the commands detailed in the chips data sheet - i.e. from here http://www.adafruit.com/datasheets/MB85 ... -2v0-E.pdf

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9069
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Need help with interfacing with I2C FRAM

Tue Nov 22, 2016 12:09 pm

That data sheet looks pretty sparse to me, but Google does return https://github.com/emlid/Navio/pull/30/files which appears to be someone having written a C++ library for talking to the MB85RC256. How does that compare to the I2C commands you were using?
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

monkoton
Posts: 2
Joined: Tue Nov 22, 2016 5:11 am

Re: Need help with interfacing with I2C FRAM

Wed Nov 23, 2016 4:06 am

Thanks! It was really helpful!

Return to “Interfacing (DSI, CSI, I2C, etc.)”