Platform clock in T4160

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

Platform clock in T4160

1,127 Views
logifrancis
Contributor III
I have a query on the Platform clock setting in our T4160 board.
, I am setting SYS_PLL_RAT using the [2:6] bits of RCW. One observation i made is whatever ratio I use in RCW, SYS_PLL_RAT is always 6:1. This i have confirmed by reading the CFG field of PLLPGSR register. Similary whatever ratio of MEM_PLL_RAT, I set using RCW,  MEM_PLL_RAT is always 10:1 only. This is confirmed by reading  PLLDGSR register. 
What could be the reason for that? 
0 Kudos
5 Replies

925 Views
logifrancis
Contributor III

1. Please describe in details, what you exactly doing to change RCW?

<Ans> I am just bringing up our board. RCW_SRC is set to Hardcoded option. I am using T32 script, to override the RCW value. I am attaching T32 script with this mail. 

2. Please verify CFG_RCW_SRC pins are configured to load this particular RCW which you are trying to change, but not RCW from any other source.

<Ans> CFG_RCW_SRC is hard coded option (0x9A). 

3. Please check if you are not using RCW override function in your debugger.

<Ans> RCW override function is enabled.

*********************RCW T32 script******************************


;At first set the system mode to "Prepare" (if the current RCW is valid you can also use the modes Go, Attach or Up)
SYStem.BdmClock 18.MHz ;try lower debug frequencies if problems occur
SYStem.CPU T4160
SYStem.Mode.Prepare

;After that set the option to overwrite the RCW with the set values at a SYStem.Up
SYStem.Option.HRCWOVR ON

;Set the whole 64 Byte RCW (used only bit 0 to 387).
;Please notice: it is also possible to set just parts (4 byte); all remaining values are unchanged then.
;this example depends on the default values

Data.Set DBG:0x01000000 0x1406000F
Data.Set DBG:0x01000001 0x0A080808
Data.Set DBG:0x01000002 0x00000000
Data.Set DBG:0x01000003 0x00000000
Data.Set DBG:0x01000004 0x6C6E2848
Data.Set DBG:0x01000005 0x20548c00
Data.Set DBG:0x01000006 0xFC02F000
Data.Set DBG:0x01000007 0x09000000
Data.Set DBG:0x01000008 0x00000000
Data.Set DBG:0x01000009 0x00000000
Data.Set DBG:0x0100000A 0x00000000
Data.Set DBG:0x0100000B 0x00038002
Data.Set DBG:0x0100000C 0x00000000
Data.Set DBG:0x0100000D 0x00000000
Data.Set DBG:0x0100000E 0x00000000
Data.Set DBG:0x0100000F 0x00000010


;Start the system with the specified RCW values.
SYStem.Up

;If you leave this option ON it is possible to manipulate the RCW during operation (to overtake it a SYStem.Up is required again)
SYStem.Option.HRCWOVR OFF

**************************************************************

0 Kudos

925 Views
alexander_yakov
NXP Employee
NXP Employee

So, you are using hardcoded RCW and trying to override it by RCW supplied by your Lauterbach debugger, and this operation fails. Correct? Have you tried to flash valid RCW to target board memory and running the board with CFG_RCW_SRC configured to this memory device?

0 Kudos

925 Views
logifrancis
Contributor III

I am able to do the flash programming in my board. I have created a PBL.bin (RCW file) using QCVS tool. Where (which location) should i program this file? My understanding is that once I prgram RCW file to correct location in flash and if I change the RCW_SRC to NOR flash, it should fetch RCW value from NOR flash and come out of HRESET. Is this understanding correct?

0 Kudos

925 Views
alexander_yakov
NXP Employee
NXP Employee

Sorry for delayed response.

RCW should be programmed at the beginning of the flash. Yes, your understanding is correct.

0 Kudos

925 Views
alexander_yakov
NXP Employee
NXP Employee

1. Please describe in details, what you exactly doing to change RCW?

2. Please verify CFG_RCW_SRC pins are configured to load this particular RCW which you are trying to change, but not RCW from any other source.

3. Please check if you are not using RCW override function in your debugger.


Have a great day,
Alexander
TIC

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

0 Kudos