DDRv gives me this error: Error configuring the target! - 'Context path CCSR unresolved'

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DDRv gives me this error: Error configuring the target! - 'Context path CCSR unresolved'

ソリューションへジャンプ
1,897件の閲覧回数
tiagobrusamarel
Contributor V

Hello,

 

When trying to run the tool on my board I got this error:

 

#################### Result for: write_read_compare_test ###### Run  1 #############################

 

Test was not executed!

 


Err. capture registers:
0xE20, 0x100000000      0xE24, 0x100000000      0xE28, 0x100000000      0xE40, 0x100000000     
0xE44, 0x100000000      0xE48, 0x100000000      0xE4C, 0x100000000      0xE50, 0x100000000     
0xE54, 0x100000000      0xE58, 0x100000000      

 

Dump:
0xF00, 0x100000000      0xF04, 0x100000000      0xF08, 0x100000000      0xF0C, 0x100000000     
0xF10, 0x100000000      0xF14, 0x100000000      0xF18, 0x100000000      0xF1C, 0x100000000     
0xF20, 0x100000000      0xF24, 0x100000000      0xF28, 0x100000000      0xF2C, 0x100000000     
0xF30, 0x100000000      0xF34, 0x100000000      0xF38, 0x100000000      0xF3C, 0x100000000     
0xF40, 0x100000000      0xF44, 0x100000000      0xF48, 0x100000000      0xF4C, 0x100000000     
0xF50, 0x100000000      0xF54, 0x100000000      0xF58, 0x100000000      0xF5C, 0x100000000     
0xF60, 0x100000000      0xF64, 0x100000000      0xF68, 0x100000000      0xF6C, 0x100000000     
0xF70, 0x100000000      0xF74, 0x100000000      0xF78, 0x100000000      0xF7C, 0x100000000     
0xF80, 0x100000000      0xF84, 0x100000000      0xF88, 0x100000000      0xF8C, 0x100000000     
0xF90, 0x100000000      0xF94, 0x100000000      0xF98, 0x100000000      0xF9C, 0x100000000     
0xFA0, 0x100000000      0xFA4, 0x100000000      0xFA8, 0x100000000      0xFAC, 0x100000000     
0xFB0, 0x100000000      0xFB4, 0x100000000      0xFB8, 0x100000000      0xFBC, 0x100000000     
0xFC0, 0x100000000      0xFC4, 0x100000000      0xFC8, 0x100000000      0xFCC, 0x100000000     
0xFD0, 0x100000000      0xFD4, 0x100000000      0xFD8, 0x100000000      0xFDC, 0x100000000     
0xFE0, 0x100000000      0xFE4, 0x100000000      0xFE8, 0x100000000      0xFEC, 0x100000000     
0xFF0, 0x100000000      0xFF4, 0x100000000      0xFF8, 0x100000000      0xFFC, 0x100000000     

 


Data:
0x00000000  

 

--------------------------------------------------------------------
Exception: (<<Error configuring the target! - 'Context path CCSR unresolved'>>)
--------------------------------------------------------------------
Target system was initialized 0 times and it took 0.000000 seconds.
Target system effective test execution took 0.000000 seconds.

 

I'm connection to a target in a JTAG chain of two devices (one is the T1022). The original "connect_call.py" from the DDRv tool was modified in order to achieve a successful connection with this JTAG chain configuration.

 

The tool works fine if a restore the original "connect_call.py" file and use a board with only the T1022 in the JTAG chain.

ラベル(1)
0 件の賞賛
返信
1 解決策
1,646件の閲覧回数
tiagobrusamarel
Contributor V

I found the problem: in line 107 of the modified "connect.py" I changed from "CCSR = getCCSRContextPath()" to "CCSR = get_ccsr_space()" and it worked as expected.

元の投稿で解決策を見る

0 件の賞賛
返信
8 返答(返信)
1,646件の閲覧回数
addiyi
NXP Employee
NXP Employee

Please attache ccs log when this error is happen. 

Adrian

0 件の賞賛
返信
1,646件の閲覧回数
tiagobrusamarel
Contributor V

Please find the requested log below.

loading history file ... 24 events added
CodeWarrior Connection Server console display active (Tcl8.4.6 / Tk8.4.6)
Loading CCSAPI Tcl interface (/opt/Freescale/CodeWarrior_PA_10.5.1/eclipse/Optimization/target-connection/cdde/ccs/bin/ccstcl.so)...
Loading Svfburner (/opt/Freescale/CodeWarrior_PA_10.5.1/eclipse/Optimization/target-connection/cdde/ccs/bin/svfburner.so)...
CC config string is invalid
Server listening on port: 41475
Server listening on port: 50000
Clients allowed from all hosts
No clients denied
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:22:47 2016
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:22:56 2016
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:07 2016
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:23:10 2016
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:16 2016
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:23:18 2016
(bin) 25 % log v
CCS Windows Release Build 439p0
verbose logging
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:34 2016
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=0,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=0,cc=0,count=1,*devlist,*generic)
  devlist: t10xx
