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: cc3220SF

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

Tool/software: Code Composer Studio

Hi Experts 

I would like to understand how to resolve "Error connecting to the target" when I do following with CCS V8 

1) Recently installed CCS V8 

2) CC3220SF- SOP = 100 

3) All jumpers are connected as shown in cc3220/docs/swru463a.pdf document Figure 13 

4) Latest SDK updated using Uniflash V4 

5) Using Energia == CCS simple where trying to Build "Blink" example project 

My Console output is (I'm seeing below error )

Cortex_M4_0: GEL Output:
Memory Map Initialization Complete
Cortex_M4_0: Error connecting to the target: Unable to communicate with the device. Please check your connection.

In my Windows PC - Device manager shows XDS110 class Application/User UART (COM4) under PORTS 

Please help!

Regards,

Rajan 

  • Hi Rajan,

    Please follow the instructions of the getting started guide:
    www.ti.com/.../swru461a.pdf
    You'll need to the put the device in development mode in order to use the jtag.
    Set SOP as "010" to enable both Flash access (through UART) and function mode.

    Br,
    Kobi
  • Hi Kobi

    Thanks for the pointers 

    As clearly mentioned in my previous email, I've already referring to same swru461a.pdf ...!

    I tried SOP [010] still it did not work 

    PS: I tried loading the SDK from uniflash and it works fine - only CCS V8 is having trouble in connecting to device 

    What is that which I'm missing 

    Thanks 

  • I tried SOP [010] still it did not work

    PS: I tried loading the SDK from uniflash and it gets connected to cc3220SF and latest SDK loaded - only CCS V8 is having trouble in connecting to device
  • Hi Rangarajan,

    From the swru461a.pdf, did you add simplelink to your CCS project? I am using CCSv8 and I don't have problem after following the guide.

    -kel
  • Hi Kel

    I've now managed to resolve this connection issue (that was due to Manage config settings which is now pointing to correct variant)

    but now seeing below after Build (Blink example)

    Cortex_M4_0: GEL Output:
    Memory Map Initialization Complete
    Cortex_M4_0: GEL Output:
    Target Reset
    CS_DAP: Error: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 7.0.188.0)
    Cortex_M4_0: JTAG Communication Error: (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.188.0)

    Any help?

    Appreciate it.
  • Hi,

    To be able use JTAG/SWD with CCS you need switch board into development mode using Uniflash software. Also you need to have set target configuration in CCS according set SOP jumpers (CC3220SF or CC3220SF_SWD).

    Jan
  • Hi Jan,

    Below experiments 

    I've set the device in development mode in order to use the jtag.
    Set SOP as "010" to enable both Flash access (through UART) and function mode.

    1) Device is set to Dev Mode  (attached image) in uniflash

    2) With below CCS V8 config

    3) When Verify performed in config - it shows succeeded (below "tail" of screen shot)

    This test will be applied just once.

    Do a test using 0xFFFFFFFF.
    Scan tests: 1, skipped: 0, failed: 0
    Do a test using 0x00000000.
    Scan tests: 2, skipped: 0, failed: 0
    Do a test using 0xFE03E0E2.
    Scan tests: 3, skipped: 0, failed: 0
    Do a test using 0x01FC1F1D.
    Scan tests: 4, skipped: 0, failed: 0
    Do a test using 0x5533CCAA.
    Scan tests: 5, skipped: 0, failed: 0
    Do a test using 0xAACC3355.
    Scan tests: 6, skipped: 0, failed: 0
    All of the values were scanned correctly.

    The JTAG DR Integrity scan-test has succeeded.

    [End]

    4) One "Build" performed could see 

    Cortex_M4_0: GEL Output:
    Memory Map Initialization Complete
    Cortex_M4_0: GEL Output:
    Target Reset

    5) Now I'm pressing "reset" in board and seeing flowing error 

    Cortex_M4_0: GEL Output:
    Memory Map Initialization Complete
    Cortex_M4_0: GEL Output:
    Target Reset
    CS_DAP: Error: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 7.0.188.0)
    Cortex_M4_0: JTAG Communication Error: (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.188.0)

    6) Also in Target configuration window - could see below 

    any help???

  • Hi,

    Please make sure that you have connected JTAG jumpers (TCK, TMS, TDI, TDO). Also remove firmware image using Uniflash software (you can have uploaded code which switch JTAG pins to alternate functions). Do you have selected CC3220SF.ccxml target configuration file?

    Jan

  • Hi Jan

    Thanks for the quick update...Yes it's already enabled - could see the same under my target configuration

     

  • Hi,

    Can you check other points above? That means:
    - JTAG jumpers configuration
    - remove firmware file (/sys/mcuflashimg.bin) from image

    Jan
  • Hi Rangarajan G,

    Did you solve the issue?

    Br,
    Kobi
  • Hi Kobi

    No, (feeling bad) I'm still unable to flash (even Blinky ) to my cc3220SF LP

    I did lot of trials after referencing to (swru461a_getting Started User Guide) -  documents and found following 

    CCS version 8

    Uniflash Version 4.3.0.1802

    Energia version 1010E0017

    1) I can build + debug (setting break points) using CCS example where I can see some output from Tera term using COM4 

    2) I can load latest SDK in my cc3220SF (as per steps mentioned in User guide) and flashing is completed successfully. 

    3) I can connect to Uniflash with cc3220SF, can check available memory add Keys+user files etc., (as per steps mentioned in User guide)

    4) I did create & program as per the user guide which does not  result in any error - this means my mode and physical SOP connections are good! but once the image creation and flashing is done nothing happens (LED not bilking) 

    Summary: All that I can visually infer is that my CC3220SF is in working condition with proper SoP setting and can connect to CCSv8 and Uniflash  

    My Problem is that:

    1) I still yet to figure out on how to Build+Debug my Energia Example code - say Blink after import Energia code to CC3220SF in CCS V8


    I'm still getting this error "

    Error connecting to the target:
    Unable to communicate with the device. Please check your connection.

    [or]

    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).

     

    2) I still unable to flash a bin file (say already compiled blinky example file) in TI Uniflash 

    If I can get pointers on above 1 & 2 items - that would be great.

    Regards,

    Ranga

  • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/968/CC3220SF_5F00_XDS110.ccxmlYou can try using the attached target_configuration but I suggest that you try to import and run an example from the latest CC3220 SDK (2.10.0.4) by  carefully following the instructions in the "getting started guide: (www.ti.com/.../swru461a.pdf).

    If this will work, you might have an issue with the Energia project which is supported through a different forum ()

    Br,

    Kobi

  • Hi

    Just was curious to know is there is any online webinar or training available for cc3220SF w.r.t importing Energia code? any document or pointers can be useful 

    I guess ccs V8 has support of import Energia files - it would also be good if we have some basic steps which can showcase user on "how-to" with cc3220SF 

    Eagerly waiting ... and thanks for looking into this request.

    Regards,

  • Hi Rangarajan,

    Please submit Energia related questions in their dedicated forum (http://forum.43oh.com/forum/125-energia-tivaccc3xxx/).

    Br,

    Kobi

  • Hi Kobi

    Finally!! i've made some progress now, using "CC3220SF.ccxml target configuration file" other than selecting the default <project>.ccxml file
    Now, my INO code is getting compiled and Build can happen without any issues :)

    I could see the necessary o/p (string) in Tera Term when connected during debug.



    Now, I used BIN file which exist CCS workspace/Debug folder when used in UNIFLASH to Program (Create & Program) the operation shows 100% complete (NO error/issues)

    Observed, that TeraTerm does not show "string" value as I saw during Build/debug ... Am I missing something?

    Thanks!

    Ranga
  • Hi Ranga,

    I assume you have already found a solution for this one so I'm closing this thread.
    If the issue is still relevant, please open a new thread.

    br,
    Kobi