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.

MSP430F5529: Turning into MSC with ability to send command through text files

Part Number: MSP430F5529

Hello,

I am looking into the possibility of turning the MSP430 into an MSC device and allowing it to read the text files stored in the drive (ie. having the device read a file to indicate whether the LED is on or not).

I downloaded the #M1_FileSystemEmulation example code and tried it with the MSP430F5529 LaunchPad Development Kit, and as expected, the device is able to turn into an MSC, with a text file that I can edit.

What would I need to do if I want to create a text file in the drive that i can modify to turn on/off one of the LEDs on the LaunchPad?

Thanks,

Jiashow

  • Hello Jiashow,

    Now that you've emulated a FAT file system, you will need to modify the process interface to poll the contents of a specific file from the FatFs and modify the GPIOs accordingly. Please refer to the ff.c file of the FatFs folder for functions regarding directory and file access. The generic FatFs website will also be a good reference: elm-chan.org/.../00index_e.html

    Regards,
    Ryan

**Attention** This is a public forum