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.

CC3120: How to port the CC3120 host driver on non-MSP MCU running RTOS?

Part Number: CC3120

Hi,

    I think it might be a silly question to ask "How to port CC3120 host driver?". Since it's my first time to use TI's SimpleLink Wi-Fi solution, I don't wish to go to the run way.

    The host processor of our device is one SPARC V8 MCU running on simple RTOS, and the MCU connects to the CC3120 chip through the SPI interface. By checking the swru455e document, chapter 16 mentions the simple steps for the porting process. I had also downloaded the "simplelink_sdk_wifi_plugin_1_60_00_07" package for reference.

    For the first 6 steps, I think I could make it by modifying the user.h, cc_pal.c, and cc_pal.h files under the source/ti/drivers/net/wifi/porting folder to fit into our platform. The sync objects and locking objects mentioned in step 7 should be supported by the semaphore and mutex of the simple RTOS we use. The Timestamp functions mentioned in step 8 might also be implemented by the RTOS's timer function. The event handler routines mentioned in 16.9 should be implemented in my host applications, and I have to take care of this.

    Since I only studies the CC3120's Programmer guide and searched some related threads in the forum, I am wondering whether I do miss anythings. Please give me some comments on how to port the host driver correctly.

    By the way, what kind of source codes provided in the "simplelink_sdk_wifi_plugin_1_60_00_07" package should be included in my project to complete the host driver function? Are all the codes under the source/ti folder? Or the codes under the source/ti/drivers folder?

    Thanks.

            Todd

  • Hi Todd,

    Cant think of anything besides source in /source/ti/drivers/net/wifi/
    and of course you implementations of SPI/GPIO/timer etc.

    -Aaron
  • Hi Aaron,

    Thanks for your feedback.

    You mentioned that the source codes in /source/ti/drivers/net/wifi is enough to complete the host driver implementation. There are three folders named ccs, gcc, and iar in both of the /source/ti/drivers/net/wifi and /source/ti/drivers/net/wifi/slnetif folders. I think these folders should be for MSP MCUs. Please correct me if I am wrong. Can I remove these folders from the host driver implementation?

    By the way, are those codes in /source/ti/drivers/net folder used for CC3120's socket function?

    Besides, swru455e chapter 7 mentions the File System to let the host driver access(open, read, write) the external FLASH using the sl_Fsxx APIs. I am somewhat confused about this feature. I think the binary image flashed into the external FLASH is a BIN file. However, the sl_Fsxx APIs seems to modify part of the BIN file, like add or delete a profile. Does it mean that the whole BIN file is partitioned into several partitions?

    Thanks.

    Todd