In Adafruit_FRAM_I2C.cpp, comment out this line of code:
#include <stdlib.h>
Finally, in the example .ino file, get rid of or comment out this line of code at the top:
#include <Wire.h>
I suggest you power the FRAM board using 3.3v via the Photon’s 3V3 pin. The board already includes I2C pull-up resistors. I also recommend compiling against the latest stable release (0.5.3) or the near-stable 0.6.0-rc.2. Let me know how it works!
They have been extremely helpful! I have made the tweaks as suggested and now have a working library for I2C. I have uploaded the code to GitHub (https://github.com/SammyHerring/Adafruit_FRAM-I2C) and added @peekay123, @RWB and @ScruffR as contributors if you want me to link your GitHub accounts to the repo, I’m more than happy to.
Thank you for doing this. I am interested in using this library as well. I new to the platform and are moving from the Particle Build to Particle Dev local IDE. To use this library, do I simply add these files to my local project folder? Is there a way to link to the Github repo so I could get updates?
No, it is not in the libraries, I was posted to Github by Sammy. I was able to use it by moving to Particle Dev and putting it into a directory under my project.
Hi - late to this post I know and my first post here but I have had a good look around and can’t see the answer.
I bought some FRAM breakouts and have been following @chipmc excellent article on ruggedised electron but my FRAM just gives me 0xFF for every byte. My UK supplier thinks its because electron is based on ARM Cortex M3 which is not in supported list, but your system in the park is working fine for Chip.
Anyone else see this or had similar problem - the manuid and product id come back with 0xFF (so fail) as well?.
@willjgi, Is this in regards to using FRAM with a Particle device? If not, which platform are you using? Which FRAM breakouts did you buy? How do you have it wired? Which library are you using to test?
Hi, thanks @peekay123 and just realised not posted half of what is needed!
I am using the Adafruit I2C FRAM Breakout Board with this library and its example on a particle electron wired to 3.3v vdd, gnd, sca & scl wired to same named pins on electron.
Data flows even though it fails on manuid and prodid.
@peekay123 I will run the scanner (and try FRAM on an arduino as well) thx, this thread has also made me think I should be using your ported library rather than the one linked? I had used Chips Cellular logger firmware but that failed also.
Will run tests and report, it is the Fujitsu MB85RC256V.