[#5221] can not erase not-algned data in spi flash

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

[#5221] can not erase not-algned data in spi flash

Submitted By: Vivi Li

Open Date

2009-06-09 03:25:03     Close Date

2009-06-16 10:40:10

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

BF527

Silicon Revision:

    Resolution:

Rejected

Is the bug repeatable?:

N/A     

Summary: can not erase not-algned data in spi flash

Details:

 

Can not erase not-algned data in spi flash and shows "SPI flash erase failed".

 

Bellow is the log for bf527-ezkit:

--

U-Boot 2008.10-svn1905 (ADI-2009R1-rc2) (Jun  8 2009 - 04:42:05)

 

CPU:   ADSP bf527-0.0 (Detected Rev: 0.2) (spi flash boot)

Board: ADI BF527 EZ-Kit board

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

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash:  4 MB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:BF:34

Hit any key to stop autoboot:  0

bfin>

bfin> sf probe 1

SF: Got idcode 20 20 15

2048 KiB M25P16 at 0:1 is now current device

bfin> tftp 0x1000000 uImage

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

         ############################################

done

Bytes transferred = 1597440 (186000 hex)

bfin> sf erase 0x40000 0x186000

SPI flash erase failed

bfin> sf erase 0x40000 0x190000

bfin>

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-06-09 03:29:51

this is not a bug, this is how it is designed

 

--- Vivi Li                                                  2009-06-11 22:36:13

Is it convenient to give error info to remind user of using aligned data size,

instead of "SPI flash erase failed"? It's a little confusing when

other people use it.

 

--- Mike Frysinger                                           2009-06-11 22:46:50

probably.  u-boot isnt known to be user friendly.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes