TI中文支持网
TI专业的中文技术问题搜集分享网站

cc3220sf 怎样才能只下载程序hex而不是整个镜像

cc3220sf -launchxl开发板。目前用的IAR,debug时候貌似是下载到RAM运行,断电就没了。怎样才能只下载hex程序,不要每次都要用uniflash烧整个镜像。大部分时候我都只是修改了程序,而其他都没有改动。

顺便说下,我现在用uniflash生成image时一直提示signature file name is empty,不知道怎么回事。好歹找到了一个uniflash_project_generator,可以用命令行生成镜像,再用uniflash导入,这样可以烧录运行。

Terry Han:

#1. 用IAR下载实际上也是下载CC3220SF的内部的Flash 中,只不过下次上电时,CC3220SF检测外部的SPI Flash和内部的Flash内容不一致,就用SPI Flash外部的更新了内部下载的Flash代码。

#2. 生产的代码需要用Uniflash 进行程序的更新,下载到外部的SPI Flash中

使用操作参考

SimpleLink™ Wi-Fi® and Internet of ThingsSolution CC3220, a Single-Chip Wireless MCUGetting Started Guide

3.4 Download the ApplicationYou 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 outother devices).Figure 3-5. UniFlash – Select Devicewww.ti.com Download the ApplicationSWRU461–February 2017 23Submit Documentation FeedbackCopyright © 2017, Texas Instruments IncorporatedExecute your First Application3. Select Start Image CreatorFigure 3-6. UniFlash – Start Image CreatorDownload the Application www.ti.com24 SWRU461–February 2017Submit Documentation FeedbackCopyright © 2017, Texas Instruments IncorporatedExecute your First Application4. Click on New Project, as shown in Figure 3-7.Figure 3-7. New Projectwww.ti.com Download the ApplicationSWRU461–February 2017 25Submit Documentation FeedbackCopyright © 2017, Texas Instruments IncorporatedExecute your First Application5. Fill all the necessary fields properly. Make sure to select the correct device type (CC3220 for CC3220and CC3220S device, CC3220SF for CC3220SF device) and click on Create Project, as shown inFigure 3-8.NOTE: Although not required for the first step of this Getting Started guide (which uses aprogrammable image), it is recommended to put the device in Development mode to allowJTAG operation so the image can be loaded by an IDE (which is described in Chapter 4).Figure 3-8. Create Project6. Click the Connect button as shown in Figure 3-9. Make sure the Serial terminal is not connected to thedevice. Also, the SOP [2..0] configuration must be 010.Figure 3-9. Connect and Disconnect7. 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, ifthe example to be debugged requires the service pack, the service pack can be programmedwith 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 SourceDownload the Application www.ti.com26 SWRU461–February 2017Submit Documentation FeedbackCopyright © 2017, Texas Instruments IncorporatedExecute your First ApplicationFile (.lst.signed.bin), available at <sdk-installation>\tools\certificate-playground, as shown in Figure 3-10.Figure 3-10. Certificate Store3. 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 ApplicationSWRU461–February 2017 27Submit Documentation FeedbackCopyright © 2017, Texas Instruments IncorporatedExecute your First ApplicationFigure 3-11. Add FileDownload the Application www.ti.com28 SWRU461–February 2017Submit Documentation FeedbackCopyright © 2017, Texas Instruments IncorporatedExecute your First Application4. 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 (thatcompose a chain of trust):• dummy-root-ca-cert• dummy-trusted-ca-cert• dummy-trusted-certFigure 3-12. Select Certificate Filewww.ti.com Download the ApplicationSWRU461–February 2017 29Submit Documentation FeedbackCopyright © 2017, Texas Instruments IncorporatedExecute your First Application5. Select MCU Image from the drop-down menu, as shown in Figure 3-13.Figure 3-13. Select MCU Image6. Click Browse and select the application image(<workspace>\network_terminal_CC3220SF_LAUNCHXL_tirtos_ccs\Debug\network_terminal_CC3220SF_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-keyfile available at <sdk-installation>\tools\cc32xx_tools\certificate-playground. Select the availableCertificate File Name from the drop-down menu, as shown in Figure 3-14, and click Write.Figure 3-14. Select Certificate File Name8. 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.

m x:

回复 Terry Han:

请问有完整的文档吗

user5145355:

在debug选项中,应该有个下载程序时,flash 的操作,可以选择擦除CODE区域,以及擦除整片区域,选择烧录,应该可以解决。

赞(0)
未经允许不得转载:TI中文支持网 » cc3220sf 怎样才能只下载程序hex而不是整个镜像
分享到: 更多 (0)