LS1046A Hard Coded RCW fail to change

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

LS1046A Hard Coded RCW fail to change

1,650 Views
DaT63
Contributor II

Hello,

we have a custom designed board based on LS1046A and the LS1046ARDB as reference design. The custom board is "bare metal", nothing programmed on it. So we set the boot source word as 0x9F and tried to override the Hard coded RCW with the new settings in order to be able to access the QSPI flash for further programming.  The RCW override procedure works on the LS1046ARDB board but does not on the custom board, i.e. the RCW words keep the hardcoded values and they are not overridden with the new ones. Does anyone know if there is any signal or clock that must be present that we might have forgotten in our board and that allows this override procedure?

Thanks in advance

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

1,609 Views
yipingwang
NXP TechSupport
NXP TechSupport

In CodeWarrior Target Initialization File, please configure "USE_SAFE_RCW = True", then pay attention to the following content.

if USE_SAFE_RCW:
# Please make sure SERDES REF CLK is set to 100 MHz (SW4[1:2] = 00)
# 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
# TA.rcw.set_source(0x9A)
# use this when SYSCLK = 66 MHz, differential clock source
# TA.rcw.set_source(0x9B)
# use this when SYSCLK = 100 MHz, single-ended clock source
# TA.rcw.set_source(0x9E)
# use this when SYSCLK = 100 MHz, differential clock source
TA.rcw.set_source(0x9F)

# Activate QSPI lines
TA.rcw.set_data({13: 0x20124000})

# add here if you need to override other particular RCW values
# TA.rcw.set_data({1: 0x40282830, 9: 0x00C12980, 10: 0x00002580})
TA.rcw.apply()

If your problem persists, please capture CCS console log to me to do more investigation.

When you clicking flash programming icon in CodeWarrior IDE, the CCS console will pop up in the Windows task bar, please open it type "log v", then click flash programming icon again, the low level CCS log will be printed, please capture it to me.

 

0 Kudos
Reply

1,581 Views
DaT63
Contributor II

Hi,

I am not using  the LS1046ARDB, it is a custom board, so no dip switches to set the boot source; in any case I already said that the HRCW was set to 0x9F. I am also not using CodeWarrior but another JTAG debugger, hence I cannot follow your suggestions. I managed to find the solution to the problem: it was a missing resistor on the board.

Thank you anyway

Tags (3)
0 Kudos
Reply