[#5002] sf erase on bf537 board always fails

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

[#5002] sf erase on bf537 board always fails

Submitted By: Mingquan Pan

Open Date

2009-03-19 02:59:31     Close Date

2009-05-27 03:12:40

Priority:

Medium High     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: sf erase on bf537 board always fails

Details:

 

sf erase on bf537 board always fails.

 

U-Boot 2008.10-svn1714 (ADI-2009R1-pre) (Mar 19 2009 - 14:20:48)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.3) (bypass boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:52:52

Hit any key to stop autoboot:  0

bfin> sf probe 1

SF: Got idcode 20 20 17

8192 KiB M25P64 at 0:1 is now current device

bfin> sf erase 0x3000 0x1000

SPI flash erase failed

bfin> sf erase 0x3000 0x1000

SPI flash erase failed

bfin> sf erase 0x3000 0x1000

SPI flash erase failed

 

Follow-ups

 

--- Mike Frysinger                                           2009-03-19 03:07:34

i'm pretty sure your command is wrong.  the M25P64 datasheet says that the

smallest erase size it supports is sector.  i.e. 65k which means 0x10000.

 

--- Mingquan Pan                                             2009-03-19 03:40:13

I try with new address as you said. It looks better but still has this error

sometimes.

 

U-Boot 2008.10-svn1714 (ADI-2009R1-pre) (Mar 19 2009 - 14:20:48)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.3) (bypass boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:52:52

Hit any key to stop autoboot:  0

bfin> sf probe 2

SF: Got idcode ff ff ff

SF: Unsupported manufacturer FF

Failed to initialize SPI flash at 0:2

bfin> sf probe 1

SF: Got idcode 20 20 17

8192 KiB M25P64 at 0:1 is now current device

bfin> sf erase 0x30000 0x10000

bfin> sf erase 0x30000 0x10000

bfin> sf erase 0x30000 0x10000

SPI flash erase failed

bfin> sf erase 0x30000 0x10000

SPI flash erase failed

bfin> sf erase 0x30000 0x10000

bfin> sf erase 0x30000 0x10000

SPI flash erase failed

 

--- Mike Frysinger                                           2009-04-04 07:01:50

should be fixed now after Todor's fix

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes