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.

AP例程异常

Other Parts Discussed in Thread: CC3200

大家好! 本人新做PCB+全新CC3200,下载其他程序(非wifi类)都正常,但是下载AP或者STA例程后不断的初始化,故障如下一直显示

*************************************************
CC3200 WLAN AP Application
*************************************************

*************************************************
CC3200 WLAN AP Application
*************************************************

*************************************************
CC3200 WLAN AP Application
*************************************************

请问是什么原因,感觉不像是硬件问题,service 和SDK 用过1.2和1.3版本都不行

  • 有没有人能帮忙解决
  • 能详细说明下您的实验流程吗?您可以先看一下 processors.wiki.ti.com/.../CC3200_Getting_Started_with_WLAN_AP
  • 我用的是官方的demo,只是pcb和cc3200新的,谢谢,其他都正常涉及到网络的才异常
  • 就这一行吗?有没有返回什么报错信息?
  • 没有 串口一直重复显示这个信息,我网上看了很多人有这个问题,就是没有人给出解决措施
  • 你去debug不可能没有报错信息。下面这个如果正常会有显示,不正常也会有显示,你看一下卡在哪里了。

    void WlanAPMode( void *pvParameters )
    {   
        int iTestResult = 0;
        unsigned char ucDHCP;
        long lRetVal = -1;
    
        InitializeAppVariables();
    
        //
        // Following function configure the device to default state by cleaning
        // the persistent settings stored in NVMEM (viz. connection profiles &
        // policies, power policy etc)
        //
        // Applications may choose to skip this step if the developer is sure
        // that the device is in its default state at start of applicaton
        //
        // Note that all profiles and persistent settings that were done on the
        // device will be lost
        //
        lRetVal = ConfigureSimpleLinkToDefaultState();
        if(lRetVal < 0)
        {
            if (DEVICE_NOT_IN_STATION_MODE == lRetVal)
                UART_PRINT("Failed to configure the device in its default state \n\r");
    
            LOOP_FOREVER();
        }
    
        UART_PRINT("Device is configured in default state \n\r");
    
        //
        // Asumption is that the device is configured in station mode already
        // and it is in its default state
        //
        lRetVal = sl_Start(NULL,NULL,NULL);
    
        if (lRetVal < 0)
        {
            UART_PRINT("Failed to start the device \n\r");
            LOOP_FOREVER();
        }
    
        UART_PRINT("Device started as STATION \n\r");
        
        //
        // Configure the networking mode and ssid name(for AP mode)
        //
        if(lRetVal != ROLE_AP)
        {
            if(ConfigureMode(lRetVal) != ROLE_AP)
            {
                UART_PRINT("Unable to set AP mode, exiting Application...\n\r");
                sl_Stop(SL_STOP_TIMEOUT);
                LOOP_FOREVER();
            }
        }
    
        while(!IS_IP_ACQUIRED(g_ulStatus))
        {
          //looping till ip is acquired
        }
    
        unsigned char len = sizeof(SlNetCfgIpV4Args_t);
        SlNetCfgIpV4Args_t ipV4 = {0};
    
        // get network configuration
        lRetVal = sl_NetCfgGet(SL_IPV4_AP_P2P_GO_GET_INFO,&ucDHCP,&len,
                                (unsigned char *)&ipV4);
        if (lRetVal < 0)
        {
            UART_PRINT("Failed to get network configuration \n\r");
            LOOP_FOREVER();
        }
        
        UART_PRINT("Connect a client to Device\n\r");
        while(!IS_IP_LEASED(g_ulStatus))
        {
          //wating for the client to connect
        }
        UART_PRINT("Client is connected to Device\n\r");
    
        iTestResult = PingTest(g_ulStaIp);
        if(iTestResult < 0)
        {
            UART_PRINT("Ping to client failed \n\r");
        }
    
        UNUSED(ucDHCP);
        UNUSED(iTestResult);
    
        // revert to STA mode
        lRetVal = sl_WlanSetMode(ROLE_STA);
        if(lRetVal < 0)
        {
          ERR_PRINT(lRetVal);
          LOOP_FOREVER();
        }
    
        // Switch off Network processor
        lRetVal = sl_Stop(SL_STOP_TIMEOUT);
        UART_PRINT("WLAN AP example executed successfully");
        while(1);
    }

  • 卡在ConfigureSimpleLinkToDefaultState()里面的lMode = sl_Start(0, 0, 0)

  • 今天测试无意间发现出现此异常时SOP2电平会跟着跳变(平时是高电平,间隔1.2s拉低),测量VCC也会间隔约1.2s有抖动。以上异常是使用的AP demo程序,没有开启NWP时都正常。网上很多人新制作的板有该问题,还请哪位解决了告知下,谢谢!