Skip to main content
Visitor II
October 23, 2003
Question

Memory Models

  • October 23, 2003
  • 2 replies
  • 731 views
Posted on October 23, 2003 at 06:30

Memory Models

    This topic has been closed for replies.

    2 replies

    mangeshAuthor
    Visitor II
    May 17, 2011
    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.
    Visitor II
    May 17, 2011
    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).