微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI WIFI设计交流 > CC3200 烧写后不工作

CC3200 烧写后不工作

时间:10-02 整理:3721RD 点击:

为了对CC3200做文件操作,我将file_operation工程用IAR下载到CC3200中,并在Read函数添加了将文件内容输出到串口的函数。

一开始串口不能收到任何信息,经我检查,少了对串口初始化操作。

添加之后,一切工作正常。

然后我用uniflash将file_operation.bin烧写在sys/mcuimg.bin中,在烧写之前,我对cc3200进行了Format。

然后我把SOP跳帽拿下。结果是不能收到任何串口信息。

为了更进一步测试。

我在file_operation工程中的main()添加了代码,具体代码如下

void main()
{
    long lRetVal;
    unsigned char policyVal;
    long lFileHandle;
    unsigned long ulToken;

    //
    // Initialize Board configurations
    //
    BoardInit();

    //
    // Configure the pinmux settings for the peripherals exercised
    //
    PinMuxConfig();
    
    InitTerm();
    //
    // Configure LEDs
    //
    GPIO_IF_LedConfigure(LED1|LED3);

    GPIO_IF_LedOff(MCU_RED_LED_GPIO);
    GPIO_IF_LedOff(MCU_GREEN_LED_GPIO);


    //
    // Initializing the CC3200 networking layers
    //
    UART_PRINT("test begins 1 \n\r");
    lRetVal = sl_Start(NULL, NULL, NULL);
    if(lRetVal < 0)
    {
        GPIO_IF_LedOn(MCU_RED_LED_GPIO);
        LOOP_FOREVER();
    }
    //GPIO_IF_LedOn(MCU_RED_LED_GPIO);
    UART_PRINT("test begins \n\r");
    //
    // reset all network policies
    //
    lRetVal = sl_WlanPolicySet(  SL_POLICY_CONNECTION,
                    SL_CONNECTION_POLICY(0,0,0,0,0),
                    &policyVal,
                    1 /*PolicyValLen*/);
    if(lRetVal < 0)
    {
        GPIO_IF_LedOn(MCU_RED_LED_GPIO);
        UART_PRINT("test fail1 \n\r");
        LOOP_FOREVER();
        
    }
    
    if(WriteFileToDevice(&ulToken, &lFileHandle) < 0)
    {
        GPIO_IF_LedOn(MCU_RED_LED_GPIO);
        UART_PRINT("test fail2 \n\r");
        LOOP_FOREVER();
    }

    if(ReadFileFromDevice(ulToken, lFileHandle) < 0)
    {
        GPIO_IF_LedOn(MCU_RED_LED_GPIO);
        UART_PRINT("test fail3 \n\r");
         LOOP_FOREVER();
    }

    //
    // turn ON the green LED indicating success
    //
    GPIO_IF_LedOn(MCU_GREEN_LED_GPIO);
    GPIO_IF_LedOn(MCU_RED_LED_GPIO);
    UART_PRINT("test ends \n\r");
    lRetVal = sl_Stop(SL_STOP_TIMEOUT);

       LOOP_FOREVER();

}

然后拨下跳帽,按reset键。结果是串口扔接收不到任何信息,黄LED,绿LED亮,红LED灯不亮

uniflash日志文件如下

[13:37:32] Begin Format operation.
[13:37:32] INFO: > Executing Operation: Connect
[13:37:35] INFO: setting break signal
[13:37:35] INFO: connection succeeded
[13:37:35] INFO: getting storage list
[13:37:35] INFO: > Executing Operation: Init
[13:37:35] INFO: reading version info
[13:37:35] INFO: DEVICE CC3200 ES1.33
[13:37:35] INFO: reading version info
[13:37:36] INFO: reading version info
[13:37:38] INFO: > Executing Operation: Format
[13:37:38] INFO: Erase storage SFLASH
[13:37:39] INFO: erase storage succeeded
[13:37:39] INFO: erase storage completed
[13:37:39] INFO: > Executing Operation: Disconnect
[13:37:39] Operation Format returned.
[13:37:49] Begin Program operation.
[13:37:49] INFO: > Executing Operation: Connect
[13:37:51] INFO: setting break signal
[13:37:52] INFO: detecting FTDI for device reset
[13:37:54] INFO: connection succeeded
[13:37:54] INFO: getting storage list
[13:37:54] INFO: > Executing Operation: Init
[13:37:54] INFO: reading version info
[13:37:54] INFO: DEVICE CC3200 ES1.33
[13:37:54] INFO: reading version info
[13:37:55] INFO: reading version info
[13:37:57] INFO: > Executing Operation: Program
[13:37:57] INFO: > File name: /sys/mcuimg.bin, Update: false, Erase: false
[13:37:57] INFO: > File name: /cert/ca.pem, Update: false, Erase: false
[13:37:57] INFO: > File name: /cert/client.pem, Update: false, Erase: false
[13:37:57] INFO: > File name: /cert/private.key, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/macadd.bin, Update: false, Erase: true
[13:37:57] INFO: > Erase File: /sys/macadd.bin
[13:37:57] INFO: erasing file "/sys/macadd.bin"
[13:37:57] INFO: deleting file "/sys/macadd.bin"
[13:37:57] INFO: erase file completed
[13:37:57] INFO: > File name: /sys/mode.cfg, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/ipcfg.ini, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/ap.cfg, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/devname.cfg, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/mdns.cfg, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/dhcpsrv.cfg, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/httpsrv.cfg, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/pref.net, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/smartconfigkeys.cfg, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/stacfg.ini, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/p2p.cfg, Update: false, Erase: false
[13:37:57] INFO: > File name: /sys/pmcfg.ini, Update: false, Erase: false
[13:37:57] INFO: > Executing Operation: Disconnect
[13:37:57] Operation Program returned.

请问如何解决这个问题

我把timer工程里面的bin文件烧写进去,也不能工作。哪里出了问题?

/sys/mcuimg.bin, Update: false, Erase: false 根据这行判断应该是MCU image设置有问题。请参考这边解决方案:

https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc31xx_cc32xx/f/968/p/466457/1684874

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top