Ken Lauffenburger

trouble programming Nand flash, MPC8313E, CW version 5.9.0 (Linux)

Discussion created by Ken Lauffenburger on May 27, 2008
Latest reply on May 28, 2008 by Coray Tate
Hello,

I'm new to CodeWarrior, and my plan is to use it primarily to load uboot into my board.  The board hardware is configured to boot from Nand flash, small page size, PCI host mode.

I am trying to use the 8313MDS_CS0_NAND_init.cfg file, which matches up with my DDR2 and Nand flash devices.  So far however the board fails to initialize using the CW flash programmer with this config file.

The JTAG signals seem to respond appropriately when I try to erase a sector or do a blank check, but CW reports failure to initialize, and there is no activity on the flash signals.  HRESETn is stuck low, which I might expect because the processor is fetching bad RCWL and RCWH vectors from the as yet unprogrammed nand flash device.

So I wonder, is the low state of HRESETn preventing CW from accessing the processor via the COP interface?  Or is HRESETn ignored while accessing internal registers using the COP interface?

Also, is it possible to set the RCWL and RCWH registers via the COP interface?  If not, short of changing the CFG_RESET_SOURCE vector, how does one configure the hardware order to program the flash?

I've scanned through the AN3201 app note "Using U-boot to Boot From a NAND Flash Memory Device for MPC8313E", but it doesn't seem to address these questions.

Thanks for any clues you may be able to provide.

--ken

Outcomes