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: Fat_SD example details - How to use the flash?

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

Hello,

Still working with the CC3220SF launchpad and I have now moved on to the use of the flash. 

There are some things that I don't understand, and I hope that someone might make those following things a little bit clearer :) 

The CC3220MODSF (the MCU) has, integrated, a flash memory of 1MB that it uses by itself (executes code to "free" the RAM --> only does R/W of data). Correct? 

The CC3220MODSF has FLASH_SPI ports that can be used to connect it to another, external, flash memory. On the Lauchpad, it is done and that flash memory is the component named "U8" (MX25R3235). I'm not sure this one is correct because for the fatsd sample application, is it specified, in the README, that an external booster pack is required in order for it to work properly. What i don't understand is what is therefore the use of U8? Is this not an external flash connected to the SPI flash that can be used by the user to read from/write onto it? 

Thanks in advance to anyone who can clarify this for me! :) 

Best regards,

Kateline 

  • Hi Kateline,

    Please see the following document: section 8 File System for additional details that should answer your question above.

  • Hi, 

    From the first sentence of the document: 

    "The SimpleLink Wi-Fi device maintains a nonvolatile file system which stores the data on an external serial flash (through SPI)"

    Is that external flash the "SF" in the CC3220SF? 

    Is the MX25R323... (on the launchpad) this external flash? 

    Sorry but i'm still confused about this ^^

    Thanks for your help,

    Best regards,

    Kateline 

  • Hi Kateline,

    External flash (like MX25xx on LaunchPad) is mandatory for functionality of CC32xx/C31xx devices. Inside this flash memory stores network processor own configuration and temporary files, etc. Using SimpleLink filesystem API you can store here also your files by your firmware. Internal flash (in SF) is used for code execution.

    Jan
  • Hello Jan,
    Thank you for your answer!
    So, last question i hope, if i want, in my application, write to a memory, i will write to the M25xx-like flash of my design via the FLASH_SPI_XX pins of the CC3220SF?
    Best regards,
    Kateline
  • Hi Kateline,

    For read/write from sFlash (external) you will use Filesystem API only. This flash is formatted to TI proprietary filesystem. Filesystem API are described at www.ti.com/.../swru455 chapter 8. Because communication with sFlash is done via network processor, NWP need to be enabled during communication with this memory /sl_Start()/.

    SFlash is connected to FLASH_SPI_ pins on CC3220 QFN package.

    Jan
  • Hi Jan,
    Thanks for your answer,
    Things are a little bit clearer now. 

    So if the fatsd example doesn't work, it may be because the NWP is not enabled in it? 

    Otherwhise, i should be able to read/write to/from the MX25r... of the launchpad with the API? 

    Thanks again,

    Kateline 

  • Hi Kateline,

    Yes, please ensure the NWP is enabled.
  • Hi Austin,

    I have some coding/linking problems.

    In order to use sl_Start() in the fatsd sample application, I added in the File Search Path the /ti/source/drivers/net/wifi/ccs/rtos/simplelink.a library but i get unresolved symbol errors:

    unresolved symbol SimpleLinkFatalErrorEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_1_40_00_03/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a<eventreg.obj> fatsd_CC3220S_LAUNCHXL_tirtos_ccs C/C++ Problem
    unresolved symbol SimpleLinkGeneralEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_1_40_00_03/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a<eventreg.obj> fatsd_CC3220S_LAUNCHXL_tirtos_ccs C/C++ Problem
    unresolved symbol SimpleLinkHttpServerEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_1_40_00_03/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a<eventreg.obj> fatsd_CC3220S_LAUNCHXL_tirtos_ccs C/C++ Problem
    unresolved symbol SimpleLinkNetAppEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_1_40_00_03/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a<eventreg.obj> fatsd_CC3220S_LAUNCHXL_tirtos_ccs C/C++ Problem
    unresolved symbol SimpleLinkNetAppRequestEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_1_40_00_03/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a<eventreg.obj> fatsd_CC3220S_LAUNCHXL_tirtos_ccs C/C++ Problem
    unresolved symbol SimpleLinkNetAppRequestMemFreeEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_1_40_00_03/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a<eventreg.obj> fatsd_CC3220S_LAUNCHXL_tirtos_ccs C/C++ Problem
    unresolved symbol SimpleLinkSockEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_1_40_00_03/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a<eventreg.obj> fatsd_CC3220S_LAUNCHXL_tirtos_ccs C/C++ Problem
    unresolved symbol SimpleLinkWlanEventHandler, first referenced in C:/ti/simplelink_cc32xx_sdk_1_40_00_03/source/ti/drivers/net/wifi/ccs/rtos/simplelink.a<eventreg.obj> fatsd_CC3220S_LAUNCHXL_tirtos_ccs C/C++ Problem

    Do i need to add another library/path in order to get access to the device.h file? 

    Thanks in advance,

    Best regards,

    Kateline 

  • Any help?

    Thanks,

    Kateline 

  • UPDATE:
    I have successfully added sl_start to the original project code and the NWP seems to be starting alright.
    I can see that the "Drive 0 is mounted" but next: "error creating fat:0:intput.txt".

    Is it because i use SPI_init(); function to initialise the NWP and SDSPI_init for the SD card in the same code?
    The CC3220 has 2 different SPI ports right? (Meaning the NWP can use it for its networking stuff and i can use another one to access the SD Card?)

    Any help appreciated,
    Thanks in advance,
    Kateline