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-LAUNCHXL

Other Parts Discussed in Thread: CC3200SDK, UNIFLASH, CC3200

Dear all,

I have the pre-production LAUNCHPAD with XC3200HZ.

CCS Version: 6.1.0.00104 

ARM Compiler Tools: 5.2.3

SDK version: CC3200SDK_1.1.0 

UniFlash version : 3.2.0.00123 

projects cmd file: cc3200v1p32.cmd

I did the following:

1. Formatted the flash using1MB option with UniFlash

2. Updated Service Pack binary.

3. Imported the projects as described in getting started guide, Jumper setting set to SWD programming.

4. flashed the wlan_station project binary. Also, opened COM port, it show the following:

got the error message "Cortex_M4_0: Trouble Reading Memory Block at 0x20030008 on Page 0 of Length 0x4: Debug Port error occurred"

I can't see the full output as described in the Getting started guide for launchpad. 

Also, If I press RESET button, this application is not running ( I'm afraid i might formatted bootloader ?).

Any idea how I can run the sdk samples ?

Should I have to Program the configuration to the launchpad using UniFlash ? If yes, could anyone upload the necessary .usf file?

Thanks in advance

  • Moving to SimpleLink™ WiFi CC31xx/CC32xx Forum
  • Hi Hari,

    Can you please place the jumper on SOP2 position, and flash the binary using flash?
    To run the application, please remove the SOP2 jumper and press the reset button.

    Regards,
    Raghavendra
  • Dear Raghavendra,

    1. I flashed the wlan_station.bin using (with SOP2)

    2. Removed SOP2, reset the board. Now, the application binary starts properly. But, output is same as before ( refer to the putty screenshot in my first post). 

    Please find the UniFlash session file along with the wlan_station.bin file.

    TIuniflash.zip

    Thank you

  • Hi Hari,

    Did you give the correct AP credentials in the common.h file?

    Regards,
    Raghavendra
  • The following are modified in common.h

    #define SSID_NAME                "celetra_cc3200_ap" /* AP SSID */
    #define SECURITY_TYPE       SL_SEC_TYPE_WPA/* Security type (OPEN or WEP or WPA*/
    #define SECURITY_KEY        "cel12345" /* Password of the secured AP */
    #define SSID_LEN_MAX         32
    #define BSSID_LEN_MAX       6

    Is the session file ok ? I doubt it. Also, I did not modify/browsed the following after I created Test.usf session file.

    /sys/ca.pem
    /sys/client.pem
    /sys/private.key

    Thank you

  • Hi Hari,

    The image works fine with the above credentials for me. The device connects and pings the default gateway.
    Can you please verify the AP credentials again? Can you please try with a different AP?

    Regards,
    Raghavendra
  • Dear Raghavendra,

    I changed the AP credentials as below, tried 3 different security types.

    #define SSID_NAME                "cc3200demo" /* AP SSID */
    #define SECURITY_TYPE       SL_SEC_TYPE_WPA/* Security type (OPEN or WEP or WPA*/
    #define SECURITY_KEY        "1234" /* Password of the secured AP */
    #define SSID_LEN_MAX        32
    #define BSSID_LEN_MAX     6

    #define SSID_NAME                "cc3200demo" /* AP SSID */
    #define SECURITY_TYPE       SL_SEC_TYPE_OPEN /* Security type (OPEN or WEP or WPA*/
    #define SECURITY_KEY        "" /* Password of the secured AP */
    #define SSID_LEN_MAX        32
    #define BSSID_LEN_MAX     6

    #define SSID_NAME                "cc3200demo" /* AP SSID */
    #define SECURITY_TYPE       SL_SEC_TYPE_WEP /* Security type (OPEN or WEP or WPA*/
    #define SECURITY_KEY        "1234" /* Password of the secured AP */
    #define SSID_LEN_MAX        32
    #define BSSID_LEN_MAX     6

    Also, changed the station MAC address to ba:98:f7:13:49:27

    Output is same, no progress has been made. But, when I used security type WEP, I see the following.

    Currently in the UniFlash, I use Station Addressing Scheme: Dynamic. Do I have to use the static IP option ?

    Please see the Session file and binary for all of the above AP credentials. 

    TIuniflash_25th_March.zip


    Will you please send your UniFlash session file and compiled binary of wlan_station for me, so that I will find out anything wrong with tools on my side ?

    It's almost a week, couldn't be able to see the demo working, bit frustrated.

    Thanks for your followup.

  • The 3 AP details you set at common.h seems to be not your AP details, so obviously it will not connect.

    From your earlier reply, is celetra_cc3200_ap really the name of your wifi connection?

    - kel
  • Dear Markel,

    Thanks for the reply. You are right, I was giving wrong AP credentials. 

    The security of my my WiFi router is WPA2PSK. I have changed the common.h to the following  

    #define SSID_NAME                "celetra_2nd"
    #SECURITY_TYPE                   SL_SEC_TYPE_WPA   /* or    SL_SEC_TYPE_WPA_WPA2 */
    #define SECURITY_KEY        "celetra123"

    With Session file Station Addressing Scheme: Staic or Dynamic, now, I see the following output:

    But, it is not showing as described in Getting started guide, which says, I should see something similar to the following.

    I can't see the Launchpad Mac Address ( ba:98:f7:13:49:27) in the connected wifi devices list of my WiFi router settings.

    Seems, Launchpad is unable to ping ! what could be the issue ?
    In case of Static IP, my IP details for Session file are:

    Thank you.

  • Hi Hari,

    Looks like the IP address was not acquired. How are you setting the static IP for the device?

    Regards,
    Raghavendra
  • Dear Raghavendra,

    Please have a look at the screenshot below.

    Also, Here is my WiFi router details ( also shows the connected devices).

    The launchpad is not there in the list of connected wifi devices.

    One more interesting this I see is the MAC address of the Router (BSSID) printed in the terminal as 0:26:66:f3:9c:4, but actually it is 00:26:66:f3:9c:05

    I also see the following log in the terminal sometimes after reset.

    ah, still I couldn't see it working..

    Thank you

  • Hi Hari,

    Can you please try it with the sample application from the SDK? So that you can debug with either CCS/IAR and get some idea as to where this stops.

    Regards,
    Raghavendra
  • Dear Raghavendra,

    It is stuck in the while loop in WlanConnect() function.
    Never comes out.

    Thank you
  • Hi Hari,

    Is CC3200 getting the connection complete event? Or is it stuck waiting for the IP acquired event?
    Can you please put a break point in 'SimpleLinkWlanEventHandler' for 'SL_WLAN_CONNECT_EVENT' event and in SimpleLinkNetAppEventHandler for the event 'SL_NETAPP_IPV4_IPACQUIRED_EVENT' and check?

    Regards,
    Raghavendra
  • Dear Raghavendra,

    This SL_WLAN_CONNECT_EVENT is working.

    But, SimpleLinkNetAppEventHandler never triggers.

    I'm using both CCS and IAR. The problem is same.

    Thank you

  • Hi Hari,


    Can you please try with other AP or hotspot?


    Regards,
    Aashish
  • Dear Avinash,

    I tried with other AP, same problem. I'm fed up with this & ordered new launchpads to check if there is any HW problem.

    Meanwhile, here is my session file for Uniflash.

    UniflashSessionFile.zip

    Please check in detail if I'm doing anything wrong. Also, here is my computer network details which is connected to the same AP.

    I tried with both Static & Dynamic addressing Scheme. 

    Thank you

  • Hi Hari,


    As Ragvendra suggested in previous post, please don't use uniflash session file. Please follow below steps to debug the issue:
    1. Open uniflash and select new configuration
    2. Format the device as non-secure
    3. Update service pack only
    4. Open original wlan_station project from SDK in IAR/CCS
    5. Modify common\config.h for AP details
    6. Run the application



    Regards,
    Aashish
  • Dear Avinash,

    Thank you. But still same problem.

  • Hi Hari,


    Can you make sure DHCP is enable at router side. Also can you please tell us which router you are using.


    Regards,
    Aashish
  • Dear Avinash,

    Thank you so much. It was DHCP problem ( DHCP was disabled in router settings).

    I'm using ipTime router. 

    How can i use static scheme in case DHCP stopped case ?

    I will run all the sample codes & get back if any problems.

    Have a good day.

  • Hi Hari,

    For static IP, please use below code snippet before wlan_connect


    SlNetCfgIpV4Args_t ipV4; ipV4.ipV4 = (unsigned long)SL_IPV4_VAL(192,168,1,10); // _u32 IP address ipV4.ipV4Mask = (unsigned long)SL_IPV4_VAL(255,255,255,0); // _u32 Subnet mask for this STA/P2P ipV4.ipV4Gateway = (unsigned long)SL_IPV4_VAL(192,168,1,1); // _u32 Default gateway address ipV4.ipV4DnsServer = (unsigned long)SL_IPV4_VAL(192,168,1,1); // _u32 DNS server address sl_NetCfgSet(SL_IPV4_STA_P2P_CL_STATIC_ENABLE, IPCONFIG_MODE_ENABLE_IPV4,sizeof(SlNetCfgIpV4Args_t),(unsigned char *)&ipV4);


    Regards,

    Aashish