sosandroid / FRAM_MB85RC_I2C

Arduino library for I2C FRAM - Fujitsu MB85RC & Cypress FM24, CY15B
Other
56 stars 21 forks source link

How to use Wire1 #29

Closed Jim-bee closed 1 year ago

Jim-bee commented 2 years ago

I am trying to get the 128Kbit fuji fram working with your library but I am on Wire1 bus. In your library.cpp file I have tried to change Wire to Wire1 and WP pin from 13 to 21 but I still get Memory Chip NOT FOUND (write/read fails). I am using your simple_write_read example. Is there a way to use Wire1 with your library?

Starting... FRAM_MB85RC_I2C object created I2C device address 0x50 WP pin number 21 Write protect management: true Memory Chip NOT FOUND ...... ...... ...... 1st test Writing at location 0x25 Writing... Reading... Written value 0xBE Read value 0x0 Write Byte test : NOT OK .... .... Manufacturer 0xFFF DensityCode 0xF Density 0

sosandroid commented 2 years ago

Hello,

More details would help.

Dealing with wire1 sounds like using Due board. There's a lot of issues around this board with I2C not related with this library.

No ways for me to help on that as I am not able to test your setup. I do not have Due nor Fram available at this time.

JensGrabner commented 2 years ago

Google Search "Wire1 I2C" can help