MPC8309 Flash Programmer S29GL256P

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC8309 Flash Programmer S29GL256P

Jump to solution
858 Views
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 Kudos
Reply
1 Solution
854 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
855 Views
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 Kudos
Reply
853 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply