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.

CC3220SF-LAUNCHXL: SFlash Address Selection

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

Hi!

I am currently working on a project to create an application with the CC3220SF Launchpad in which I'd like to have some data stored in the SFLASH connected by SPI to the CC3220SF to then use it on a web server. I have been able to edit the Out of the Box example to store data in the SFLASH to later on, have access to it. However, I'm facing issues finding information on how to permanently store data inside the SFLASH without it being erased when flashing a new program image when updating my program.

I'm currently loading my program image using CCS and reading this document (link here), I cannot find anywhere the information I'm seeking.

Could anyone provide some information about this topic? Is it possible to perform the flashing on part of the SFLASH by selecting the "areas" to overwrite? If it is not possible to do so, how would you suggest to store data even after flashing?

Also, I have read documentation about the sl_Fs*() APIs (link here) and I cannot find anywhere information on how to manually select an address inside the SFLASH to create a file. Is it only possible to automatically append the files one after another?

In my case, I have a some .js files which have the highest memory addresses when stored in the SFLASH and the files created with sl_Open() are created right after. Can I somehow select the "where" in the SFLASH?

Cheers!

  • Hi,

    If you want to save permanent data which will survive programming sFlash, you need to connect another storage like EEPROM, SD card, etc. There no API to manage position at sFlash when filesystem API is used.

    Jan

  • Hi again,

    I am wondering if I could then use the API for an external SFLASH because none of the parameters for the functions accept a different comms port of the CC3220SF. I'm trying to understand the code for the sl_FsOpen function but I'm not sure about modifying code in some files suchs as driver.c in the simplelink library.

  • Hi,

    No. You cannot use sl_ filesystem API for access into another flash storage. Because sl_ filesytem API does not write content directly into SPI flash. This API sends commands to NWP (WiFi coprocessor) which manage sl_ filesystem.

    If you want to use secondary storage, you need to manage them by yourself. Reading / writing into EEPROM, SD card or SPI flash is relatively easy task. If you want to something more sophisticated, you can use 3rd party libraries like fatfs or spifs above your storage. CC32xx SDK contains examples for working with SD card.

    Jan