- 论坛徽章:
- 0
|
近来,Nor Flash的价格居高不下,所以相对来说利用Nand Flash来存放代码和数据并执行boot code,利用SDRAM来运行用户的主程序成为一种比较经济适用的选择。本文对三星公司的S3C2440的启动位置进行了简要的总结。
1、Not Using Nand Flash for Boot
OM[1:0]=01,10
在这种情况下,boot code被放在Nor Flash空间,上电复位的时候,pc指向NorFlash空间,开始执行boot程序,然后跳转到存放用户主程序的Nand Flash空间取指。 三星2440内部有4KB的SRAM,此种模式下,其地址映射到0x40000000地址。
2、Using Nand Flash for Boot
OM[1:0]=00;
这种情况下,系统一般只有Nand Flash和SDRAM,boot code 存放在0x00000000的位置。上电复位时,Nand flash从0x0开始的4KB的空间被加载到内部4KB的SRAM并执行。
During reset, Nand flash controller will get information about the connected Nand flash through Pin status(NCON(Adv flash),GPG(Page size),GPG14(Address cycle),GPG15(Bus width)-refer to PIN CONFIGURATION).After power-on or system reset is occurred, the Nand flash controller load automatically the 4-KBytes boot loader codes. After loading the boot loader codes, the boot loader code in stepping(4KB internal SRAM)is executed.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/74101/showart_1895471.html |
|