Keil Logo

Code banking with NAND flash

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
KJ Lin
Posted
22-Mar-2006 01:22 GMT
Toolset
C51
New! Code banking with NAND flash
Hi all,

I am new to 8051 architecture.
The code memory device of my 8051 system is implemented as 64k RAM instead of ROM/EEPROM.
Does it make sense to load the 8051 code dynamically from the NAND flash to the RAM device resided on the code memory space?
The only way i think is the code banking.
The common area code was put on the first 32k memory space, and the remained 32k memory holds the bank(n) code which originally stored on the NAND flash.
In other word, 0x0000~0x7FFF for common area and 0x80000~0xFFFF for bank switching.
For example, before calling the function which on the bank 2, the system loads the bank 2's code from NAND flash to the 0x8000 of the code memory.

Does it make sense to implement such mechanism in the 8051 system?

Thanks,
KJ
Read-Only
Author
Reinhard Keil
Posted
22-Mar-2006 15:40 GMT
Toolset
C51
New! RE: Code banking with NAND flash
Bank Switching will be quite slow this way. So you really should investigate how code banking works.

Run the example code:
C:\Keil\C51\Examples\CodeBanking\Bank_EX1
in the simulator and review the executed instructions when a code banking call occurs.

See also: http://www.keil.com/support/docs/1059.htm

Reinhard

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.