Skip to main content
Visitor II
February 26, 2004
Question

ST7FLite29, memory location

  • February 26, 2004
  • 2 replies
  • 604 views
Posted on February 26, 2004 at 06:55

ST7FLite29, memory location

    This topic has been closed for replies.

    2 replies

    delser9Author
    Visitor II
    February 26, 2004
    Posted on February 26, 2004 at 06:22

    Hello,

    Can anybody tell me where I can find information about how to make a 'project.prm' file with Codewarrior? I'd like to know how the memory location is done. In the Codewarrior demo files I get something like:

    __________________________________________

    SECTIONS

    Z_RAM = READ_WRITE 0x0080 TO 0x00FF;

    RAM = READ_WRITE 0x0100 TO 0x017F;

    ROM = READ_ONLY 0xE000 TO 0xFFDF;

    PLACEMENT

    DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM;

    _ZEROPAGE ,_OVERLAP INTO Z_RAM;

    DEFAULT_RAM INTO RAM;

    END

    STACKTOP 0x1FF

    ____________________________________________

    Can anybode tell me wher I can find information about what '_ZEROPAGE' or 'DEFAULT_RAM' means?

    In my project, Codewarrior tells me that I have to many variables in the DEFAULT_RAM. Why don't I have acces to the memory from 0x0080 to 0x00FF. How can I use the full RAM space from 0x0080 to 0x01FF?

    Thank you for help!

    delser9Author
    Visitor II
    February 26, 2004
    Posted on February 26, 2004 at 06:55

    I just found the solution. Maybe it helps somebody.

    __________________________

    PLACEMENT

    DEFAULT_RAM INTO RAM, Z_RAM;

    END

    __________________________

    The objects from section `DEFAULT_RAM' are allocated first in segment `RAM'. As soon as the segment `RAM' is full, allocation continues in section `Z_RAM'.