CW10.5.1 CCSProtocolPlugin : Failed to reset the target

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

CW10.5.1 CCSProtocolPlugin : Failed to reset the target

1,688 Views
harryz
Contributor I

Dear Sir,

Please help me!

On A 2040 Bare board,  I want to program uboot into the nor flash. but always shows

“Failed to reset the target”

The details are below:

  1. Start CW 10.5.1  (build ID:160128)

 PPC 2040

2.Push debug button:

I want to program the uboot into the nor falsh

Always shows: “ failed to reset the target “  Please tell me why?

 

 

Log below:

ccs_open

ipaddr = 127.0.0.1

port = 41475

timeout = 15

serverh = 0

ccs_open; ccs_error = 10

Error message: Connection refused

ccs_open

ipaddr = 127.0.0.1

port = 41475

timeout = 15

serverh = 0

ccs_open; ccs_error = 0

ccs_get_connection_count

serverh = 0

count = 1

ccs_get_connection_count; ccs_error = 0

ccs_available_connections

serverh = 0

count = 0

ccs_available_connections; ccs_error = 0

ccs_available_connections

serverh = 0

count = 0

ccs_available_connections; ccs_error = 0

ccs_config_cc

serverh = 0

config_string = cwtap:0

ccs_config_cc; ccs_error = 0

ccs_available_connections

serverh = 0

count = 1

ccs_available_connections; ccs_error = 0

ccs_cc_version

serverh = 0

cc = 0

version.major = 0

version.minor = 0

ccs_cc_version; ccs_error = 0

ccs_set_timeout

serverh = 0

timeout = 15

ccs_set_timeout; ccs_error = 0

ccs_available_connections

serverh = 0

count = 1

ccs_available_connections; ccs_error = 0

ccs_config_server

serverh = 0

cc = 0

server_config = 0

value = 1000

ccs_config_server; ccs_error = 0

ccs_get_config_chain

serverh = 0

device_list: (size = 0)

ccs_get_config_chain; ccs_error = 0

ccs_config_chain

serverh = 0

cc = 0

device_list: (size = 1)

device[0]:: core_type=p2040(173)

ccs_config_chain; ccs_error = 0

ccs_get_config_chain

serverh = 0

device_list: (size = 5)

ccs_get_config_chain; ccs_error = 0

ccs_get_config_chain

serverh = 0

device_list: (size = 5)

device[0]:: core_type=p2040(173)

device[1]:: core_type=e500mc core(119)

device[2]:: core_type=e500mc core(119)

device[3]:: core_type=e500mc core(119)

device[4]:: core_type=e500mc core(119)

ccs_get_config_chain; ccs_error = 0

ccs_send_message

coreh = [serverh:0;cc_index:0;chain_pos:1]

message = 3

ccs_send_message; ccs_error = 0

ccs_read_register

coreh = [serverh:0;cc_index:0;chain_pos:1]

index = 30000

count = 1

size = 8

value: (size =

 00000000 FE000000

ccs_read_register; ccs_error = 0; duration=7 ms

ccs_read_memory

coreh = [serverh:0;cc_index:0;chain_pos:0]

addr = [space:0x92;size:4;address_hi:0x00000000;address_lo:0xfe0e2094]

data: (size = 4)

 00000000

ccs_read_memory; ccs_error = 0; duration=4 ms

ccs_write_memory

coreh = [serverh:0;cc_index:0;chain_pos:0]

addr = [space:0x92;size:4;address_hi:0x00000000;address_lo:0xfe0e2094]

data: (size = 4)

 0000000F

ccs_write_memory; ccs_error = 0; duration=3 ms

ccs_read_register

coreh = [serverh:0;cc_index:0;chain_pos:1]

index = 200005

count = 1

size = 4

value: (size = 4)

 80230032

ccs_read_register; ccs_error = 0; duration=7 ms

ccs_reset_to_mixed

chain_pos: (size = 5) { 0 (halt) 1 (halt) 2 (halt) 3 (halt) 4 (halt) }

ccs_reset_to_mixed; ccs_error = 39; duration=782 ms

Error message: p2040: Core not responding

ccs_reset_to_mixed

chain_pos: (size = 5) { 0 (halt) 1 (halt) 2 (halt) 3 (halt) 4 (halt) }

ccs_reset_to_mixed; ccs_error = 39; duration=779 ms

Error message: p2040: Core not responding

ccs_reset_to_mixed

chain_pos: (size = 5) { 0 (halt) 1 (halt) 2 (halt) 3 (halt) 4 (halt) }

ccs_reset_to_mixed; ccs_error = 39; duration=779 ms

Error message: p2040: Core not responding

ccs_get_subcore_error

serverh = 0

cc = 0

error = 5

chain_pos = 0

ccs_get_subcore_error; ccs_error = 0; duration=3 ms

ccs_available_connections

serverh = 0

count = 1

ccs_available_connections; ccs_error = 0

ccs_delete_cc

serverh = 0

count = 0

ccs_delete_cc; ccs_error = 0

ccs_kill_server

serverh = 0

ccs_kill_server; ccs_error = 0

 

0 Kudos
5 Replies

1,672 Views
harryz
Contributor I

Dear YipingWang,

Sorry!  How to use hard-coaded RCW?

 

Thank you!

0 Kudos

1,668 Views
harryz
Contributor I

Dear YipingWang,

Now, I want to use a JTAG configuration file to override RCW. 

My steps and result see the attached file.

Thanks you .

Harry zhang

0 Kudos

1,634 Views
yipingwang
NXP TechSupport
NXP TechSupport

The device can be initialized with a hard-coded RCW option, selected by the
cfg_rcw_src[0:4] configuration inputs.

The following table describes hard-coded RCW configuration options.

For details, please refer to P2040 Reference Manual.

yipingwang_0-1624525170402.png

 

0 Kudos

1,678 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to page 6 in attached PPT about JTAG hardware design.

Please ensure HRESET not tied to TRST, HRESET to the processor exclusive to COP/JTAG header.

Please use hard-coded RCW.

1,674 Views
harryz
Contributor I

Dear YipingZhang,

  Thank you for your reply!

    My board uboot had been programed before, And the board uboot  had  booted successfully.

I just have a mistake  to override the uboot with a wrong uboot.bin file .  As a result, my board can't boot.   So ,I want to program the flash with a correct uboot.bin again.  Always shows " Failed to  reset the target".

   I'm looking forward to your reply again. 

Thanks a lot.

Harry Zhang

 

 

 

0 Kudos