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.

CCS/CC3220SF-LAUNCHXL: Error -1170 when trying to connect to CC3220SF

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, UNIFLASH

Tool/software: Code Composer Studio

Hello, I am trying to run an example app on a CC3220 LaunchPad development kit. I have downloaded the "out_of_box_CC3220SF_LAUNCHXL_tirtos_ccs" demo app and compiled it successfully in CCS. Now I am trying to deploy/debug it on the target. However when I do that I get an error:

Error connecting to the target:

(Error -1170 @ 0x0)

Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).

(Emulation package 7.0.100.1)

I have tried resetting and power cycling the board, but that makes no difference. I'm not sure how to adjust the TCLK - I can't see it anywhere in the settings. 

Can anyone help with this problem?

Paul.

  • Paul,

    Is your board set to either JTAG or SWD modes instead of "Flash" or "Flash/FUNC" via the SOP jumpers? This is one of the leading causes for that problem.

    Also, make sure the jumpers for the JTAG / SWD connections are in place: TCK, TDI, TDO, TMS, RST, VSENSE...

    Hope this helps,
    Rafael
  • I have attached a picture of my CC3220 which shows the jumper settings. I have tried the SOP jumper in 2, 1, and 0 and with no jumper. It doesn't work with any of those configurations.
  • I do now have a different error message:
    Error connecting to the target:
    (Error -261 @ 0x0)
    Invalid response was received from the XDS110.
    (Emulation package 7.0.100.1)
  • Paul,

    The configuration shown in the photograph will not work. If you remove all jumpers (edit: see my post below) and set your configuration to "JTAG" on the target configuration file, this should work fine.

    Also, the Vbat jumper does not seem to be inserted - this will keep the CC3220 powered down, which will also explains the original problem.

    Hope this helps,

    Rafael

  • I have removed all the jumpers as you suggested (see new photo). The JTAG setting was already active so that didn't need to be changed. This has made no difference. I still have the following error message:

    Error connecting to the target:

    (Error -2131 @ 0x0)

    Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).

    (Emulation package 7.0.100.1)

  • Also where is the documentation about how these jumpers should be set? It seems that they are absolutely critical (parts of the circuit being powered or not) and yet I can find hardly any mention of them in the datasheets that I've seen.
  • Hi Paul,

    Please check if your CC3220SF is in development mode. Error -1170 is typical when device is in production mode see: e2e.ti.com/.../2131099

    BTW ... when you removed all jumpers it cannot work. Because you disconnected pins for JTAG (TMS, TCK, etc.) and what is worse you disconnect power supply for CC3220 chip itself.

    Please follow:

    - connect jumpers to default position

    - using Unilfash software set your CC3220SF into development mode (SOP2-1, SOP1-0, SOP0-0)

    - set JTAG is CCS target (SOP2-0, SOP1-0, SOP0-0)

    - start your development :)

    Jan

  • I removed the jumpers because that was the recommendation! What is the default jumper position? Where is the documentation that shows what the jumpers are for, what the default is and what they should be set to for different modes of usage?

    I have tried to use Uniflash to set the programming mode, but I have never successfully managed to connect. "Operation failed: Timeout reading data" is the error on this.

    Please send me a photo of the correct jumper configuration.
  • Hi,

    Please follow instruction at www.ti.com/lit/ug/swru473/swru473.pdf
    I think advice from Rafael was related to SOP jumpers, not all jumpers at kit.

    Jan
  • Paul,

    Sorry, yes. Re-reading my post I saw how my words could cause confusion. Please apologize.

    As Jan mentioned, my recommendation was to remove ALL jumpers but only from the SOP set.

    So, recapping the whole thing:

    1. Put back all the jumpers (except the SOP) on their default positions as shown in your first photograph.

    2. Insert a jumper in the Vbat position.

    3. Try to connect with the "JTAG " configuration shown in the screenshot I sent in my above post.

    4. If that does not work, proceed to verify if the device is in "Development" mode in Jan's post.

    5. Rinse and repeat step 3.

    Hope this helps,

    Rafael

  • Hi Rafael, thanks very much. This has solved my problem with connecting and running a demo app debug session on the CC3220 dev kit.

    The next thing that I want to do is to use the CC3220 dev kit to flash and run JTAG debug sessions on an external PCB. I think that I can connect the jtag cable to J4 and if I get the jumper settings correct that should be enough (the external PCB is known working hardware with a CC3220SF). Can you confirm the jumper settings for this use case?

    Paul.
  • Paul,

    Sorry about the delay. The Flash operation on a CC32xx device is a bit different than a regular one but, when programming an external board, you will have to remove all jumpers from the launchpad (not only the SOP ones) and connect each JTAG (or SWD) and UART (TX/RX) pin to the target board (don't forget the GND).

    The device on the target board needs the bootstrap jumpers (as in the Launchpad's SOP) to set its mode of operation (either JTAG, SWD or the flash programming operation).

    One reference I found with additional information about how the flash programming works during development is shown at the following link:
    e2e.ti.com/.../2301351

    I will get back to this thread if I find any additional information that may be helpful.

    Hope this helps,
    Rafael
  • So can I confirm that this is the correct cable and jumper connections on the CC3220 Launchpad board for using JTAG to flash and debug an external board that has a CC3220SF processor on it?

  • Hi,

    Yes, that is correct (in my previous post I forgot the launchpad conveniently had the ARM 10-pin connector).

    Keep in mind this connector does not carry the UART signals - you have to pull these signals from the launchpad or from an external serial to USB adapter.

    Regards,
    Rafael