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.

Compiler/CC3220SF-LAUNCHXL: Library for File System functions

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, CC3120

Tool/software: TI C/C++ Compiler

Hi,

I want to use a File System functions to save data when CC3220SF is disconnected form WiFi and transmit when it is connected again to WiFi.

I have refer the  SimpleLink CC3120/CC3220 Host Driver example in sl_FsOpen function, to create a file in Flash.

But it is giving an error: unresolved symbols sl_FsOpen, unresolved symbols sl_FsRead, and so on.

In order to remove this error which library should I include in linker.

  • Hi,

    Communication with serial flash is done via NWP (network coprocessor). This coprocessor also handle all WiFi communication. Communication with NWP is done via SimpleLink driver (APIs with prefix sl_). To be able use SimpleLink driver you need include "ti/drivers/net/wifi/simplelink.h". How to use file-system API is described here dev.ti.com/.../

    SimpleLink file-system (sFlash) is not intended for data-logging purpose. Serial flash have limited number of rewrite (about 100k write operations for 4kB sector). Intense rewriting of files will damage flash soon.

    Jan
  • Hi Sagar,

    In addition to the points brought up by Jan, the library that you need to link is the simplelink library. This library should be already included in the linker settings for most, if not all, of the SDK examples.
    The full path to the library is <SDK install dir>/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a
    I suggest you start your project by importing one of the examples that already have the SimpleLink libraries and host driver linked for you in order to save time and reduce the chance of bugs. This includes the serial_wifi example, the network_terminal example, or any example that deal with Wi-Fi functionality.

    Regards,
    Michael
  • Hi Jan & Michael,

    Thanks for reply, as it is not safe to use flash for data logging is there any other way to log data on board when WiFi is disconnected or if I have to connect any external device how could I do that.

    Sagar

  • Hi Sagar,

    In case you need non-volatile memory to store your data (usage of device RAM is not enough to you), you need to connect another data storage to you. Management of this storage will be up to you and your code.

    For example you can save data to memory chip (serial flash, EEPROM, FRAM) connected by SPI or I2C. Another option can be a SD card.

    Jan