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使用xds110串口烧录时为什么一点下载就会断开连接

Other Parts Discussed in Thread: CC3220SF, UNIFLASH, CC3120

自己照着官方的的原理图画了一块CC3220sf demo板,调试的时候烧不进程序。

使用uniflash4.2  xds110  可以连接上,但是一点击下载就会断开连接。如下图

  • CC3220SFLaunchpad采用的XDS,上位机使用UniFlash 4.1,即SLImageCreator,Device可选择Launchpad On-Chip或Serial,或device On-Chip或Serial, SOP设置为010即可,但硬件接口除了TX,RX,还需要reset配合,所以推荐使用XDS110,既支持在线仿真,又可下载程序(连接TX,RX及Reset)。另外,CC3220SF除了下载bin和servicepack,还需要下载证书及key文件等。所以,用串口下载时,可下载由Image Creator导出的包含上述文件的.sli文件。

    参考http://www.deyisupport.com/question_answer/wireless_connectivity/wifi/f/105/t/132055.aspx 最后的回复。

  • 我使用的上位机是UniFlash4.1,sop也设置为010,使用的也是XDS110,reset也接了。Device选择了Serial,点击Connect设备是可以连接上,但是一点击Program Image (Create & Program)就会断开连接。

  • 同样的操作,用官方的demo 板子,会出现这个问题么,

  • 不会,但是有时官方的demo板子直接就连不上

  • Hi Dong lin,

    首先你先用TI的CC3220SF的launchpad试一下,是否OK;能连接说明仿真器跟板子的硬件连接正常。

    另外,你自己画的板子上有没有加Flash,Flash大小为多少?检查一下在UniFlash中Development Mode-General->Settings 里的Capacity的配置是否正确?

    最后,你Uniflash的配置里,Flies里的安全文件有无正确配置,包括secure file以及Certificate file的配置,请按照uniflash 4.2 User‘s Guide 进行配置。

  • Hi Dong lin,

    如何正确快速配置及应用CC3120/3220,可以参考如下附件。

    Create Image Using UniFlash
    a. Open on Uniflash v4.2

    b. Select “CC3120/CC3220” device from “Enter Device Name” bar.

    c. Verify “Serial (UART) Interface” is selected as a connection.

    d. Click on “Start Image Creator” button

    e. Click on “New Project” button to create new project.

    f. Enter project name as “devkit_app” and select device type as “CC3220SF” and device mode as “Production”. Click on “Create Project” button to create project

    g. Click on connect button to Connect to device.

    h. Check if Connection status in On and Device Type as “CC3220SF, Secure”. If device is not secured then skip certificate related steps.

    i. Select “Trusted Root Certificate Catalog” under “Files” section

    j. Uncheck“Use default Trusted Root Certificate Catalog” option

    k. Browse “Source File” to
    “C:\TI\simplelink_cc32xx_sdk_1_02_02_00\tools\cc32xx_tools\certificateplayground\certcatalogPlayGround20160911.lst” file and “Signature Source File” to
    “C:\TI\simplelink_cc32xx_sdk_1_02_02_00\tools\cc32xx_tools\certificateplayground\certcatalogPlayGround20160911.lst.signed.bin” file.

    l. Select “Service Pack” under “Files” section

    m. Browse “Service Pack FIle Name” to “C:\TI\simplelink_cc32xx_sdk_1_02_02_00\tools\cc32xx_tools\servicepackcc3x20\sp_3.2.0.0_2.0.0.0_2.2.0.4.bin”.

    n. Select “User Files” under “Files” section

    o. Click on add file icon

    p. Browse to “C:\TI\simplelink_cc32xx_sdk_1_02_02_00\tools\cc32xx_tools\certificateplayground\dummy-root-ca-cert” to add file. After selection file configuration window will appear .

    q. Select “Failsafe” option and click on Write button to add File to project.

    r. Select “ Select MCU Image” option in “Action” dropdown menu.

    s. Click on “Browse” button and navigate to devkit_app binary located at (Debug-“<PATH TO DEVKIT APP BUNDLE>\app\src\devkit_app\cc3220\CCS\Debug\devkit_app.bin” and Release-“<PATH TO DEVKIT APP
    BUNDLE>\app\src\devkit_app\cc3220\CCS\Release\devkit_app.bin”

    t. Select “Failsafe”, “Secure” and “Public Write” options

    u. Select “Private Key File Name” from the drop down menu and browse to “C:\TI\simplelink_cc32xx_sdk_1_02_02_00\tools\cc32xx_tools\certificateplayground\dummy-root-ca-cert-key”.

    v. Select “dummy-root-ca-cert” from “Certificate File name” dropdown menu.

    w. Click on add file icon.

    x. Add “ajax_script.js”, “arrayentlogo.png” and “index.html” (located at <DEVKIT RELEASE BUNDLE>/app/devkit_app/resources/arrayent) file using add button.

    y. Click on “Generate Image” icon .

    z. Click on “Create Image” button to generate Image.

    aa. On successful Image generation “Operation Successfully Completed “ Message will pop up. Click on close button to close the popup.

    bb. Click on “Save Image” to store “.sli” file to local storage.

    cc. Click in “Program Image(Create & Program)” button to Create and Program Image to device.

    dd. On successful flash image to device, “Programming Complete” message will appear

  • 关键是无法connect to device啊,这个问题怎么办啊???

  • 我的也是,无法connect,请问这怎么处理,或者是哪些可能造成的,电源都正确,晶振正确,板子基本照抄开发板

  • Hi jianxu,

    如果你按照上面附件“4011.TI-CC3220-DevKit-Quick-Start-Guide_G1pr.pdf” 仍无法connect你的板子的话,建议检查一下你的仿真器和你板子的连接是否正确,以及你用的什么仿真器。 如果有可能的话,最好能把你这部分的原理图以及仿真器与板子的连线照片发上来看一下。

  • 仿真器用的开发板载XDS110,排线插到开发板的JTAG IN插座,可以正常connect,debug也没问题,

  • Jianxu,

    可以正常connect,debug也没有问题。那你这面的问题是?另外,你说的可以正常connect是connect到了launchpad上CC3220SF,还是connect到了你自己的板子?Launchpad上CC3220SF的供电有没有断掉?

  • 用排线可以connect到了launchpad上CC3220SF,所以也可以排除排线问题,但是connect到了自己板子就不行

  • Hi jianxu,

    连Launchpad上的CC3220SF不用排线,直接连接对应跳线帽就可以了。你使用的CC3220SF的Launchpad为新版的,它有两个XDS的引出端子,一个是用板载XDS对外烧录其他板子的,一个是用外部的XDS对该Launchpad上的CC3220SF进行烧录的。

    1. 假设目前硬件没有问题,你需要检查一下图中CC3220SF Launchpad上XDS的方向是否正确。两个烧录端子的配置具体可以参见CC3220SF Launchpad的用户手册;

    http://www.ti.com.cn/cn/lit/ug/swru463a/swru463a.pdf

    2.  如果第一步配置正确,建议用两块CC3220SF Launchpad,相互烧录一下,看是否成功,从而排除你自己板子硬件的问题;

    3. 不用CC3220SF Launchpad上的JTAG Header的那个端子,直接从J18的那组排针上引出相应的JTAG烧录脚练到你的板子上,看是否能正常连接;

    4. 以上操作时,最好能断掉Launchpad上CC3220SF的供电,避免混淆。

  • 你好,我是这样试的:首先,连接Launchpad上的CC3220SF,用跳帽和排线都没问题,用排线连是为了验证排线是正确的。

    然后用排线连到新板,就会出错,CCS显示:(Error -1170 @ 0x0)   Unable to access the DAP;Uniflash点connect显示:Operation failed: Timeout reading data

    你建议的第3条也试了,跟直接用排线一样,4也按照建议断电了。

    2,我只有一块 Launchpad,所以交互烧录没条件

  • 现在进度是:将Launchpad上的J5,J6跳帽拿掉,J5,J6的第三脚(仿真器端)接到新板GPIO1,2脚,同时用排线将Launchpad上的仿真器接到新板,就可以正常连接和debug(见附件图片),
    正常来说,一般直接连接仿真器就可以调试,现在需要单独引入两个线,有点不合逻辑,是不是现在的做法也不对?请指教!谢谢!
    还有一点,上述前提是保证Launchpad上的J17接上短路帽,如果拿掉,使开发板上的CC3220断电,就不能正常连接,这是为什么呢?