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.

How to delete all files (format) from flash with sl_FsDel() on CC3200?

Other Parts Discussed in Thread: UNIFLASH, CC3200-LAUNCHXL

I've tried:

sl_FsDel(0,0);

sl_FsDel("",0);

sl_FsDel("/",0);

sl_FsDel("*",0);

sl_FsDel("/*",0);

I always get return value -11. I imagine there should some additional step to provide flash size as Uniflash does. Uniflash seems to successfully format the flash. I'm working on CC3200-LAUNCHXL Rev3.2 (with XCC3200HZ).

It should be possible right? Documentation for sl_FsDel() states: "delete specific file from a storage or all files from a storage (format)".

  • Hi,

    Format is not available on NVMEM APIs, only in Uniflash.

    It is possible to delete an existing file. You need to supply the exact filename and the token if the file is secured.

    The -11 error code indicates the filename you provided does not exist in the file system as there are no wild cards as you provided.

    Each file needs to be deleted separately.

    Regarding the documentation in the header file, it should be fixed.

    Regards,

    Shlomi

  • Hi,

    I have created a file named "demo.txt"
    Can you please provide the steps to delete this particular file using sl_FsDel() ??