Hello wei yang,
You need to modify CodeWarrior initialization file to make it suitable for your new flash device.
Please modify the following sections in the file C:\Freescale\CW_PA_v10.4.0\PA\PA_Support\Initialization_Files\83xx8309SOM_init_core.tcl.
1. Please modify LAW(Local Access Windows ) for NOR Flash(begging address and LAW size).
2. Please modify BR0 and OR0 registers configuration in the section "Local Bus Interface (LBIU) Configuration", please refer to MPC8309 reference manual for how to configure these two registers.
3. If you use different DDR on your target than MPC8309SOM, please also modify DDR2 Controller configuration section.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------