ls102x CMSIS-DAP JTAG chain issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ls102x CMSIS-DAP JTAG chain issue

3,419 Views
andrey_knnv
Contributor III

Hi All,

I have ls1021atwr and custom board which is very close to ls1021atwr by design.

I can attach to ls1021atwr from CW via CMSIS-DAP with no errors,

but if I use the same way for connecting to custom board CW hungs at 82% point

for at about 3 min. I get "Failed to correctly configure the JTAG chain" message after.

I can see all JTAG signals (TDI,TDO,TMS,TCK,TRTS) on oscilloscope during connection progress.

It looks like there is no difference.

Can anyone point me how to figure out what is going wrong?

 Thank you.

Tags (1)
25 Replies

234 Views
andrey_knnv
Contributor III

Hi Adrian,

No. RCW is available in SD card. U-boot  (first stage) tries to start (I see output in console) but hungs on the way.

I used hardcoded RCW 0x9A and 0x9C. But situation is the same. CW hungs at 82% connection progress.

So I believe RCW is not an issue in my case.

On custom board PORESET_B and RESET_REQ_B signals are absolutely the same as on ls1021atwr board.

I've compared them on both boards for similar RCW.

CCS console appears for a moment, not accessible and disappears before "Failed to correctly configure the JTAG chain" message. So I can't investigate what happened in details.

Is there any way for check if CW can "see" anything in JTAG chain using CMSIS-DAP?

Regards,

Andrey.

0 Kudos

234 Views
addiyi
NXP Employee
NXP Employee

You can use ccs for testing the connection to the SoC.

Go to \Common\CCS\bin\ and open ccs.exe. This will open ccs console. In ccs console enter the followings commands:

config cc cmsisdap

ccs::config_chain {ls1020a cmsisdap}

ccs::get_config_chain

ccs::all_run_mode

Provide the output for these commands.

Adrian

234 Views
andrey_knnv
Contributor III

Hi Adrian,

Thank you for pointing!

Commands you're suggested work just fine on ls1021atwr board. But on custom board there is a long hung after

ccs::config_chain {ls1020a cmsisdap}

command.

Output for these commands is:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

loading history file ... 26 events added
CodeWarrior Connection Server console display active (Tcl8.4.12 / Tk8.4.12)
Loading CCSAPI Tcl interface (C:/Freescale/CW_ARMv7_v10.0.7/ARMv7/ccs/bin/ccstcl.dll)...
Loading Svfburner (C:/Freescale/CW_ARMv7_v10.0.7/ARMv7/ccs/bin/svfburner.dll)...
There are no command converters configured
Server listening on port: 41475
Clients allowed from all hosts
No clients denied
(bin) 27 % log v
CCS Windows Release Build 433p0
verbose logging
(bin) 28 % config cc cmsisdap
Identified CMSIS-DAP SERNUM: 200002015931CE44A4CF11BC
Firmware version: 0201
0: CMSIS-DAP (cmsisdap) CC software ver. {0.3}
(bin) 29 % ccs::config_chain {ls1020a cmsisdap}
LS1020A: Core not responding
(bin) 30 % ccs::get_config_chain
(bin) 31 % ccs::all_run_mode
Chain not configured
(bin) 32 %

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In mean time at hung process I can see all JTAG signals at U44,U34 according to SCH-28040 PDF: SPF-28040.

(Keep in mind that design of custom board is the same for JTAG part).

K20_TRST_B_18 is constantly HIGH. Others are on attached pictures.

Do you have any idea what may be wrong?

BTW. Is there any description of CSS commands? I can't find anything useful (only help in console which is very poor).

0 Kudos

234 Views
addiyi
NXP Employee
NXP Employee

From the error, my first impresion is that the reset is not executed correctly. No core can be found on chain. Reset of the SoC is drive by CPLD on twr board. So, you should have the same behavior of reset on both twr and custom board, after that you can try again the ccs command to check the chain.

Adrian

0 Kudos

234 Views
andrey_knnv
Contributor III

Adrian,

We've compared behaviour of PORESET_B_18, HRESET_B_18 and RESET_REQ_B_18 signals on ls1021atwr and on custom board. They are identical.

For example if setup RCW for booting from SD card but remove SD card from the slot signal looks like on attached picture.

Or you mean "Reset of the SoC" something else?

0 Kudos