FRAM FM24CXX and other

Please do not post requests
Post Reply
hyperion
Posts: 9
Joined: Wed Nov 29, 2017 8:37 am

FRAM FM24CXX and other

Post by hyperion » Thu Dec 21, 2017 2:16 am

hi. Found this library
https://github.com/sosandroid/FRAM_MB85RC_I2C

i have FM24C04B 4Kbit FRAM memory
after some tweaking it work fine with memory what i have

FRAM_MB85RC_I2C FRAM(0x50, false, 20, 4);
i check whole 512 bytes by simple sketch (write random byte 0..255 and read it. If write==read then success++)
Image
after fix work fine all 512 bytes.

link to my fork with fix
https://github.com/hyperion11/FRAM_FM24CXX_I2C
FRAM_MB85RC_I2C.h
FRAM_MB85RC_I2C.cpp

link to original lib
https://github.com/sosandroid/FRAM_MB85RC_I2C

stevestrong
Posts: 2049
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: FRAM FM24CXX and other

Post by stevestrong » Thu Dec 21, 2017 9:48 am

Can you tell us what was the "fix"?

hyperion
Posts: 9
Joined: Wed Nov 29, 2017 8:37 am

Re: FRAM FM24CXX and other

Post by hyperion » Thu Dec 21, 2017 9:58 am

- Wire.requestFrom(i2c_addr, (uint8_t)items);
+ Wire.requestFrom(chipaddress, (uint8_t)items);

i found this fix in closed issues
https://github.com/sosandroid/FRAM_MB85RC_I2C/issues/2

strange this not fixed yet

hyperion
Posts: 9
Joined: Wed Nov 29, 2017 8:37 am

Re: FRAM FM24CXX and other

Post by hyperion » Tue Dec 26, 2017 8:54 am

total rework library.
https://github.com/hyperion11/FM24CXX
use this projecs as base
https://github.com/SV-Zanshin/MB85_FRAM ... B85_FRAM.h
https://github.com/sosandroid/FRAM_MB85RC_I2C

now my library work with cheap cypress FM24C04 FRAM
can read and write any data. Check on float and long types. Work good.
Image

Post Reply