Does TI have any documentation or code examples about creating, writing to, reading from, and deleting files on external FRAM? That would be FRAM interfaced with the MSP430 through I2C or SPI.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Does TI have any documentation or code examples about creating, writing to, reading from, and deleting files on external FRAM? That would be FRAM interfaced with the MSP430 through I2C or SPI.
Hi Thomas,
It seems like you would like to implement a file system backed by an external I2C (or SPI) FRAM. As far as I know TI doesn't have any official resource for this.
You may be able to make some use out of the OutOfBox example for FR5994. It implements a FAT16 file system on an SD card. It isn't exactly what you want but it may be a good starting point. You can find it here:
https://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP-EXP430FR5994/latest/index_FDS.html
Regards,
Evan
Frankly, unless there is a pressing need, I would not use files - with all the overhead that that implies - I would just set aside areas in the FRAM and just save the data. After all, unlike an SD card, you can't copy or share files, anyway.
That question comes from my ignorance about how to write code for using any type of external storage for the MSP430, so that was a starting point for me, since that would be a powerful method. Now I'm going to narrow the question down. If I wanted to write a megabyte of temperature logging data onto external FRAM which is connected through I2C or SPI, does TI have any documentation or code examples for that?
P.S. I'm aware of the SD Card example you have, but I haven't studied it yet.
I'm going to make guess that is based on intuition. My guess, in the I2C context, is that my code has to create a data packet which contains the address to the external FRAM device, an address in the external FRAM's address space, a bit which tells the device to read or write data, then my eight or sixteen bit data, and then send the packet through the microcontroller's I2C interface.
Pretty much. Some devices may let you continuously send data bytes once all the addressing is taken care of and increment addresses along the way.
**Attention** This is a public forum