Code Warrior USB TAP Problem: Could not connect to CCS

cancel
Showing results for 
Search instead for 
Did you mean: 

Code Warrior USB TAP Problem: Could not connect to CCS

1,074 Views
Contributor I

Greetings everyone, 

I have a LS1021ATWR board which I want to flash using the CodeWarrior TAP probe.

I've installed Code Warrior Development Studio for Armv7 on Win7 x64

I have a problem when I'm trying to start the debugger on CodeWarrior:

 error.PNG

The problem is, when i'm trying to launch ccs.exe manually, it can detect the probe: 

probe_config.PNG

I've looked into this: Can't connect CCS 

and specifically: 

forum_output.PNG

I've tried writing these commands, and I don't have the same output, so I must think there might be some target connection error.

Here is my output: 

commands_output.PNG

Here is what happens when I launch the debugger from CodeWarrior: 

after_launching_debug.PNG

With log v :

after_launching_debug_verbose.PNG

It seems like a connection has been established and then immediatly closed. 

I've conncted the probe on my host pc with the USB cable and on my target jtag pins.

I have to mention that my SWITCHES are on default configuration as on Getting Started Guide for LS 1021ATWR here: http://www.farnell.com/datasheets/2000257.pdf 

When I power on the board, the LED D5 should turn off according to documentation, but it never does and it keeps lighting. The TX/RX of the probe is linking in a green color, but the RUN/PAUSE led is still in an orange color. 

Any help would be apreciated.

Thank you, 

Filip

0 Kudos
8 Replies

21 Views
Contributor I

This is the output I received: 

3.PNG

Note: After I do ccs::reset_to_debug, the D5 led turns itself off.

Filip

0 Kudos

21 Views
NXP TechSupport
NXP TechSupport

Hello Filip,

Please check whether you are using LS1021A 1.0 processor.

In the CCS console, please run "source IDcode.tcl" to get more information.

If you are using reversion 1.0 CPU, please refer to the following procedure.

To debug a target with this processor revision you must use the CFG file "LS102xA_Rev1_ConfigChain.cfg" that can be found at the location
[CW install path]/ARMv7/ARM_Support/Configuration_Files/jtag_chains/. This file will be imported following the next steps:
1. Open "Debug Configurations..." and select your project;
2. Click on the "Edit..." button which can be found next to the drop list called "Connection" from the "Target Settings" view;
3. Click on the "Edit..." button which can be found next to the drop list called "Target";
4. Click on the "Edit..." button which can be found next to the drop list called "Target type";
5. Click "Import..." and then "File System..." and select the file specified above and then click OK until you return
to "Hardware or Simulator Target" window;
6. Select in the "Hardware or Simulator Target" window the initialization and memory files from the project;
7. Click OK until you return to "Debug Configurations..." window and click "Debug".


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

21 Views
NXP Employee
NXP Employee

It could be because of missing RCW.

Try the followings:

delete all

config cc cwtap

ccs::config_chain {ls1020a dap sap2}

display ccs::get_config_chain

ccs::config_template 0 4096 1

ccs::write_reg 0 rcw_src 0x9A

ccs::reset_to_debug

Provide the output.

Adrian

0 Kudos

21 Views
Contributor I

This is my montage: 

20171107_173815.jpg

Note that the D5 led near the boards's jtag pins is always on, as opposed in the Getting Started Documentation I mentioned above.

The RUN/PAUSE Led is always on and orange 

and the TX/RX is blinking in a green color (The picture I Took is in between the blinks)

And these are my switches configuration (It's the default configuration as in the Documentation) :

20171107_173827.jpg

What can I do at this point ? The entire NOR flash of the board has been erased, that's why we've been trying to re-flash it with QorIQ 2.0 SDK included NOR Flash.bin on CodeWarrior.

0 Kudos

21 Views
Contributor I

The output for both commands is the same: 

LS1020A: Core Not responding

Does that mean that it's the connection between the probe and my target ? 

1.png

2.png

0 Kudos

21 Views
Contributor I

I have specifically the TWR-LS1021A 700-28040 revA 

0 Kudos

21 Views
NXP Employee
NXP Employee

Can you try the followings commands in ccs:

config cc cwtap

ccs::config_chain {{8 1} ls1020a dap sap2}

display ccs::get_config_chain

ccs::reset_to_debug

after that:

delete all

config cc cwtap

ccs::config_chain {ls1020a dap sap2}

display ccs::get_config_chain

ccs::reset_to_debug

Provide the output.

Adrian

0 Kudos

21 Views
NXP Employee
NXP Employee

Please provide info about the cpu version you use.

Adrian

0 Kudos