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.

CC3200 Launchpad Getting Started - WLAN Station Example

Other Parts Discussed in Thread: CC3200, UNIFLASH, CC3200SDK

Hi, I've managed to get CSS 6.0.0 and drivers set up (Windows 7) and got to the point of successfully building and uploading the wlan_station example following the "CC3200 SimpleLink™ Wi-Fi® and IoT Solution With MCU LaunchPad™ Getting Started Guide User's Guide." Now I'm trying to figure out how to tell whether or not it's working. I got to this site that suggests I should be able to get a console using a terminal program like TeraTerm @ 115200 baud, cool!

So I hit stop in CCS, then I fired up TeraTerm on the CC3200LP Dual Port COM port at 115200, then I hit the reset button (SW1) and I get... nothing. The Green (D5) and Orange (D6) LEDs are illuminated. Next thing I tried was having TeraTerm open, clicking Debug in CCS and then clicking Resume. In that case I get the banner on TeraTerm, but nothing else.

*************************************************
CC3200 WLAN STATION Application
*************************************************

Stepping through the code I find that it reaches Line 128 of device.c and never returns from it.

OSI_RET_OK_CHECK(sl_SyncObjWait(&g_pCB->ObjPool[pObjIdx].SyncObj, SL_OS_WAIT_FOREVER));

