TI论坛
直播中

王峰

7年用户 189经验值
私信 关注
[问答]

cc3200 bootloader问题如何解决

bootloader未修改 放入mcuimg.bin中
oob例程未修改  放入mcuimg1.bin中
能正常启动oob文件网页什么都正常就是sta模式就卡死
但是 通过网页设置为sta模式 程序就会卡死
        while(uiConnecttimeoutCnt             ((!IS_CONNECTED(g_ulStatus)) || (!IS_IP_ACQUIRED(g_ulStatus))))
        [
            //Turn RED LED On
            GPIO_IF_LedOn(MCU_RED_LED_GPIO);
            osi_Sleep(50);
            
            //Turn RED LED Off
            GPIO_IF_LedOff(MCU_RED_LED_GPIO);
            osi_Sleep(50);
            
            uiConnectTimeoutCnt++;
        ]
程序在这里死掉了
sta例程也是同样死掉了
能说明下为什么么?


[18:01:25] Begin Format operation.
[18:01:25] INFO: > Executing Operation: Connect
[18:01:27] INFO: setting break signal
[18:01:27] INFO: connection succeeded
[18:01:27] INFO: getting storage list
[18:01:28] INFO: > Executing Operation: Init
[18:01:28] INFO: reading version info
[18:01:28] INFO: DEVICE CC3200 ES1.32
[18:01:28] INFO: reading version info
[18:01:29] INFO: reading version info
[18:01:31] INFO: > Executing Operation: Format
[18:01:31] INFO: Erase storage SFLASH
[18:01:32] INFO: erase storage succeeded
[18:01:32] INFO: erase storage completed
[18:01:32] INFO: > Executing Operation: Disconnect
[18:01:32] Operation Format returned.
[18:01:35] Begin Program operation.
[18:01:35] INFO: > Executing Operation: Connect
[18:01:37] INFO: setting break signal
[18:01:38] INFO: detecting FTDI for device reset
[18:01:39] INFO: connection succeeded
[18:01:39] INFO: getting storage list
[18:01:39] INFO: > Executing Operation: Init
[18:01:39] INFO: reading version info
[18:01:39] INFO: DEVICE CC3200 ES1.32
[18:01:39] INFO: reading version info
[18:01:41] INFO: reading version info
[18:01:43] INFO: > Executing Operation: Program
[18:01:43] INFO: > File name: /sys/mcuimg.bin, Update: true, Erase: true
[18:01:43] INFO: > Erase File: /sys/mcuimg.bin
[18:01:43] INFO: erasing file "/sys/mcuimg.bin"
[18:01:43] INFO: deleting file "/sys/mcuimg.bin"
[18:01:43] INFO: erase file completed
[18:01:43] INFO: > Size of file = 13952
[18:01:43] INFO: > Update File: /sys/mcuimg.bin
[18:01:43] INFO: Downloading file "/sys/mcuimg.bin" with size 13952
[18:01:44] INFO:

New Token is 0x0
[18:01:44] INFO: Download complete
[18:01:44] INFO: Verifying Data...
[18:01:44] INFO: get file
[18:01:45] INFO: Done. Reading 13952  bytes
[18:01:45] INFO:

Verification OK
[18:01:46] INFO: > Updated Token value: 0x0
[18:01:46] INFO: > File name: /cert/ca.pem, Update: false, Erase: false
[18:01:46] INFO: > File name: /cert/client.pem, Update: false, Erase: false
[18:01:46] INFO: > File name: /cert/private.key, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/macadd.bin, Update: false, Erase: true
[18:01:46] INFO: > Erase File: /sys/macadd.bin
[18:01:46] INFO: erasing file "/sys/macadd.bin"
[18:01:46] INFO: deleting file "/sys/macadd.bin"
[18:01:46] INFO: erase file completed
[18:01:46] INFO: > File name: /sys/mode.cfg, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/ipcfg.ini, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/ap.cfg, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/devname.cfg, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/mdns.cfg, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/dhcpsrv.cfg, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/httpsrv.cfg, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/pref.net, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/smartconfigkeys.cfg, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/stacfg.ini, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/p2p.cfg, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/pmcfg.ini, Update: false, Erase: false
[18:01:46] INFO: > File name: /sys/mcuimg1.bin, Update: true, Erase: true
[18:01:46] INFO: > Erase File: /sys/mcuimg1.bin
[18:01:46] INFO: erasing file "/sys/mcuimg1.bin"
[18:01:46] INFO: deleting file "/sys/mcuimg1.bin"
[18:01:46] INFO: erase file completed
[18:01:46] INFO: > Size of file = 48420
[18:01:46] INFO: > Update File: /sys/mcuimg1.bin
[18:01:46] INFO: Downloading file "/sys/mcuimg1.bin" with size 48420
[18:01:49] INFO:

