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.

sl_start(0,0,0) does not return in example projects

Other Parts Discussed in Thread: EK-TM4C1294XL, CC3100

My setup: EK-TM4C1294XL Eval, CC3100, tirtos_tivac_2_14_00_10, tirtos_simplelink_2_14_03_28

The bare metal examples all work and I've written a bare metal http server for the CC3100 that connects to an access point using smartconfig. The access point was setup by adding it as a profile and setting to station mode. Now I want to move to TI-RTOS. The rtos examples for the CC3100 do not return from sl_start. What am I missing?

  • Hi Mark,

    Could you let me know which bar metal examples that are working that you are referring to?  Also, what TI-RTOS example are you running that does not return from sl_start()?

    Is there anything in this post that might be helpful:  

    Thanks,

       Janet

  • Is it necessary to install TI-RTOS for simplelink when using the CC3100? It appears Simplelink gets installed with the general TI-RTOS installation? I'm wondering if the rtos examples for the CC3100 would work had I not installed TI-RTOS for simplelink? Wondering if having both rtos's installed created the problem. I already tried uninstalling both rtos's and reinstalling the general rtos but this didn't solve the problem. Now i have a newer version of the general rtos. However I noticed nothing was removed when I went into windows explorer to see if the directories and files had been removed. I'm using CCS Version: 6.1.1.00022 with all the latest updates.

    Do I need to change any jumpers to make the CC3100 work with the rtos? Assuming if it works bare metal it will work with rtos?
  • Hi Mark,
    You shouldn't have needed to install TI-RTOS for simplelink. The SimpleLink software for CC3100 is included in TI-RTOS for TivaC. I doubt that having both TI-RTOS for Simplelink and TI-RTOS for TivaC would cause the problems you're seeing. What is the version of TI-RTOS for TivaC you are using now? There shouldn't be any jumper changes for the CC3100 to make it work with TI-RTOS.
    Can you try running one of the TI-RTOS CC3100 examples, such as tcpEchoCC3100?
    Thanks,
    Janet
  • I'm on this version of rtos now C:\TI\tirtos_tivac_2_14_04_31. What is the proper way to completely remove an rtos from CCS? I'm going into ccs->help->installation details and then uninstalling anything that says ti-rtos. Then I go into windows explorer and delete the TI RTOS directories. Would that clear it out or does more need to be done?

    As a last effort I want to get my system back to where it was before installing any rtos add-ons. As I understand from your last reply my setup should work which means simplelink for tivac rtos has been corrupted. Do you know why simplelink can't initialize? if (mode < 0) is unreachable. Code below was taken from sockets.c in tcpEchoCC3100 example. Thanks in advance.

    /*
    * ======== setStationMode ========
    * Sets the SimpleLink Wi-F in station mode and enables DHCP client
    */
    void setStationMode(void) {
    int mode;
    int response;
    unsigned char param;

    mode = sl_Start(0, 0, 0);
    if (mode < 0) {
    System_abort("Could not initialize SimpleLink Wi-Fi");
    }
  • Hi Mark,
    I remove installations of TI-RTOS by deleting the folder. You have to restart CCS, then.

    I recommend starting with the TI-RTOS tcpEchoCC3100 example for TivaC EK-TM4C129XL. Import and build that example. If that runs ok, then you can start modifying that for your TI-RTOS based app. If the tcpEchoCC3100 example is not working, I would first check the TI-RTOS getting started guide and make sure the hardware is set up correctly. I don't think there are any jumper changes needed, but you may need to add a USB cable to the CC3100 for power (see the GSG for setup).
    Thanks,
    Janet
  • Thanks Janet,

    The problem is solved. I was using BoosterPack 2. It says in the rtos getting started guide to use BoosterPack 1 :)
  • Ok, that is great news!
    Best regards,
    Janet