Unable to boot P2041rbd

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

Unable to boot P2041rbd

2,907 Views
ayhmi
Contributor II

Hello,

I am using P2041RDB. While i was trying to change the boot firmware, i erased the flash and wrote a wrong image to the NOR flash. Now i can't access to the cores with debug probes. I am using two different debug probes one of which is USB Tap. I realized that i corrupted the RCW settings according to the discussion board is unable to boot. I tried the instructions in Section "Setting a Remote System to Use a JTAG Configuration File" and "A.2 Using JTAG Configuration File to Override RCW" in document "Targeting_PA_Processors.pdf" but now JTAG fails with message "Failed To configure the JTAG chain". I tried the instructions in i am getting "Failed to configure the JTAG chain" when trying to test RCW Override functionality of ... but i couldn't override RCW. Please help me to re configure my board to its initial state.

Thanks in advance,

Omer

Labels (1)
Tags (3)
0 Kudos
Reply
11 Replies

2,338 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Omer Eskizara,


Please refer to the attached configuration.

If your problem remains, please attach the CCS log to us.

Please enable CCS log from "Run->Debug Configurations -><project>-core0_RAM_<processor>-Connect(Download)->Edit...->Advanced->Advanced CCS setting->Enable logging", and connect to the target from "Run->Debug Configurations-><project>-core0_RAM_<processor>-Connect(Download)->Debug”, the CCS log will be displayed in the console panel in CodeWarrior IDE.

  If the CCS log in the console is truncated, please enlarge the console buffer from Window->Preferences->Run/Debug->Console->uncheck "Limit console output".

  (Please open the console panel from Window->Show View->Console, and if nothing displayed, please choose the correct session on the right top icon in the panel.)


Have a great day,
Yiping

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

0 Kudos
Reply

2,338 Views
ayhmi
Contributor II

Hello Yiping Wang,

I already set initialization script as P2041rdb_init_core.tcl. ccs log is as following:

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 = 10

  Error message: Connection refused

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 = 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 = utap:0

  ccs_config_cc; ccs_error = 0

ccs_available_connections

  serverh = 0

  count = 1

  ccs_available_connections; 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 = 1

  version.minor = 3

  ccs_cc_version; ccs_error = 0

ccs_set_timeout

  serverh = 0

  timeout = 15

  ccs_set_timeout; ccs_error = 0

ccs_config_server

  serverh = 0

  cc = 0

  server_config = 0

  value = 10230

  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_config_template

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

  config_reg = 2

  config_data = 1

  ccs_config_template; ccs_error = 0

ccs_write_register

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

  index = 210001

  count = 1

  size = 4

  value: (size = 4)

  50600000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210002

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210003

  count = 1

  size = 4

  value: (size = 4)

  1E1C0000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210004

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210005

  count = 1

  size = 4

  value: (size = 4)

  649FA0C1

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210006

  count = 1

  size = 4

  value: (size = 4)

  C3C02000

  ccs_write_register; ccs_error = 0; duration=10 ms

ccs_write_register

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

  index = 210007

  count = 1

  size = 4

  value: (size = 4)

  FE800000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210008

  count = 1

  size = 4

  value: (size = 4)

  40000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210009

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210010

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210011

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210012

  count = 1

  size = 4

  value: (size = 4)

  D0030F07

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210013

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210014

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210015

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_write_register

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

  index = 210016

  count = 1

  size = 4

  value: (size = 4)

  00000000

  ccs_write_register; ccs_error = 0; duration=0 ms

ccs_reset_to_debug

  serverh = 0

  cc = 0

  ccs_reset_to_debug; ccs_error = 39

  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=0 ms

ccs_kill_server

  serverh = 0

  ccs_kill_server; ccs_error = 0

0 Kudos
Reply

2,338 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Omer Eskizara,


Which version p2041rdb do you use? Please make sure you use the appropriate CW jtag configuration file.

Please try whether hard-coded RCW would be helpful.

For P2041RDB-PB set SW1[5..1]:RCW_SRC[0:4] to a hard-coded RCW option 0b1_0010.