New Token is 0x0
[18:01:49] INFO: Download complete
[18:01:49] INFO: Verifying Data...
[18:01:49] INFO: get file
[18:01:50] INFO: Done. Reading 48420  bytes
[18:01:50] INFO:

Verification OK
[18:01:51] INFO: > Updated Token value: 0x0
[18:01:51] INFO: > Executing Operation: Disconnect
[18:01:51] Operation Program returned.
[18:01:54] Begin ListFileSystem operation.
[18:01:55] INFO: > Executing Operation: Connect
[18:01:57] INFO: setting break signal
[18:01:58] INFO: detecting FTDI for device reset
[18:01:59] INFO: connection succeeded
[18:01:59] INFO: getting storage list
[18:01:59] INFO: > Executing Operation: Init
[18:01:59] INFO: reading version info
[18:01:59] INFO: DEVICE CC3200 ES1.32
[18:01:59] INFO: reading version info
[18:02:01] INFO: reading version info
[18:02:03] INFO: > Executing Operation: ListFileSystem
[18:02:03] INFO: extracting file system information...
[18:02:03] INFO: Serial Flash block size:    4096 bytes
[18:02:03] INFO: Serial Flash capacity:        2048 blocks

[18:02:03] INFO:     file    start    size    fail    total size    filename
[18:02:03] INFO:     index    block    [BLKs]    safe    [BLKs]
[18:02:03] INFO: ----------------------------------------------------------------------------
[18:02:03] INFO:     N/A    0    5    N/A    5        FATFS
[18:02:03] INFO:     0    15    4    yes    8        /sys/mcuimg.bin
[18:02:03] INFO:     4    5    5    yes    10        /tmp/phy.cal
[18:02:03] INFO:     6    23    12    yes    24        /sys/mcuimg1.bin
[18:02:03] INFO:


[18:02:03] INFO:     Flash usage
[18:02:03] INFO: -------------------------
[18:02:03] INFO: used space:    47 blocks
[18:02:03] INFO: free space:    2001 blocks
[18:02:03] INFO: memory hole:    [47-2047]
[18:02:03] INFO: > Executing Operation: Disconnect
[18:02:03] Operation ListFileSystem returned.

回帖(7)

刘馨

2020-6-16 07:11:00
你的意思是官方的代码不做任何修改都不可以正常STA模式工作?卡死在那个while了?
举报

王峰

2020-6-16 07:19:03
引用: 潘涛12345 发表于 2020-6-16 07:11
你的意思是官方的代码不做任何修改都不可以正常STA模式工作?卡死在那个while了?

对。仿真模式是可以正常运行的。 不使用bootloader 也可以正常运行。 sta历程 放在mcuimg1上运行就会死在那个while里
举报

张飞雄

2020-6-16 07:29:06
引用: zsl1220548 发表于 2020-6-16 07:19
对。仿真模式是可以正常运行的。 不使用bootloader 也可以正常运行。 sta历程 放在mcuimg1上运行就会死在那个while里

你芯片的版本读出来怎么是1.32的,这个版本是以前工程样品的版本。量产的芯片版本是1.33.
                                                                         如果有答案已经回答了您的问题,请标注为已回答。
Please close your question if it has been solved. 
------------------------------------------------------------------
举报

王峰

2020-6-16 07:46:24
是我片子的问题么?  我之前将bootloader程序和sta 程序发给别人都可以使用
举报

更多回帖

发帖
×
20
完善资料,
赚取积分