结构
开发板上资源
CPU
SRAM:片内,4k,起始地址为0x4000,0000
SDRAM: 片外,64M
NAND FLASH:片外,1G/2G
NOR FLASH:片外
NAND FLASH启动
- 上电后NAND FLASH控制器负责将NAND前4k拷贝到片内SRAM
- CPU从0地址执行
NOR FLASH启动
开发板没有NOR FLASH。外接NOR FLASH。
- 0地址指向NOR FLASH
- 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中执行主程序。