Hello Kuowei,
1. For Freescale demo board, we suggest customers to use the following steps to do flash programing.
After create a sample project following the new bareboard project wizards, please connect to the target board from Run->Debug Configurations-><project>-core00_RAM_<platform>_Download->Debug.
Open "Target task" panel from Window->Show view->other->Debug->Target Tasks.
In "Target Tasks" panel, please right click "Root"->Import, and import the template file for NOR Flash, double click this task and open the "PA Flash Programmer Task" panel, please use the these configuration, and add erase and program tasks, Then execute these tasks in Target Tasks panel. Please note, in "Add Program/Verify Action" panel, please make sure "Apply Address offset" is checked, and you also need to specify the exact effective address(for u-boot) in CodeWarrior.
2. Since not sure what is the exact flash part number on your target, first please check whether your flash is supported in the device list of "PA Flash Programmer Task" panel. If no, please check whether there is other intel based compatible flash device could be used.
3. If there is no compatible flash algorithm in the current CodeWarrior, users could create and add new flash algorithm in CodeWarrior, please refer to CW_PA_v10.4.0\PA\PA_Tools\FlashToolKit\Documentation and examples CW_PA_v10.4.0\PA\PA_Tools\FlashToolKit.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------