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: CC3220sf wifidoorlock- Error- 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 mor

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

Hello everyone,

I have been working on CC3220SF for a whiile now using the cc3220sf launhpad.

I have dumped the code using uniflash initially to get into development mode later i have loaded the example applications from ti explorer Code composer studio(CCS Version: 9.2.0.00013 ) and everything is working fine.

Now i am building my application on the reference design (TI Designs: TIDC-01005 Battery-Powered, Smart-Lock Reference Design With Cloud Connectivity Using SimpleLink™ Wi-Fi) which is built on CC3220S.

i have downloaded the code and imported to my workspace  and I have changed the device to CC3220SF from CC3220S in properties and have added the required .cmd file(CC3220SF_LAUNCHXL_TIRTOS.cmd)  .

and have built it successfully after adding the required SDK and other plugins without errors.

ISSUE:

Now the issue is i am getting the following error when try to debug the code from CCS .

I can see the firmware loading but when i press the run(play) button in CCS i observe the following error.

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 8.3.0.00003)
Cortex_M4_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

What might be issue?

Note: All the other example firmwares are working fine

Regards,

Sanath Rai

  • Hi,

    It is likely that your device is not in development mode. You should to use Uniflash and switch your device into development mode. Additionl information you find here. Another option may to be wrong jumpers settings, different SOP mode and CCS target configuration or using TDI, TDO pins at host code.

    Jan

  • Hello Jan,

    Thank you for the reply.

    I have already put the device in development mode and worked on many applications.

    Now when i build the wifidoorlock example i am facing this issue. so your first point is definitely not the issue.

    any particular changes need to be done in firmware configuration? as it was originally built for cc3220s launchpad.

    Regards,

    Sanath rai

  • Hi,

    But please connect Uniflash and check that device is in development mode first. Maybe you done some unintended changes which disabled your development mode. Please insert here screenshot from Uniflash. Insert screenshot of your LaunchPad as well (I want to check settings of your jumpers).

    I have no experience with this particular example (wifidoorlock). But maybe this example uses TDI and TDo pins for a other mode (e.g. GPIO). This can be check in TI-Drivers configuration file. If so, you need to change SOP mode to SWD and change target configuration in CCS to SWD as well.

    Jan

  • Hi,

    I have connected to Uniflash and put it in development mode and then Using CCS i have debugged the uartecho example code of CC3220sf and debugged successfully and i can see the output in my serial port.

    so that ensures that it is in development mode right?

    but for this example(wifidoorlock) i am getting this error.

    so i feel that your point of JTAG configuration may be the  issue as i saw in their original  cc220s configuration file which they have built they have used SWD for programming.

    Regards,

    Sanath

  • Hi Sanath,

    If you want to use SWD for debug you need to:

    • change SOP mode to SWD: (2-1-0) - 0-0-1
    • change target configuration to SWD in CCS (select CC3220SF_SWD in target configuration)

    According you description it looks that your CC3220 is in development mode. Your SOP mode at your board is set to four wire JTAG. After changing SOP mode to SWD, it may to be required disconnect jumpers TDO and TDI to be able use this pins for other intended purpose.

    Jan

  • Hi Jan,

    I have configured it for swd in target configuration file and have set the sop mode to 0-0-1 .

    but now i am getting the following error

    Error connecting to the target:
    (Error -615 @ 0x0)
    The target failed to see a correctly formatted SWD header. The
    connection to the target may be unreliable. Try lowering the
    TCLK setting before trying again.
    (Emulation package 8.3.0.00003)

    sanath

  • Hi Jan,

    Finally the error is gone.

    after doing the settings given by you i reset the device and then debugged using CCS and now the code is running.

    thank you so much.now i will work on my application on it.

    Regards,

    Sanath