It seems that there is problem with the following configuration in CodeWarrior initialization file, OR0[AM] should be 1111_1100_0000_0000_0(64M), for details please refer to MPC8377 Reference Manual.
### CS0 - 512K NorFLASH
writemem.l 0xe0005000 0xFC000801 # BR0 base address at 0xFc000000, port size 8 bit, GPCM, valid
writemem.l 0xe0005004 0xFFF80FF7 # OR0 512K flash size, 15 w.s., timing relaxed
If your problem remains, would you please create a new thread to discuss more about CodeWarrior initialization file porting for your target board?
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------