CC3200 SmartConfig问题,在执行串口无log,Debug调试发生error终止运行!
Cc3200 smartconfig
环境:
安装Ti的Tool:
1、 公板状态
我已经按照官网的图档调整了跳线帽,杜邦线是在烧录时连接——此配置时烧录到flash
2、 烧录文档
3、 Uniflash配置
关于这个选项我测试两次,打开uniflash配置烧录时默认是勾选的,
第一次勾选进行烧录,
第二次取消该选项进行烧录。
以下是uniflash在烧录provisioning_smartconfig.bin的执行log,
(1)format
(2)Servive Pack Programming
(3)Program
[08:32:12] Begin Format operation.
[08:32:12] INFO: > Executing Operation: Connect
[08:32:15] INFO: setting break signal
[08:32:15] INFO: connection succeeded
[08:32:15] INFO: getting storage list
[08:32:15] INFO: > Executing Operation: Init
[08:32:15] INFO: reading version info
[08:32:15] INFO: DEVICE CC3200 ES1.33
[08:32:15] INFO: reading version info
[08:32:16] INFO: reading version info
[08:32:18] INFO: > Executing Operation: Format
[08:32:18] INFO: Erase storage SFLASH
[08:32:19] INFO: erase storage succeeded
[08:32:19] INFO: erase storage completed
[08:32:19] INFO: > Executing Operation: Disconnect
[08:32:19] Operation Format returned.
[08:32:28] Begin ServicePackProgramming operation.
[08:32:29] INFO: > Executing Operation: Connect
[08:32:31] INFO: setting break signal
[08:32:32] INFO: detecting FTDI for device reset
[08:32:33] INFO: connection succeeded
[08:32:33] INFO: getting storage list
[08:32:33] INFO: > Executing Operation: ServicePackProgramming
[08:32:33] INFO: Path to the service pack file: C:/ti/CC3100_CC3200_ServicePack_1.0.1.6-2.7.0.0/servicepack_1.0.1.6-2.7.0.0.bin
[08:32:33] INFO: reading version info
[08:32:33] INFO: CC3200R Device detected.
[08:32:33] INFO: NWP/MAC/PHY Version from Service Pack:
[08:32:33] INFO: NWP Patch version: 2.5.99.8
[08:32:33] INFO: MAC Patch version: 1.4.0.1
[08:32:33] INFO: PHY Patch version: 1.0.3.34
[08:32:33] INFO: reading version info
[08:32:33] INFO: DEVICE CC3200 ES1.33
[08:32:33] INFO: reading version info
[08:32:34] INFO: reading version info
[08:32:36] INFO: Downloading file "/sys/servicepack.ucf" with size 28236
[08:32:39] INFO:
New Token is 0x24020D19
[08:32:39] INFO: Download complete
[08:32:39] INFO: > Executing Operation: Disconnect
[08:32:39] Operation ServicePackProgramming returned.
[08:32:45] Begin Program operation.
[08:32:45] INFO: > Executing Operation: Connect
[08:32:47] INFO: setting break signal
[08:32:48] INFO: detecting FTDI for device reset
[08:32:50] INFO: connection succeeded
[08:32:50] INFO: getting storage list
[08:32:50] INFO: > Executing Operation: Init
[08:32:50] INFO: reading version info
[08:32:50] INFO: DEVICE CC3200 ES1.33
[08:32:50] INFO: reading version info
[08:32:51] INFO: reading version info
[08:32:53] INFO: > Executing Operation: Program
[08:32:53] INFO: > File name: /sys/mcuimg.bin, Update: true, Erase: true
[08:32:53] INFO: > Erase File: /sys/mcuimg.bin
[08:32:53] INFO: erasing file "/sys/mcuimg.bin"
[08:32:53] INFO: deleting file "/sys/mcuimg.bin"
[08:32:53] INFO: erase file completed
[08:32:53] INFO: > Size of file = 20800
[08:32:53] INFO: > Update File: /sys/mcuimg.bin
[08:32:53] INFO: Downloading file "/sys/mcuimg.bin" with size 20800
[08:32:54] INFO:
New Token is 0x0
[08:32:54] INFO: Download complete
[08:32:54] INFO: > Updated Token value: 0x0
[08:32:54] INFO: > File name: /cert/ca.pem, Update: false, Erase: false
[08:32:54] INFO: > File name: /cert/client.pem, Update: false, Erase: false
[08:32:54] INFO: > File name: /cert/private.key, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/macadd.bin, Update: false, Erase: true
[08:32:54] INFO: > Erase File: /sys/macadd.bin
[08:32:54] INFO: erasing file "/sys/macadd.bin"
[08:32:54] INFO: deleting file "/sys/macadd.bin"
[08:32:54] INFO: erase file completed
[08:32:54] INFO: > File name: /sys/mode.cfg, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/ipcfg.ini, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/ap.cfg, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/devname.cfg, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/mdns.cfg, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/dhcpsrv.cfg, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/httpsrv.cfg, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/pref.net, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/smartconfigkeys.cfg, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/stacfg.ini, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/p2p.cfg, Update: false, Erase: false
[08:32:54] INFO: > File name: /sys/pmcfg.ini, Update: false, Erase: false
[08:32:54] INFO: > Executing Operation: Disconnect
[08:32:54] Operation Program returned.
4、 烧录完成后打开串口助手查看执行log:
(1)公板状态
(2)串口助手显示状态:
烧录provisioning_smartconfig.bin的公板串口无打印信息,按下 reset松开同样。
验证公板没有问题,我又烧录了烧录adc.bin,按下reset后有打印信息
5、 连接ccs进行debug调试,我是选择单步执行,共遇到三个error,遇到后程序就停止执行。
(1)
(2)
(3)
目前问题还存在,我使用了CC3200 SDK中example中的bin档测试,自己通过ccs build一份新的bin档测试,依旧没有成功。大家有遇到这问题吗?还请
高手指点,说明一下问题出现在什么地方。
1. 重新编译一下simplelink工程,目录如下
C:\ti\CC3200SDK_1.2.0\cc3200-sdk\simplelink\
2. 要打印信息,把编译选项里的NOTERM去掉,并且把uart_if.c加入工程中
1.2.0的协议栈好像是有些问题。考虑把下面的附件覆盖1.2.0协议栈的simplelink目录试试看。附件是1.1.0的simplelink,我覆盖后一切恢复正常
7142.simplelink.zip
覆盖的目录是
C:\ti\CC3200SDK_1.2.0\cc3200-sdk\simplelink
2. 要打印信息,把编译选项里的NOTERM去掉,并且把uart_if.c加入工程中
你好,第二步的操作我没有找到,我是安装的
Code Composer Studio
Version: 6.2.0.00048
(c) Copyright Texas Instruments, 2014. All rights reserved.
Visit http://www.ti.com
请问具体的路径是什么呢?
感谢!
覆盖的目录是
C:\ti\CC3200SDK_1.2.0\cc3200-sdk\simplelink
我覆盖之后,在simplelink中出现警告
然后在build Provisioning Smart Config是main.c error,最终编译不通过
请问是什么原因呢?
感谢!
我用IAR测试的。不清楚CCS的情况。建议直接用1.1.0的SDK.如果你没有,可以留个邮箱,我发给你。