0

Fram problems
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Fram problems

by LeeBurrow on Wed Mar 10, 2021 3:59 am

Recently bought SPI FRAM - unfortunately although the board is recognized, for some reason I can't write to it.

Tested on UNO, MEGA, DUE - same results.

Suggestions on how to proceed - please.

BTW - yes I did read the Adafruit SPI Fram breakout instructions. :)

LeeBurrow
 
Posts: 9
Joined: Thu Jan 31, 2019 6:14 pm

Re: Fram problems

by adafruit_support_carter on Wed Mar 10, 2021 3:25 pm

Please post a photo of your setup showing how everything is connected. Let's use the UNO for testing and troubleshooting.

adafruit_support_carter
 
Posts: 20374
Joined: Tue Nov 29, 2016 2:45 pm

Re: Fram problems

by LeeBurrow on Thu Mar 11, 2021 4:11 pm

Fram1.png
Fram1.png (650.92 KiB) Viewed 184 times


Photos as requested.

Please note that the FRAM is recognized and apparently can be read from (when running code samples from library) but unfortunately I cannot change any values.
Attachments
Fram2.png
Fram2.png (1000.7 KiB) Viewed 184 times

LeeBurrow
 
Posts: 9
Joined: Thu Jan 31, 2019 6:14 pm

Re: Fram problems

by adafruit_support_carter on Thu Mar 11, 2021 6:04 pm

Thanks. That looks OK. It sounds like maybe some of the write protection has been enabled. Is this a new board? Or have you already run some other sketches with it? If so, which ones?

adafruit_support_carter
 
Posts: 20374
Joined: Tue Nov 29, 2016 2:45 pm

Re: Fram problems

by LeeBurrow on Thu Mar 11, 2021 9:39 pm

I used the Framinfo example which appears to be working fine.

However when using the MB85RS64 example it always writes 0 for all Fram content.

Modified the MB85RS64 example to write specific values to several memory locations, however always shows 0 when retrieved.

FYI - I purchased several of these breakout boards so I replaced the board I was testing with another one and unfortunately got the same results.

LeeBurrow
 
Posts: 9
Joined: Thu Jan 31, 2019 6:14 pm

Re: Fram problems

by adafruit_support_carter on Mon Mar 15, 2021 3:05 pm

Modified the MB85RS64 example to write specific values to several memory locations, however always shows 0 when retrieved.

That's this one?
https://github.com/adafruit/Adafruit_FR ... 5RS64V.ino

Are the header pins soldered on the breakout in your photo above?

adafruit_support_carter
 
Posts: 20374
Joined: Tue Nov 29, 2016 2:45 pm

Re: Fram problems

by LeeBurrow on Mon Mar 15, 2021 3:11 pm

yes of course.

LeeBurrow
 
Posts: 9
Joined: Thu Jan 31, 2019 6:14 pm

Re: Fram problems

by hathach on Tue Mar 16, 2021 5:49 am

Hi, the current version requires sketch to pass the address size in bytes, since your FRAM size > 64 KB, it needs to be passed 3 bytes (default is 2). Please change the example to

Code: Select all | TOGGLE FULL SIZE
  if (fram.begin(3)) {
    Serial.println("Found SPI FRAM");
  }
 


We have updated the library to auto-detect and set the address size accordingly to the device JEDEC ID, will need a bit of review and release. The next version of the library will not need this modification any more simply `begin()` will work (FYI https://github.com/adafruit/Adafruit_FRAM_SPI/pull/18)

hathach
 
Posts: 1147
Joined: Tue Apr 23, 2013 1:02 am

Re: Fram problems

by LeeBurrow on Wed Mar 17, 2021 9:57 am

:)

Yup that fixed the problem. Works great.

Thanks

LeeBurrow
 
Posts: 9
Joined: Thu Jan 31, 2019 6:14 pm

Please be positive and constructive with your questions and comments.