【總結】2440啓動方式

結構

這裏寫圖片描述

開發板上資源

CPU
SRAM:片內,4k,起始地址爲0x4000,0000
SDRAM: 片外,64M
NAND FLASH:片外,1G/2G
NOR FLASH:片外

NAND FLASH啓動

  1. 上電後NAND FLASH控制器負責將NAND前4k拷貝到片內SRAM
  2. CPU從0地址執行

NOR FLASH啓動

開發板沒有NOR FLASH。外接NOR FLASH。

  1. 0地址指向NOR FLASH
  2. CPU從0地址取址執行

NOR FLASH可以像內存一樣讀數據
NOR FLASH不可以像內存一樣寫數據,先擦除

NAND FLASH控制器:

In recent times, NOR flash memory gets high in price while an SDRAM and a NAND flash memory is
comparatively economical , motivating some users to execute the boot code on a NAND flash and execute the
main code on an SDRAM.
S3C2440A boot code can be executed on an external NAND flash memory. In order to support NAND flash boot
loader, the S3C2440A is equipped with an internal SRAM buffer called ‘Steppingstone’. When booting, the first 4
KBytes of the NAND flash memory will be loaded into Steppingstone and the boot code loaded into Steppingstone
will be executed.
Generally, the boot code will copy NAND flash content to SDRAM. Using hardware ECC, the NAND flash data
validity will be checked. Upon the completion of the copy, the main program will be executed on the SDRAM.

譯:近期,NOR FLASH的價格較高,而SDRAM和NAND FLASH相對經濟實惠,促使用戶,在NAND FLASH上執行啓動程序,在SDRAM上執行主程序。
S3C2440A的啓動程序可以在片外NAND FLASH中執行。爲了支持NAND FLASH中的boot loader,在S3C2440A內部,集成了4K的SRAM,叫做“steppingstone”。在啓動的時候,將NAND FLASH中的前4k內容加載到片內的steppingstone區中,並在steppingstone中執行啓動代碼。
通常,啓動代碼將複製NAND FLASH中的內容到SDRAM中,並使用硬件的ECC檢查NAND FLASH中的數據有效性。在完成複製工作後,在SDRAM中執行主程序。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章