【总结】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中执行主程序。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值