Have a great day,
Yiping

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

0 Kudos
Reply

2,338 Views
ayhmi
Contributor II

Hello Yiping Wang,

I am using P2041RDB-PC. In jtag_chains folder there are configuration files "P2041RDB_RCW_1000-533-1066.txt" and "P2041RDB_RCW_1000-750-1333.txt" i tried both but none of them working. I tried changing RCW_SRC[0:4] to a hard-coded RCW option 0b1_0010 which yields the same ccs log.

Thanks,

Omer

0 Kudos
Reply

2,338 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Omer Eskizara,


For P2020RDB-PC, please use the attached JTAG configuration file, it's better to use CW 10.4.

If you use hard coded RCW, please don't use CW JTAG configuration file, please create a new bared board project and connect to the target.


Have a great day,
Yiping

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

0 Kudos
Reply

2,338 Views
yaxizhang
Contributor I

I've encountered the same problem with P2020RDB-PCA board. Can you send me a p2020 jtag file that match the P2020RDB-PCA board. I'm using Code Warrior 10.5, but there is no related jtag file with p2020.

Thank you so much if you could help me !

Yaxi

0 Kudos
Reply

2,338 Views
ayhmi
Contributor II

Hello Yiping Wang,


I also tried with CodeWarrior 10.4.0. Problem still exists. I couldn't manage to show CCS log on console but i attached the diagnostic information.


Thanks,

Omer

0 Kudos
Reply

2,338 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Omer Eskizara,


You didn't specify the correct connection type, please choose "USB TAP" from Run->Debug Configurations-><project>-core0_RAM_<processor>-Connect(Download)->Edit->Connection type, because you are using old product USB TAP rather than CodeWarrior TAP.


USB TAP is also the probably cause, do you have other target to verify whether no problem with this TAP


Thanks,

Yiping



0 Kudos
Reply

2,338 Views
ayhmi
Contributor II

Hello,

I couldn't manage to override RCW settins with USB TAP. So I used another JTAG with a different program. I could manage to upload u-boot and RCW settings. My hardware is working atm. I resolved my problem with this new device. Thanks for your help.

Omer

0 Kudos
Reply

2,338 Views
catalindemergia
Contributor IV

Hello,

I ran some tests and I succeeded to use the board after RCW deletion in two ways

1. using a hardcoded RCW
2. using RCW overwrite

** my setup **

P2041RDB-PB, rev1 CPU

CW 10.4.0, build 140709

USB TAP

** details for board recovery **

1. using a hardcoded RCW

Initially switches set to boot from NOR (SW1[5:1]=01101)

boot the board with serial cable connected so we can see u-boot prompt

make a simple bareboard stationary project to enter debug on the board (RAM target)

use Flash Programmer to erase the first sector -> we no longer have RCW, if we try now to enter debug it fails

power off, set switches to 10010, power on -> we see the u-boot prompt again.

(the rest of the switches are exactly like described in the readme file from the generated project)

2. using RCW overwrite

set the switches to 01101 to get the RCW from NOR flash, from where we deleted it. (it doesn't boot now)

make a new bareboard stationary project, but this time with a SRAM target.

scr4.png

build the generated project

edit your target type to put your jtag chain file (I tested with both of them and it worked)

make sure you select your SRAM init files for the Initialization and Memory tabs.

(maybe the memory file is not really mandatory, but I used it anyway)

scr2.png

scr3.png

after this you can enter debug with this project and then use Flash Programmer to write again the RCW.

regards,

Catalin

0 Kudos
Reply

2,338 Views
ayhmi
Contributor II

Hello Yiping Wang,

RCW Source setting is 0b0_1101. I tried the attached configuration file and debug fails in the same step as following:

ccs_reset_to_debug

  serverh = 0

  cc = 0

  ccs_reset_to_debug; ccs_error = 39

  Error message: p2040: Core not responding

I was using Code Warrior 10.2.1. I am now downloading 10.4. I will post the results after i try with the new version.

Thanks,

Omer

0 Kudos
Reply