Hello 晓 刘,
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!
-----------------------------------------------------------------------------------------------------------------------