cancel
Showing results for 
Search instead for 
Did you mean: 

Non Volatile RAM (F-RAM & NVSRAM)

Anonymous
Not applicable

do you have FRAM FM25L16B linux driver?

if no, can I use the suggestion at here:   F-RAM Support under Linux – KBA223028​   ?

How can I use it? it seems that it's different: there is no device ID in FM25L16B.

any more suggestions?

Thanks

----

I use FRAM FM25L16B in raspberry pi 3.

I want to know where I can get the driver and

Do I need modify (or add)  the device tree ?

Thank you very much for your  reply

0 Likes
Reply
1 Solution
Employee

Hi,

The nor flash driver discussed in KBA223028 supports only 4B/3B addressing, so it wont be compatible with FM25L16B device. I would suggest using the EEPROM driver instead which is available at the following link.   

linux/at25.c at master · torvalds/linux · GitHub https://github.com/torvalds/linux/blob/master/drivers/misc/eeprom/at25.c

You need to change the address length at line 55 to "2".

#define EE_MAXADDRLEN 2

I hope this helps.

Regards,

Shivendra

View solution in original post

0 Likes
Reply
2 Replies
Employee

Hi,

The nor flash driver discussed in KBA223028 supports only 4B/3B addressing, so it wont be compatible with FM25L16B device. I would suggest using the EEPROM driver instead which is available at the following link.   

linux/at25.c at master · torvalds/linux · GitHub https://github.com/torvalds/linux/blob/master/drivers/misc/eeprom/at25.c

You need to change the address length at line 55 to "2".

#define EE_MAXADDRLEN 2

I hope this helps.

Regards,

Shivendra

View solution in original post

0 Likes
Reply
Anonymous
Not applicable

I got it.

Thank you very much.

0 Likes
Reply