reset_to_debug(serverh=0,cc=0)
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=0,cc=0)
*** unhandled(command=163) ***
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:23:37 2016
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:38 2016
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=0,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=0,cc=0,count=1,*devlist,*generic)
  devlist: t10xx
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=0,cc=0)
*** unhandled(command=163) ***
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:23:38 2016
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:40 2016
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=0,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=0,cc=0,count=1,*devlist,*generic)
  devlist: t10xx
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=0,cc=0)
*** unhandled(command=163) ***
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:23:40 2016
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:43 2016
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=0,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=0,cc=0,count=1,*devlist,*generic)
  devlist: t10xx
reset_to_debug(serverh=0,cc=0)
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=0,cc=0)
*** unhandled(command=163) ***
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:23:46 2016
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:47 2016
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=0,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=0,cc=0,count=1,*devlist,*generic)
  devlist: t10xx
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=0,cc=0)
*** unhandled(command=163) ***
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:23:48 2016
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:49 2016
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=0,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=0,cc=0,count=1,*devlist,*generic)
  devlist: t10xx
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=0,cc=0)
*** unhandled(command=163) ***
CCSAPI connection #1 from localhost closed at Wed Dec  7 10:23:50 2016
CCSAPI connection #1 accepted from localhost at Wed Dec  7 10:23:52 2016
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=0,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=0,cc=0,count=1,*devlist,*generic)
  devlist: t10xx
reset_to_debug(serverh=0,cc=0)
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=0,cc=0)
*** unhandled(command=163) ***
(bin) 25 %

0 件の賞賛
返信
1,646件の閲覧回数
addiyi
NXP Employee
NXP Employee

devlist: t10xx indicate that you use the original connect.py and connect_call.py. When using the modify files, both devices should be visible in ccs.

Adrian

0 件の賞賛
返信
1,646件の閲覧回数
tiagobrusamarel
Contributor V

Please find the new log below. This time with the modified files "connect.py" and "connect_call.py". Now it doesn't even connect to the target.

CCS Windows Release Build 439p0
verbose logging
CCSAPI connection #1 accepted from localhost at Wed Dec  7 13:26:06 2016
check_min_version(serverh=0,*version)
  api version: 00000004 00000006
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=0,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=0,cc=0,count=2,*devlist,*generic)
  devlist: t10xx,unknown(0)
reset_to_debug(serverh=0,cc=0)
available_connections(serverh=0,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=0,cc=0)
*** unhandled(command=163) ***
CCSAPI connection #2 accepted from localhost at Wed Dec  7 13:26:09 2016
check_min_version(serverh=1,*version)
  api version: 00000004 00000006
available_connections(serverh=1,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
cc_version(serverh=1,cc_index=0,index=0,*version)
config_server(config_reg=0,config_data=0x00001408)
config_chain(serverh=1,cc=0,count=2,*devlist,*generic)
  devlist: t10xx,unknown(0)
reset_to_debug(serverh=1,cc=0)
available_connections(serverh=1,*count,*cc)
  connections: {0,73,0xa9fe2d8e}
get_config_chain(serverh=1,cc=0)
*** unhandled(command=163) ***
CCSAPI connection #1 from localhost closed at Wed Dec  7 13:26:12 2016
CCSAPI connection #1 from localhost closed at Wed Dec  7 13:26:12 2016
(bin) 25 %

0 件の賞賛
返信
1,646件の閲覧回数
addiyi
NXP Employee
NXP Employee

This is the same situation as before. My guess is that the reset of your board is not consistent. Try to hard reset your board, then use DDRv to connect to it. Also, you could try followings ccs commands to make sure reset is working ok:

config cc cwtap

ccs::config_chain t10xx

ccs::reset_to_debug

Adrian

0 件の賞賛
返信
1,647件の閲覧回数
tiagobrusamarel
Contributor V

I found the problem: in line 107 of the modified "connect.py" I changed from "CCSR = getCCSRContextPath()" to "CCSR = get_ccsr_space()" and it worked as expected.

0 件の賞賛
返信
1,646件の閲覧回数
tiagobrusamarel
Contributor V

Reset is working as expected.

0 件の賞賛
返信
1,646件の閲覧回数
tiagobrusamarel
Contributor V

I'm using the original "connect.py" only. May be the problem... gonna check again.

0 件の賞賛
返信