cc3220sf -launchxl开发板。目前用的IAR,debug时候貌似是下载到RAM运行,断电就没了。怎样才能只下载hex程序,不要每次都要用uniflash烧整个镜像。大部分时候我都只是修改了程序,而其他都没有改动。
顺便说下,我现在用uniflash生成image时一直提示signature file name is empty,不知道怎么回事。好歹找到了一个uniflash_project_generator,可以用命令行生成镜像,再用uniflash导入,这样可以烧录运行。
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.
cc3220sf -launchxl开发板。目前用的IAR,debug时候貌似是下载到RAM运行,断电就没了。怎样才能只下载hex程序,不要每次都要用uniflash烧整个镜像。大部分时候我都只是修改了程序,而其他都没有改动。
顺便说下,我现在用uniflash生成image时一直提示signature file name is empty,不知道怎么回事。好歹找到了一个uniflash_project_generator,可以用命令行生成镜像,再用uniflash导入,这样可以烧录运行。
#1. 用IAR下载实际上也是下载CC3220SF的内部的Flash 中,只不过下次上电时,CC3220SF检测外部的SPI Flash和内部的Flash内容不一致,就用SPI Flash外部的更新了内部下载的Flash代码。
#2. 生产的代码需要用Uniflash 进行程序的更新,下载到外部的SPI Flash中
使用操作参考
SimpleLink™ Wi-Fi® and Internet of Things
Solution CC3220, a Single-Chip Wireless MCU
Getting Started Guide
3.4 Download the Application
You can program any application to the SFLASH using the UniFlash tool. In case of CC3220SF device,
the application will be copied to the internal flash at the next device boot.
Do the procedure that follows to flash the Network Terminal application.
1. Run the UniFlash tool.
2. Select “CC3120 / CC3220” from the list of devices (you may type “CC3…” to the search tab to filter out
other devices).
Figure 3-5. UniFlash - Select Device
www.ti.com Download the Application
SWRU461–February 2017 23
Submit Documentation Feedback
Copyright © 2017, Texas Instruments Incorporated
Execute your First Application
3. Select Start Image Creator
Figure 3-6. UniFlash - Start Image Creator
Download the Application www.ti.com
24 SWRU461–February 2017
Submit Documentation Feedback
Copyright © 2017, Texas Instruments Incorporated
Execute your First Application
4. Click on New Project, as shown in Figure 3-7.
Figure 3-7. New Project
www.ti.com Download the Application
SWRU461–February 2017 25
Submit Documentation Feedback
Copyright © 2017, Texas Instruments Incorporated
Execute your First Application
5. Fill all the necessary fields properly. Make sure to select the correct device type (CC3220 for CC3220
and CC3220S device, CC3220SF for CC3220SF device) and click on Create Project, as shown in
Figure 3-8.
NOTE: Although not required for the first step of this Getting Started guide (which uses a
programmable image), it is recommended to put the device in Development mode to allow
JTAG operation so the image can be loaded by an IDE (which is described in Chapter 4).
Figure 3-8. Create Project
6. Click the Connect button as shown in Figure 3-9. Make sure the Serial terminal is not connected to the
device. Also, the SOP [2..0] configuration must be 010.
Figure 3-9. Connect and Disconnect
7. Once connected, click the Service Pack icon at bottom left.
NOTE: Flashing the service pack is not mandatory to develop the format of the device. However, if
the example to be debugged requires the service pack, the service pack can be programmed
with the development formatting.
8. Browse and select the service pack installed in Section 2.2.
3.4.1 Image Creation for Secure Device (CC3220S and CC3220SF)
1. Click on Trusted Root-Certificate Catalog on the lower-left side.
2. Uncheck the Use default Certificate Store checkbox and select Source File (.lst) and Signature Source
Download the Application www.ti.com
26 SWRU461–February 2017
Submit Documentation Feedback
Copyright © 2017, Texas Instruments Incorporated
Execute your First Application
File (.lst.signed.bin), available at <sdk-installation>\tools\certificate-playground, as shown in Figure 3-
10.
Figure 3-10. Certificate Store
3. Select User Files icon on lower-left side and click the Add File icon, as shown in Figure 3-11.
www.ti.com Download the Application
SWRU461–February 2017 27
Submit Documentation Feedback
Copyright © 2017, Texas Instruments Incorporated
Execute your First Application
Figure 3-11. Add File
Download the Application www.ti.com
28 SWRU461–February 2017
Submit Documentation Feedback
Copyright © 2017, Texas Instruments Incorporated
Execute your First Application
4. Select the following certificate files from <sdk-installation>\tools\certificate-playground and click Write,
as shown in Figure 3-12. Note that operation should be repeated to each of certificate files (that
compose a chain of trust):
• dummy-root-ca-cert
• dummy-trusted-ca-cert
• dummy-trusted-cert
Figure 3-12. Select Certificate File
www.ti.com Download the Application
SWRU461–February 2017 29
Submit Documentation Feedback
Copyright © 2017, Texas Instruments Incorporated
Execute your First Application
5. Select MCU Image from the drop-down menu, as shown in Figure 3-13.
Figure 3-13. Select MCU Image
6. Click Browse and select the application image
(<workspace>\network_terminal_CC3220SF_LAUNCHXL_tirtos_ccs\Debug\network_terminal_CC3220
SF_LAUNCHXL_tirtos_ccs.bin) to flash.
7. Make sure the "secure", "failsafe" and "Public Write" boxes are checked, and select the other files.
• Select Private Key File Name from the drop-down menu and browse the dummy-trusted-cert-key
file available at <sdk-installation>\tools\cc32xx_tools\certificate-playground. Select the available
Certificate File Name from the drop-down menu, as shown in Figure 3-14, and click Write.
Figure 3-14. Select Certificate File Name
8. Browse and select the service pack installed in Section 2.2.
9. Click on the icon.
10. Click on Program Image (Create & Program), as shown in Figure 3-15. This step might take a minute.