MPC8309 Flash Programmer S29GL256P

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MPC8309 Flash Programmer S29GL256P

跳至解决方案
885 次查看
tom3721
Contributor I

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.

 

tom3721_0-1666334750802.png

 

0 项奖励
回复
1 解答
881 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
882 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复
880 次查看
yipingwang
NXP TechSupport
NXP TechSupport

In addition for the flash algorithm, you could use S29GL256P to select 16Mx16x1.

0 项奖励
回复