Hi Tim, There are two ways to access EEPROM on NuttX, one is using this character driver that you are using and the other is accessing it as a MTD.
I created a video tutorial some years ago explaining how to do it: https://www.youtube.com/watch?v=qzjf2JtgYN0 Keep in mind that using MTD with I2C EEPROM is tooo sloooowwww! Using the character driver you need to take care of the EEPROM manually, reading/writing to it like it was a binary file. BR, Alan On 5/25/23, Sebastien Lorquet <sebast...@lorquet.fr> wrote: > Hi, > > This eeprom is not an mtd device, it is too small for any filesystem, > usually. So it's just a character device that makes the eeprom appear as a > fixed size file. > > If you need an eeprom mtd, the driver could be extended to make it behave as > a mtd device. > > Sebastien > > Le 25 mai 2023 16:35:00 UTC, Tim Hardisty <t...@hardisty.co.uk> a écrit : >>Could have sworn I had this working a year or 2 ago but it's stumped me >> today... >> >>I have an SPI EEPROM device on my board, and use "ee25xx_initialize" to >> register it as /dev/at25. That works fine. >> >>But I can't do anything with it. >> >>Unlike at25_initialize, the ee25xx_initialize doesn't return mtd_dev_s, >> just a success/fail, so I can't then use an FTL etc to allow me to mount >> it in anyway. >> >>How can I get this device mounted with some form of FS on it so I can >> read/write config data to it? >> >>Perhaps FTL isn't the way to go; if so, I've forgotten what is! > > -- > Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma > brièveté.