hi:
My board uses S29GL256S, and the configuration is 32x16x1. However, I can only select 32x8x1 in the flash programmer. When trying to erase flash with 32x8x1 configuration, an error occurs. The error message is as follows:
fl::target -lc "flasher-test"
fl::target -b 0x2000 0x30000
fl::target -v on -l off
cmdwin::fl::device -d "S29GL256S" -o "32Mx8x1" -a 0xfc000000 0xfdffffff
cmdwin::fl::erase all
Beginning Operation ...
-------------------------
Performing target initialization ...
Downloading Flash Device Driver ...
Reading flash ID .......
Error: The algorithm was not able to run on the target or the flash is not configured properly.
Error: Getting flash ID failed
Error: The algorithm was not able to run on the target or the flash is not configured properly.
已解决! 转到解答。
You need to customize CodeWarrior initialization file C:\Program Files (x86)\Freescale\CodeWarrior PA V8.8\PowerPC_EABI_Support\Initialization_Files\PQ2\8309SOM_init.cfg to make it suitable for your custom board.
1. Please modify Local Access Windows for NOR flash.
2. Please modify DDR2 Controller Registers settings according to your target board.
3. Please modify Local Bus Interface Configuration to configure OR0 and BR0 for your NOR flash.
You could refer to MPC8309 Reference manual for details.
First You could create a bareboard project for MPC8309SOM from File->New->EPPC New Project Wizard, then modify CW initialization file from Edit->Debug Version Settings->Debugger->EPPC Debugger->Use Target initialization, and click debug to check whether the sample program can run on your target board.
At last, in "Program/Verify" panel in "Flash Programmer" you need to check "Apply Address Offset" and specify the address of NOR flash.
You need to customize CodeWarrior initialization file C:\Program Files (x86)\Freescale\CodeWarrior PA V8.8\PowerPC_EABI_Support\Initialization_Files\PQ2\8309SOM_init.cfg to make it suitable for your custom board.
1. Please modify Local Access Windows for NOR flash.
2. Please modify DDR2 Controller Registers settings according to your target board.
3. Please modify Local Bus Interface Configuration to configure OR0 and BR0 for your NOR flash.
You could refer to MPC8309 Reference manual for details.
First You could create a bareboard project for MPC8309SOM from File->New->EPPC New Project Wizard, then modify CW initialization file from Edit->Debug Version Settings->Debugger->EPPC Debugger->Use Target initialization, and click debug to check whether the sample program can run on your target board.
At last, in "Program/Verify" panel in "Flash Programmer" you need to check "Apply Address Offset" and specify the address of NOR flash.