How the ORx in MPC8641d soc Registers are filled?
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 27 lines · Ashish
Quoted 17 lines · On Thursday 19 September 2013 11:50 AM, sun york-R58495 wrote:
Quoted 13 lines · Ashish
York,
I am trying to understand how the fields of ORx registers are
filled. I am using MPC8641-HPCN board for evaluation purpose. In this i am trying to connect a 16MB size 32 bit-port size Nor flash (2xAT49bv6416). I am using Code Warrior for Bring up process. I have tried to search for the fields how they are calculated but i get only values not the way they calculates. Any thing/pointer that helps me to explore how ORx register is filled would be very helpful.Signature · 2 lines
--with Regards Ashish KhetanAshish,
Quoted 9 lines
There isn't much to calculate. Do you have access to the reference manual? It is available on www.freescale.com. Once you know the device type and physical connection, you are pretty much fixed with most fields. You only need to get the timing to match the bus speed and device speed.
York
Quoted 14 lines
Thanks York,
Can i ask you to explain more about the ORx register? How the Timing
values are calculated?
Because The flash is connected using chip-select0 through Local bus controller. I am getting only read from the flash but its not getting erase/reprogrammed.
I used the following Register configuration:
SYSCLK is 100Mhz, MPX 400Mhz, CORE 800Mhz
BR0 FF001801
OR0 FF006FF7
LBCR 00000000
LCRR 80000008
So the Local Bus is working at 25Mhz.
Ashish,
Your OR0 sets to slowest speed, so it should work. But I noticed you said and set the size to 16MB. Are you replacing the on-board NOR flash with the one you mentioned? I didn't check the spec of the part number. But if you did replace with a twice sized flash chip, you need to get the address signal connected. I don't believe MPC8641HPCN board has spare address line connected.
York