cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Models

mangesh
Associate II
Posted on October 23, 2003 at 06:30

Memory Models

2 REPLIES 2
mangesh
Associate II
Posted on May 17, 2011 at 11:56

Hi,

I use the large memory model in Keil (64K Code ROM size). However my code base has gotten bigger than 64K. Does anyone know how I can compile my code successfully for this large size? Is code banking related to this? If so what do I need to do in order to make it work?

Thanks.
danielh1
Associate II
Posted on May 17, 2011 at 11:56

Memory banking with the Keil compiler:

1 - Edit the L51_BANK.A51 source file in the LIB folder, setting the parameters ?B_MODE to 1, and ?B_XDATAPORT to the address of your page register (CSIOP + 0E0H).

2 - Compile L51_BANK.A51 to an OBJ file, and replace the actual file in LIB.

3 - Organize your project to work with memory banks (see your manual for details).