FRAM FM25L16B linux driver

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
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
1 Solution
ShivendraSingh
Employee
Employee
25 solutions authored 50 replies posted 10 solutions authored

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
2 Replies
ShivendraSingh
Employee
Employee
25 solutions authored 50 replies posted 10 solutions authored

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

0 Likes
Anonymous
Not applicable

I got it.

Thank you very much.

0 Likes