2009-01-07 02:51:36     SPI boot up

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

2009-01-07 02:51:36     SPI boot up

Rui Cao (SINGAPORE)

Message: 67507   

 

Hi gurus,

 

I have a customized BF533 board, the processor is hooked up to an STM SPI flash, M25P40, /CS is connected to PF2 directly.

 

I hv writen a SPI flash driver and load some test program to boot up from SPI successfully with VDSP++.

 

In VDSP++, settings must be selected to indicate where the generated *.ldr is located, either parallel flash or SPI flash.

 

Do I have to set any flags or default values such that the compiled U-BOOT.LDR  works with SPI flash? Provide I am going to load the SPI flash thru ADSP-USB-ICE.

 

thanks!!

QuoteReplyEditDelete

 

 

2009-01-07 03:05:00     Re: SPI boot up

Mike Frysinger (UNITED STATES)

Message: 67508   

 

using SPI flash under u-boot with the latest release is documented here:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial-flash-eeprom

QuoteReplyEditDelete

 

 

2009-01-07 04:56:52     Re: SPI boot up

Rui Cao (SINGAPORE)

Message: 67545   

 

Hi, Mike,

 

thanks for the info,

 

but in the web page it says, make changes in config files

 

1) define CONFIG_SPI,

 

2) add CFG_CMD_EEPROM to CONFIG_COMMANDS

 

Questions

 

1) Is it u-boot-1.1.6-2008R1.5/include/configs/bf533-stamp.h?  But, CONFIG_SPI seems already defined.

 

2) where to add the CFG_CMD_EEPROM?

 

3) I hv made change: #define CONFIG_BFIN_BOOT_MODE       BFIN_BOOT_SPI_MASTER, Is this enough?

 

4) In 'Compile U-BOOT' section( http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:compiling ), there is a statement, 'The BFIN_BOOT_MODE define in the board configuration file controls the board boot mode (parallel flash / serial flash / uart / etc…). See the customizing document for more information.' but the linked page is empty.

 

what else missing?

 

 

 

QuoteReplyEditDelete

 

 

2009-01-07 05:23:19     Re: SPI boot up

Mike Frysinger (UNITED STATES)

Message: 67546   

 

the documentation tells you how to do things for your board.  we dont bother documenting in whether certain boards have already enabled such features by default as it's a waste of time.

 

the configuration section already tells you where to put CFG_CMD_EEPROM.  if you dont understand the u-boot configuration system, read existing board headers and the u-boot documentation (top level README).  this is really all the "customizing" document would cover.

Attachments

    Outcomes