S3C2440 memory status when booting from NAND FLASH or NOR FLASH

Publisher:WeaselLatest update time:2024-07-23 Source: cnblogsKeywords:S3C2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. When booting from NANDFLASH, when ARM is powered on, ARM will automatically copy the first 4K of NANDFLASH to the S3C2440 internal SRAM, and map the address of SRAM to 0X00000000. After ARM is powered on, it will start running from SRAM.


2. When booting from NOR FLASH, because NORFLASH is connected to bank0, the address mapping is 0X00000000. So after ARM is powered on, it directly runs the program in NORFLASH. At this time, the internal SRAM address of S3C2440 is 0X40000000.


3. ARM starts from 0X00000000 when powered on. However, for the reset program entry, the value of ResetEntry is 0X00000000 when ARM is powered on, and 0X30000000 in JTAG simulation. This value is critical and will be used when copying the program.


The hardware determines whether to boot from nand flash or nor flash when booting. The specific configuration is as follows

Then, the corresponding memory mapping is as follows

SROM means ROM or SRAM type memory


Regarding Figure 6-5, the following explanations are required:

1. On the jz2440 development board, SDRAM is connected to BANK6, and its starting address is always 0x30000000.

2. The column diagram shown in the figure is the memory that the chip considers. That is, it can be considered as the memory inside the chip.

3. For booting from nand flash with OM[1:0]=00, nand flash cannot unify the address to memory. After power-on, the chip automatically copies the first 4k of nand flash to the first 4k of memory in the chip, and then the chip starts to run from 0x00000000. The 4k memory content copied from 0x00000000 is responsible for copying the bootloader in nand flash to the chip address 0x30000000. When continuing to execute, BANK1, BANK2,, are not connected to SROM, so the code at 0x30000000 will be executed immediately. The whole process can be said that the 4K code copied to the SRAM inside the chip copies the program in nand flash, including the bootloader, to the link address (the link address is the SDRAM address), and then executes sequentially.

4. For OM[1:0]=01, 10, it is started from the nor flash. The nor flash is connected to BANK0, which exists as the SROM here. Its starting address is 0x00000000, and the chip executes sequentially from address 0.


Keywords:S3C2440 Reference address:S3C2440 memory status when booting from NAND FLASH or NOR FLASH

Previous article:Design of video acquisition driver for pet intelligent feeding system
Next article:Bootloader transplantation

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号