AnsweredAssumed Answered

Can't program P1010RDB Nand Flash with Codewarrior 10.3.3 & Codewarrior TAP

Question asked by franka on Jul 11, 2014
Latest reply on Jul 21, 2014 by franka

Hi,


I am looking for a few hints on why I can't re-program a P1010RDB development system NAND flash with CW 10.3.3 and CW USB TAP.  I was programming new u-boot images via u-boot through the serial console and that worked fine.  I then proceeded to flash an image that causes u-boot to lock-up as it boots.  Now I need to re-program the NAND flash with a working u-boot image.


I keep getting -

Did not erase bad block at address 0x00000000   Error:  Erase failed.


I am using all the default software packages as supplied with CW 10.3.3 with no modifications.  It appears to read the device ID.  I've enabled as much logging as I can find in CW.  Not sure what the issue is.  Below is the last log.  I was just trying to program the small bootloader in u-boot so that only one sector had to be erased.  The larger u-boot images do the exact same thing.  Thanks for any ideas.


 

fl::target -lc "FlashProgramElf0_Debug_P1010_Download"

fl::target -b 0x2000 0x30000

fl::target -v off -l on

cmdwin::fl::device -d "K9F5608Ux0D-IFC" -o "32Mx8x1" -a 0x0 0x1ffffff

cmdwin::fl::image -f "C:\\Users\\Frank\\Documents\\u-boot-git-r17\\git\\P1010RDB_NAND\\nand_spl\\u-boot-spl.bin" -t "Auto Detect" -re on -r 0x0 0x1ffffff -oe on -o 0x0

cmdwin::fl::erase image

Beginning Operation ...   

-------------------------

    log: Trying auto-detect...

    log:   File is NOT of type Motorola S-Record Format.

    log:   File is NOT of type Elf Format.

Auto-detection is successful.  

  File is of type Binary/Raw Format.  

 

    log: Using Algorithm: K9F5608x0D-IFC.elf

    log: 

    log: 

    log: ======================================================================

    log: === Target Configuration Settings

    log: === Launch Configuration:       FlashProgramElf0_Debug_P1010_Download

    log: ======================================================================

    log: Connecting ...

Performing target initialization ...   

    log: Connected ...

    log: 

    log: ======================================================================

    log: === Execute:              Erase

    log: === Timestamp:            Fri Jul 11 17:25:31 2014

    log: === Flash Device:         K9F5608Ux0D-IFC

    log: === Flash Organization:   32Mx8x1

    log: === Flash Mem Start Addr: 0x00000000

    log: === Flash Mem End Addr:   0x01FFFFFF

    log: ======================================================================

Downloading Flash Device Driver ...  

    log: Loading Flash Device Driver at: 0x00002000

    log: Flash Driver Buffer is at:  0x00006260

    log: Flash Driver Buffer Size is:  0x0002BDA0

    log: 

    log: Writing the Address 

    log: Writing the address of the sector list 

    log: Clearing the status 

    log: Setting up Registers 

    log: Commanding target to run 

Reading flash ID ...

    log: Reading init return status 

    log: Done

    log: 

    log: Initialization Command Succeeded

    log: Writing Erase Function Code 

    log: Writing the Address 

    log: Writing the Number of Sectors 

    log: Writing the address of the sector list 

    log: Writing the sector list 

Erasing Sector 0x00000000 to 0x00003FFF  

    log: Clearing the status 

    log: Setting up Registers 

    log: Commanding target to run 

Erasing ...

    log: Reading erase return status 

Did not erase bad block at address 0x00000000  

Error:  Erase failed.

    log: Timestamp:  Fri Jul 11 17:25:36 2014

 

Error: Erase failed.

 

Frank

Outcomes