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 IP Address problem

Other Parts Discussed in Thread: CC3200MOD, UNIFLASH, CC3200

Hi,

I wanted to set the CC3200MOD (launch pad) a static IP even though I knew it is a problematic issue.

so, via UniFlash I program what seemed to be OK.

BUT, when I entered the CCS and compiled and run the wlan_station program, the board started to blink its red led and no IP address was shawn on the Tera Terminal.

Evan when I set default values (dynamic IP address etc) to the module, and reset the board, still nothing.

So, what should I do? there's no ipconfig option, there's no cmd option. the module stuck in some state..

and if I'm talking of the subject- why it is that's hard (or better- impossible) to set the CC3200 with static IP?

Thanks

  • Hi,

    I use static IP with CC3200 without any issue. I set network parameters by sl_NetCfgSet() and use manual connection by sl_WlanConnect().


    Jan

  • Hi,

    thanks for your quick reply.

    I need a better explanation of how to do it in the actual code (wlan station, TCP or UDP socket)

    Thanks

  • Hi.

    I want to be more specific-

    I understood that is not a big deal to change the code in a way that the module could get its static IP address.

    I need to understand how to modify netcfg.h file and the main accordingly.

    Thanks.

  • Hi,

    Sorry, I don't understand. Why do you need change netcfg.h? How to set static IP address you find at Simplelink Host Driver documentation in SDK (see Netcfg->sl_NetCfgSet).

    From this documentation:

    // SL_IPV4_STA_P2P_CL_STATIC_ENABLE:
    //
    // Setting a static IP address to the device working in STA mode or P2P client.
    // The IP address will be stored in the FileSystem.
    // In order to disable the static IP and get the address assigned from DHCP one should use SL_STA_P2P_CL_IPV4_DHCP_SET
    
    SlNetCfgIpV4Args_t ipV4;
    ipV4.ipV4          = (_u32)SL_IPV4_VAL(192,168,2,10);            // _u32 IP address 
    ipV4.ipV4Mask      = (_u32)SL_IPV4_VAL(255,255,255,0);           // _u32 Subnet mask for this STA/P2P
    ipV4.ipV4Gateway   = (_u32)SL_IPV4_VAL(192,168,2,1);             // _u32 Default gateway address
    ipV4.ipV4DnsServer = (_u32)SL_IPV4_VAL(192,168,2,1);             // _u32 DNS server address
    
    sl_NetCfgSet(SL_IPV4_STA_P2P_CL_STATIC_ENABLE,IPCONFIG_MODE_ENABLE_IPV4,sizeof(SlNetCfgIpV4Args_t),(_u8 *)&ipV4); 
    sl_Stop(0);
    sl_Start(NULL,NULL,NULL);

    Jan