32-bit boot flash

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

32-bit boot flash

764 Views
venkat1
Contributor III

Hi all, 

I am using 32-bit NOR flash as Boot flash for the MPC8358E processor. were I have configured RCWHR as 32-bit Boot [0x00700004] .and also chip select 0 configured as 32 bit. in Debug mode it's working fine. but I am facing a problem with the ROM version mode. I am getting a program exception error  (0x0700) while running the code. 

can anyone explain the following init .asm code

---------------------------------------------------------------------------

lis r3, gInterruptVectorTable@h
ori r3, r3, gInterruptVectorTable@l
sub r3,r3,0x0004

lis r4, gInterruptVectorTableEnd@h
ori r4, r4, gInterruptVectorTableEnd@l

lis r5, 0xFFFF
ori r5,r5,0xFFFC

loop:
lwzu r6, 4(r3)
stwu r6, 4(r5)

cmpw r3,r4
blt loop

blr

#endif //ROM_version

-----------------------------------------------

 

 

 

Regards,

Venkat

0 Kudos
3 Replies

748 Views
venkat1
Contributor III

errorerrorWhat could be the reason behind while running the same code, automatically it's breaking from the loop After 10cycle and getting Program exception 0x0700 error... 

I have basic doubt, can we use 32-bit NOR flash as Boot flash.?

 

0 Kudos

738 Views
yipingwang
NXP TechSupport
NXP TechSupport

Did you program the ROM version bin image in NOR flash?

Do you have a NXP demo board to verify your procedure?

Please check whether there is problem to read and write NOR flash.

Please dump the content in NOR flash in CodeWarrior IDE from Debug->EPPC->Load/Save Memory, then compare the dumped  file with the original bin file.

You could use "hexdump" command in Linux to dump these binary file and use "diff" command to check whether they are the same.

0 Kudos

750 Views
yipingwang
NXP TechSupport
NXP TechSupport

The above code is used to copy the exception vectors from ROM to RAM.

0 Kudos