LS1043A_CODEWARRIOR_CONNECT-2

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

LS1043A_CODEWARRIOR_CONNECT-2

866 Views
787316657
Contributor I

Hello

CodeWarrior will report an error when connecting to the target board. Clicking on the Diagnose Connection shown in the arrow below does not respond. It is always in the interface shown below. What could be the cause?

Thank you!

pastedImage_2.png

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

614 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello 晓 刘,

For custom boards bringing up, you could refer to the first section in the document Use CodeWarrior for ARMv8 to Debug U-boot and Linux Kernel and Bring up Bare Boards to connect to the target board.

In addition, would you please capture the low level CCS console log to me to do more investigation?

Please open the panel Window->Preferences->Target Connection Configuration->Logging Configuration->PROTOCOL Logging, configure Logging Level as DEBUG, then connect to the target board, the low level CCS log will be printed in CodeWarrior IDE, please capture this CCS log to me to do more investigation?


Have a great day,
TIC

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

0 Kudos

614 Views
787316657
Contributor I

Hello

The error message and logging information are as follows

pastedImage_1.png

ccs_open
ipaddr = 127.0.0.1
port = 41475
timeout = 10
serverh = 0
ccs_open; ccs_error = 0
ccs_get_cc_config
serverh = 0
cc = 0
config_string = cwtap:
ccs_get_cc_config; 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 = 3)
device[0]:: core_type=DAP(232)
device[1]:: core_type=LS1043A(284)
device[2]:: core_type=SAP2(272)
ccs_config_chain; ccs_error = 0
ccs_get_config_chain
serverh = 0
device_list: (size = 3)
ccs_get_config_chain; ccs_error = 0
ccs_get_config_chain
serverh = 0
device_list: (size = 3)
device[0]:: core_type=DAP(232)
device[1]:: core_type=LS1043A(284)
device[2]:: core_type=SAP2(272)
ccs_get_config_chain; ccs_error = 0
ccs_close
serverh = 0
ccs_close; ccs_error = 0

0 Kudos

614 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello 晓 刘,

It seems that there is no valid RCW on the target board.

Please configure CodeWarrior initialization script to use hard-coded RCW.

Please configure target launch connection from Run->Debug Configurations->GDB Hardware Debugging-><project>->Debugger->Configure target connection, duplicate LS1043A_RDB target configuration and modify the target Init File as the following.

# In order to connect to a board with a broken RCW, set the following variable to True
# Override RCW using a safe hard-coded RCW option
USE_SAFE_RCW = True

Please select one hard-coded RCW option according to your target board.

###################################################################
# Reset
###################################################################
def Reset():
    if USE_SAFE_RCW:
        # Please make sure SERDES REF CLK is set to 100 MHz (SW3[4] = 0)
        # Set rcw_src to the hard-coded RCW option matching the board's DIP SW
        # regarding SYSCLK and differential/single-ended clock source

        # use this when SYSCLK = 66 MHz, single-ended clock source
        # gdb.execute("monitor rcw source set 0x9A")
        # use this when SYSCLK = 66 MHz, differential clock source
        # gdb.execute("monitor rcw source set 0x9B")
        # use this when SYSCLK = 100 MHz, single-ended clock source
        # gdb.execute("monitor rcw source set 0x9E")
        # use this when SYSCLK = 100 MHz, differential clock source
        gdb.execute("monitor rcw source set 0x9F")


Have a great day,
TIC

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

0 Kudos