CC3200使用IAR for ARM编译环境 烧写程序的问题
TI工程师你好,
我现在使用IAR forARM 7.20对CC3200调试,IAR中选择 Download and debug 后,按GO开始执行。但是复位后程序无法再次运行了,我使用串口直接下载的程序。
请问如果需要将程序烧写进CC3200且复位后能自动开始运行,我需要什么烧写工具(硬件&软体)?或者改变某些设置即可解决?
期待解答! 谢谢!
你调试的时候是下载到RAM里面,所以RESET之后就没有了。你需要用uniflash去烧录到FLASH里面才有效。
下面是我使用uniflash 烧录binky的步骤,但是reset后仍不能自动运行,是不是我漏掉了某些步骤或者其他设置项?
请帮助。
第一步format
[17:12:49] Begin Format operation.
[17:12:49] INFO: > Executing Operation: Connect
[17:12:51] INFO: setting break signal
[17:12:51] INFO: --- please restart the device ---
[17:12:54] INFO: connection succeeded
[17:12:54] INFO: getting storage list
[17:12:55] INFO: > Executing Operation: Init
[17:12:55] INFO: reading version info
[17:12:55] INFO: DEVICE CC3200 ES1.32
[17:12:55] INFO: reading version info
[17:12:56] INFO: reading version info
[17:12:56] INFO: reading version info
[17:12:58] INFO: > Executing Operation: Format
[17:12:58] INFO: Erase storage SFLASH
[17:13:00] INFO: erase storage succeeded
[17:13:00] INFO: erase storage completed
[17:13:00] INFO: > Executing Operation: Disconnect
[17:13:00] Operation Format returned.
第二步 program
[17:26:20] INFO: > Executing Operation: Connect
[17:26:22] INFO: setting break signal
[17:26:22] INFO: --- please restart the device ---
[17:26:25] INFO: connection succeeded
[17:26:25] INFO: getting storage list
[17:26:25] INFO: > Executing Operation: Init
[17:26:25] INFO: reading version info
[17:26:25] INFO: DEVICE CC3200 ES1.32
[17:26:25] INFO: reading version info
[17:26:27] INFO: reading version info
[17:26:27] INFO: reading version info
[17:26:29] INFO: > Executing Operation: Program
[17:26:29] INFO: > File name: /sys/mcuimg.bin, Update: false, Erase: false
[17:26:29] INFO: > File name: /cert/ca.pem, Update: false, Erase: false
[17:26:29] INFO: > File name: /cert/client.pem, Update: false, Erase: false
[17:26:29] INFO: > File name: /cert/private.key, Update: false, Erase: false
[17:26:29] INFO: > File name: /tmp/pac.bin, Update: false, Erase: false
[17:26:29] INFO: > File name: /sys/macadd.bin, Update: false, Erase: false
[17:26:29] INFO: > File name: blinky, Update: true, Erase: false
[17:26:29] INFO: > Size of file = 102420
[17:26:29] INFO: > Update File: blinky
[17:26:29] INFO: Downloading file "blinky" with size 102420
[17:26:33] INFO:
New Token is 0x0
[17:26:33] INFO: Download complete
[17:26:33] INFO: > Updated Token value: 0x0
[17:26:33] INFO: > Executing Operation: Disconnect
[17:26:33] Operation Program returned.
复位后还是没有任何动作!
service pack有先下进去吗?
我不知道还要先下service pack ,我在官网上搜了一下,找不到service pack .bin相关资料,能提供下载链接吗?
http://www.ti.com/tool/cc3200sdk
下载第二个
下载了servicepack,烧录前update servicepack 试了下不行,烧录后再updateservice还是不行,我有点郁闷了。新手的考验?
我先update下servicepack,然后烧录blinky例子,接着把SOP2的跳线帽去掉,复位后还是不能正常运行,有点崩溃的感觉,卡在原本只应该是一个小问题的问题上。
求帮助!
Wayy,
您好!关于您EVM板子的版本和使用的SDK版本能不能提供下?谢谢!
谢谢帮助!
问题已经解决了。是因为在格式化的时候勾选了安全和两外一个选项,在不勾选两项的情况下,按照format-->update servicepack-->program
烧录成功。初次玩这个,不管怎样谢谢细心的解答。
我也是 你这样的 现象,secure 和 alert 都选上了,还是 复位后 不能执行。
If you are using pre-production CC3200 Launch Pad with XCC3101GZ or XCC3200HZ, the device must not get formatted as secured.
我用的 就是 XCC3101GZ。
我应该 怎么 选啊,flash 大小是多少啊?
不要勾选即可
你的芯片是PG1.21的,能否升级到PG1.32,也就是HZ的。BTW, FLASH SIZE选择1M即可。
If you are using pre-production CC3200 Launch Pad with XCC3101GZ or XCC3200HZ, the device must not get formatted as secured.
这句话的意思不能as secured,secure和alert不能勾。
你好!
在使用UNIFLASH下载程序时,遇到问题,不能下载成功,但原来在FLASH的程序已经被删除。目前我的操作方式如下,请您帮忙查看哪里有问题,我需要怎么操作才可以。
1。打开UNIFLASH软件,新建目标配置,在根据串口,设置串口;
2。点击format,里面参数没有修改,也没有打勾,容量为1MB;
看到Console显示如下:
Uniflash Debug Console
[00:00:00] Begin Format operation.
[00:00:04] INFO: > Executing Operation: Connect
[00:00:06] INFO: setting break signal
[00:00:06] INFO: --- please restart the device ---
[00:00:06] INFO: connection succeeded
[00:00:06] INFO: getting storage list
[00:00:06] INFO: > Executing Operation: Init
[00:00:06] INFO: reading version info
[00:00:06] INFO: DEVICE CC3200 ES1.33
[00:00:06] INFO: reading version info
[00:00:07] INFO: reading version info
[00:00:09] INFO: > Executing Operation: Format
[00:00:09] INFO: Erase storage SFLASH
[00:00:10] INFO: erase storage succeeded
[00:00:10] INFO: erase storage completed
[00:00:10] INFO: > Executing Operation: Disconnect
[00:00:10] Operation Format returned.
3。点击Service pack programming,进行设置,选择servicepack_1.0.0.1.2.bin
[00:01:10] Begin ServicePackProgramming operation.
[00:01:13] INFO: > Executing Operation: Connect
[00:01:15] INFO: setting break signal
[00:01:15] INFO: --- please restart the device ---
[00:01:20] INFO: connection succeeded
[00:01:20] INFO: getting storage list
[00:01:20] INFO: > Executing Operation: ServicePackProgramming
[00:01:20] INFO: Path to the service pack file: D:/ti/CC31xx_CC32xx_ServicePack_1.0.0.1.2/servicepack_1.0.0.1.2.bin
[00:01:20] INFO: reading version info
[00:01:20] INFO: CC3200R Device detected.
[00:01:20] INFO: NWP/MAC/PHY Version from Service Pack:
[00:01:20] INFO: NWP Patch version: 2.2.0.1
[00:01:20] INFO: MAC Patch version: 1.2.0.2
[00:01:20] INFO: PHY Patch version: 1.0.3.23
[00:01:20] INFO: reading version info
[00:01:20] INFO: DEVICE CC3200 ES1.33
[00:01:20] INFO: reading version info
[00:01:21] INFO: reading version info
[00:01:23] INFO: Downloading file "/sys/servicepack.ucf" with size 6100
[00:01:28] INFO:
New Token is 0xFE4F3D5A
[00:01:28] INFO: Download complete
[00:01:28] INFO: > Executing Operation: Disconnect
[00:01:28] Operation ServicePackProgramming returned.
4.点击Add File,点击Usre File,进行设置,NAME为time 在Url的选择要下载的.bin文件:D:\ti\CC3200SDK_1.0.0\cc3200-sdk\example\timer\ewarm\Release\Exe\timer.bin 其它设置如下图所示:
5。点击Program下载,如下所示:
[00:02:10] Begin AddFile operation.
[00:02:13] Operation AddFile returned.
[00:03:09] Begin Program operation.
[00:03:11] INFO: Checked for update config groups: []
[00:03:11] INFO: List of files to be generated: []
[00:03:11] INFO: > Executing Operation: Connect
[00:03:13] INFO: setting break signal
[00:03:13] INFO: --- please restart the device ---
[00:03:17] INFO: connection succeeded
[00:03:17] INFO: getting storage list
[00:03:17] INFO: > Executing Operation: Init
[00:03:17] INFO: reading version info
[00:03:17] INFO: DEVICE CC3200 ES1.33
[00:03:17] INFO: reading version info
[00:03:18] INFO: reading version info
[00:03:20] INFO: > Executing Operation: Program
[00:03:20] INFO: > File name: /sys/mcuimg.bin, Update: false, Erase: false
[00:03:20] INFO: > File name: /cert/ca.pem, Update: false, Erase: false
[00:03:20] INFO: > File name: /cert/client.pem, Update: false, Erase: false
[00:03:20] INFO: > File name: /cert/private.key, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/macadd.bin, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/mode.cfg, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/ipcfg.ini, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/ap.cfg, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/devname.cfg, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/mdns.cfg, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/dhcpsrv.cfg, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/httpsrv.cfg, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/pref.net, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/smartconfigkeys.cfg, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/stacfg.ini, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/p2p.cfg, Update: false, Erase: false
[00:03:20] INFO: > File name: /sys/pmcfg.ini, Update: false, Erase: false
[00:03:20] INFO: > File name: time, Update: true, Erase: true
[00:03:20] INFO: > Erase File: time
[00:03:20] INFO: erasing file "time"
[00:03:20] INFO: deleting file "time"
[00:03:20] INFO: erase file completed
[00:03:20] INFO: > Size of file = 18784
[00:03:20] INFO: > Update File: time
[00:03:20] INFO: Downloading file "time" with size 18784
[00:03:24] INFO:
New Token is 0x0
[00:03:24] INFO: Download complete
[00:03:24] INFO: Verifying Data...
[00:03:24] INFO: get file
[00:03:24] INFO: Done. Reading 18784 bytes
[00:03:24] INFO:
Verification OK
[00:03:25] INFO: > Updated Token value: 0x0
[00:03:25] INFO: > Executing Operation: Disconnect
[00:03:26] Operation Program returned.
6.重新复位,没有现象。
相关说明:此程序在仿真时,可以使用,D5,D6,D7 可闪烁,但按上面操作,就是没有反映。请TI工作人员帮忙查看一下,我哪些步骤有错。
从现象分析,程序压根没下载进FLASH。
你再烧写应用程序的时候有问题,不需要另外在add file,你只需要将你的应用程序加载到uniflash已经有的路径/sys/mcuimg.bin下面。
你的操作,应用程序正常运行不了。
谢谢
似乎很麻烦的样子,其实现在的单片机程序只要能顺利下载,就可以了,没必要仿真了,搞的这么复杂,有点搞不懂了
[20:22:53] Begin Format operation.
[20:22:55] INFO: >> Error loading DLL: D:/TI/uniflash_3.4/eclipse/plugins/com.ti.uniflash.wireless.files_1.0.0.201511021134/cc3xxx/bin/win/FlashAPI.dll
[20:22:55] INFO: >> ?????????????
[20:22:55] INFO: > Executing Operation: Connect
[20:22:55] INFO: > Executing Operation: Disconnect
[20:22:55] Operation Format returned.
你好 ,我第一次用TI的单片机,用IAR可以正常通过串口仿真,但是根据官方提供的guide使用Uniflash却出现了上面的信息,好像是链接不上,望大侠指导一二,感激不尽!
确实不太方便,第一次用TI的单片机
你好:
我使用3200开发板,可以用串口结合uniflash烧写到cc3200flash,但是如果用jlink可以使用uniflash烧写到cc3200flash吗?如果不行,jlink怎么烧写到flash?