How to program NAND flash on MPC8313RDBC

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

How to program NAND flash on MPC8313RDBC

2,188 Views
anandmistry
Contributor II

Hi,

I am new to the MPC world. We are developing a custom-board based on the MPC8313-RDBC. I am trying to Flash the NAND FLash memory on the RDB using the Codewarrior TAP.

Can anyone help me find a document/guide/article showing how to flash the NAND memory on the RDB?

I was following the AN4349.pdf (Adding Device(s) to the CodeWarrior Flash Programmer for Power Architecture® Processors) document. On page 10 it says that "Flash programming algorithms are not supported in the CodeWarrior flash programmer" against SAMSUNG memories. I see that theres a SAMSUNG memory on the RDB. Is it really so? if yes, what other methods do we have?

Also, is MT29F2G08ABAEAWP-IT:E supported by the MPC8313 processor?

Please reply urgently since our boards are about to be manufactured.

Thanks and regards,

Anand Mistry

0 Kudos
Reply
4 Replies

1,195 Views
Pavel
NXP Employee
NXP Employee

See please attached file. This file contains documentation and example from CodeWarrior 8.8 for NAND Flash programmer algorithm creation.

Freescale CodeWarrior Eclipse 10.3 supports the MT29F2G08 NAND Flash (http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW_DSPA&fpsp=1&tab=Design_Tools_Tab).

This CodeWarrior does not support the MPC8313RDB board. If Flash Programmer is used for the MPC8313RDB board, configuration file for this board should be created.

1,195 Views
anandmistry
Contributor II

Thanks for your replies.

I think the CW 10.3 stuff will be very useful while performing flashing on our custom-boards which are supposed to have MT29F2G08 on them.

Right now my main focus is to perform NAND flashing on the RDB through JTAG to see how its done. I did some searching in the CodeWarrior_PA_Ver8.8 folder and found that it *has* support for RDB's NAND (K9F5608x0D.elf was found in the tree). So I followed the below steps to first erase and then reprogram the NAND on RDB.

1. Opened a demo project in Codewarrior 8.8

2. Opened Tools->Flash Programmer dialogbox

3. Clicked "Load settings" button to load "C:\Program Files\Freescale\CodeWarrior PA V8.8\bin\Plugins\Support\Flash_Programmer\EPPC\83xx\8313RDB_NAND_FLASH.xml" settings file.

4. On the "Erase/Blank Check" page, selected "all sectors" checkbox and then clicked "Erase" button.

        After sometime got "Erase Command Succeeded" message in the status-box

5. On "Program/Verify" page, selected "RDB_CD\images\u-boot-nand.bin" file. Now when I click on the "Program" button, I get the following message in the status-box "0 Bytes Programmed, Check Restricted Address Range"

Can you tell where am i doing it wrong?

The logs generated are as follows

******** LOGS ********

: -------------------------

Using Algorithm: K9F5608x0D.elf

======================================================================

=== Target Configuration Settings

=== Connection:       CodeWarrior USB TAP

=== Target Processor: 8313

=== Target Init File: C:\Program Files\Freescale\CodeWarrior PA V8.8\PowerPC_EABI_Support\Initialization_Files\PQ2\8313RDB_init.cfg

======================================================================

Connecting......Connected

======================================================================

=== Execute: Erase

=== Timestamp:  Tue Sep 10 17:55:01 2013

=== Flash Device:         K9F5608U0D

=== Flash Organization:   32Mx8x1

=== Flash Mem Start Addr: 0xF8000000

=== Flash Mem End Addr:   0xF9FFFFFF

======================================================================

Informing other connection clients that the target is being 'clobbered'.

Loading Flash Device Driver at: 0x00002000

Flash Driver Buffer is at:      0x000046A0

Flash Driver Buffer Size is:    0x0005D960

Done

Initialization Command Succeeded

Erasing Sector 0xF8034000 to 0xF8037FFF ... Done

Erase Command Succeeded

Timestamp:  Tue Sep 10 17:55:06 2013

: -------------------------

Using restricted address range 0xF8000000 to 0xF9FFFFFF

Programming file C:\Users\admin\Documents\FCE\RDB_CD\images\u-boot-nand.bin

Trying auto-detect...

  File is NOT of type Motorola S-Record Format.

  File is NOT of type Elf Format.

Auto-detection is successful.

  File is of type Binary/Raw Format.

======================================================================

=== Execute: Program

=== Timestamp:  Tue Sep 10 17:55:41 2013

=== Flash Device:         K9F5608U0D

=== Flash Organization:   32Mx8x1

=== Flash Mem Start Addr: 0xF8000000

=== Flash Mem End Addr:   0xF9FFFFFF

======================================================================

Trying auto-detect...

  File is NOT of type Motorola S-Record Format.

  File is NOT of type Elf Format.

Auto-detection is successful.

  File is of type Binary/Raw Format.

Programmed total of 0x00000000 bytes

Timestamp:  Tue Sep 10 17:55:41 2013

***********************

Thanks and regards,

Anand Mistry

0 Kudos
Reply

1,195 Views
marius_grigoras
NXP Employee
NXP Employee

Hi,

Sorry for delay. If you don't want to make your own flash NAND algorithms in CW Classic, you'll need to switch to CW Eclipse, because the K9F5608x0D.elf is targeted for an e500v2 core only and your board (83xx) has an e300c3 core.

Thank you,

Marius

0 Kudos
Reply

1,195 Views
marius_grigoras
NXP Employee
NXP Employee

If you choose to use CW PA 10.3 (because it already has the requested NAND support included) you can start from a 8309SOM project and just use your cfg configuration file from your CW Classic (this combination should work).

0 Kudos
Reply