Please can someone help me understand what's going on here? Why does it behave differently with and without the debug session attached? Why do I never get to the expected prinouts under any circumstances? I feel like I'm just trying to get to "hello world" so far here. Am I missing some important documentation?

  • Hi Victor,

    It sounds like you may have a few issues.

    The first issue is related to the architecture of the CC3200 LaunchPad. Basically, when you are using CCS to debug your code, once you hit the reset button (SW1) the code will no longer run on the CC3200 as it has been lost. Using CCS just loads the code into volatile RAM memory on the CC3200 MCU, if you want to ensure that your device boots up with your code, then you will need to use the CC3X00 version on UniFlash to flash the external SFlash on the CC3200 LaunchPad. You can find this tool at the following location - http://processors.wiki.ti.com/index.php/CCS_UniFlash_-_CC3100/CC3200_Edition

    Regarding the second issue, have you made the appropriate changes to the #defines, as outlined in the documentation

    #define SSID_NAME             "cc3200demo"
    #define SECURITY_TYPE     SL_SEC_TYPE_OPEN
    #define SECURITY_KEY       ""

    or 

    #define SSID_NAME               "YOURSSID"
    #define SECURITY_TYPE       SL_SEC_TYPE_WPA
    #define SECURITY_KEY         "YOURPASSCODE"

    Glenn.

  • Glenn,

    Thanks for clarification regarding UniFlash. Regarding the second issue, yes I had changed the defines:

    #define SSID_NAME "MYSSIDNAME"
    #define SECURITY_TYPE SL_SEC_TYPE_WPA
    #define SECURITY_KEY "MYSSIDKEY"

    I'll try using UniFlash to load the binary, but surely it should work equivalently using CCS in Debug mode, right?

  • Victor,

    Yes you need UniFlash to program the MCU binary.

    While you are debugging using CCS, Did you put SOP-2 Jumper on Launch Pad as mentioned in cc3200-sdk\docs\CC3200-Getting_Started_Guide.pdf Section 2.2

    Regards,

    Kaushal

  • Kaushal, 

    Yes the jumpers were already in the highlighted positions out of the box. Although I can't tell what P58-VCC refers to, if I understand the silk screen markings correctly, the jumper configuration depicted in Section 2.2 represents 2W SWD mode, right?

  • Kaushal,

    So I'm reading http://processors.wiki.ti.com/index.php/CC31xx_%26_CC32xx_UniFlash_Quick_Start_Guide to figure out how to use UniFlash and it seems quite complicated, and I'm a little worried about bricking my LaunchPad if I do something wrong. 

    I presume (read that as "I'm wildly guessing") that all I should need to do is:

    1. Select the "sys/mcuimg.bin" 
    2. Browse to C:\ti\CC3200SDK\cc3200-sdk\example\getting_started_with_wlan_station\ccs\Release and select the wlan_station.out file
    3. Check the boxes for Erase, Update, and Verify
    4. Then choose Operation => Program

    Is that right? Any pitfalls I should know about? I assume that as I learn more about the CC3200 I'll understand what all these other files in UniFlash represent (e.g. /cert/ca.pem, /cert/client.pem, /cert/private.key, /tmp/pac.bin, /sys/macadd.bin) and what all these Mode checkboxes are about.

  • Victor Aprea said:

    Yes the jumpers were already in the highlighted positions out of the box. Although I can't tell what P58-VCC refers to, if I understand the silk screen markings correctly, the jumper configuration depicted in Section 2.2 represents 2W SWD mode, right?

    Victor,

    You will need to remove the P58-VCC jumper when you want to use Station Mode. This jumper is used to place the CC3200 into AP mode. See the green oval in the image below.

    Make sure the the SOP2 jumper is present, as this allows flashing the SFlash. See the blue oval in the image below.

    Glenn.

  • Victor Aprea said:

    Thanks for clarification regarding UniFlash. Regarding the second issue, yes I had changed the defines:

    #define SSID_NAME "MYSSIDNAME"
    #define SECURITY_TYPE SL_SEC_TYPE_WPA
    #define SECURITY_KEY "MYSSIDKEY"

    I'll try using UniFlash to load the binary, but surely it should work equivalently using CCS in Debug mode, right?

    I had issues till I began using the updated version of this example that comes with the CC3200 SDK v0.5.2

    You can obtain the latest version from here - http://www.ti.com/tool/cc3200sdk

    While you are on this page, I also recommend you download and install the latest service pack (as this may have been what resolved my issues), details on how to perform this can be found here - http://processors.wiki.ti.com/index.php/CC31xx_%26_CC32xx_UniFlash#Service_Pack_Programing

    Glenn.

  • Victor,

    Regarding the use of UniFlash and programming the SFlash, your steps looks good, except you need to select the bin file and not the out file, here are the steps in detail:-

    1. Make sure the SOP2 jumper is present
    2. Select the "sys/mcuimg.bin" 
    3. Browse to C:\ti\CC3200SDK\cc3200-sdk\example\getting_started_with_wlan_station\ccs\Release and select the wlan_station.bin file
    4. Check the boxes for Erase, Update, and Verify
    5. Then choose Operation => Program
    6. Then hit the Reset button on the CC3200 LP when asked by UniFlash
    7. To run the program now stored on the SFlash, remove the SOP2 jumper.

    Additional details on using UniFlash can be found at the following locations http://processors.wiki.ti.com/index.php/CC31xx_%26_CC32xx_UniFlash_Quick_Start_Guide#CC32xx_MCU_image_flashing_2 and  http://processors.wiki.ti.com/index.php/CC31xx_%26_CC32xx_UniFlash 

    Regarding the files, the first 3 are certificates. The macadd.bin file is for flashing the MAC address, more details in the link provided above. I am not sure what pac.bin is...

    Glenn.

  • Here is an actual picture of my launchpad. Is there something about the jumpers that would prevent the WLAN Station example from working in debug mode?

  • The jumpers look correct for when debugging. 

    Have you had a chance to try my other suggestions? That is the updated service pack and updated example.

    Glenn.

  • Hi Victor,

    I have just noticed something from your image. You have an earlier version of the CC3200 LaunchPad, Rev 3.1. There are some issues with this version, which have been reported in this forum, the latest is Rev 3.2, which is what I am using and which you can obtain from the TI eStore.

    Glenn.

  • Good afternoon,


    I have the Rev 3.2, I installed the SDK and Service Pack before use the launchpad, I'm using the same jumper configuration that Victor sent above and I'm with the same problem. I'm using the CCS v6, I follow the Getting Started Guide and I can't do the leds turn on.

    I already try with a open network and nothing. What do you suggest?

    Best regards,

    F.A.Stock

    Getting
    Started
    Guide
  • Hello,

    I have the Rev 3.1 and  follow the same steps that F.A Stock done. Unfortnately, I have the same problem and cant do the leds turn on.

    What do you suggest?

     

    Best Regards,

    Ebru

  • I have encountered many of the same problems. I was able to run the Hello World project by following the instruction in the CCSv6 Fundamentals Workshop for CC3200. I can run the Blinky project but I frequently encounter "Cortex_M4_0: Debug Port error occured". Occasionally, the project will execute from the debug mode in CSS without the port error occuring, but most of the time I get the error. I have installed the CC32xx service pack with Uniflash and have the jumper on SOP2, as shown in the above photos. I started out trying to get the WLAN station project running, but stepped back to Blinky to see if I could get something simpler to run on the CC3200 Launchpad before trying to do some socket programming on the board. Any help with getting rid of the port errors would be appreciated. On occasion, I'm able to set breakpoints, expressions, etc in debug for Blinky but most of the time I just get a bunch of port errors. I'd like to get those problems resolved before moving on to socket programming on the board. Thanks
  • I was able to get the wlan_station running from CCS, but I had to deviate from the instructions shown on pages 15-16 of the CC3200 SimpleLink WiFi and IoT Solution With MCU LanchPad Getting Started Guide” (User’s Guide).  In setting up the target configuration instead of importing CC320.ccxml from c:\TI\CC3200SDK\cc3200-sdk\tolls\[css_patch]” as shown on page 15 of the User’s Guide, I set up a target configuration for the project by right-clicking on the project and then selecting New -> Target Configuration File in the context menu and then specifying:  Connection: Stellaris In-Circuit Debug Interface and Board or Device: CC320.   (See slides 29-30 of the Lab Handbook for the CCSv6 Fundamentals Workshop for CC3200 on the steps for doing this.)

    Unfortunately, I am still getting Port Errors when I try to debug the project, but after a couple of attempts I could get the appropriate console output on a PUTTY com.  Putty had to be set using the appropriate COM port using a baud rate of 115200.

    Wlan_station works most of the time, but I’m still getting numerous errors on the CSS console like the following:

    Cortex_M4_0: Can't Run Target CPU: Debug Port error occurred.

    Cortex_M4_0: Error: Debug Port error occurred.

     

    I would appreciate any advice on getting rid of the port errors.

  • Note: in photo J2, J3, and J4 not connected.... program will just spin on I/O error with these Jumper pins not connected. For the Out of the Box main code. need jumpers for code to run right!