11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DSPICC Command-line DriverDSPICC Compiler Optionsextern void printlist();#endif /* PROTOTYPES */2.4.39 --RAM=lo-hi,: Specify Additional RAM RangesThis option is used to specify memory, in addition to any RAM specified in the chipinfo file, whichshould be treated as available RAM space. Strictly speaking, this option specifies the areas of memorythat may be used by writable (RAM-based) objects, and not necessarily those areas of memorywhich contain physical RAM. The output that will be placed in the ranges specified by this optionare typically variables that a program defines.Some chips have an area of RAM that can be remapped in terms of its location in the memoryspace. This, along with any fixed RAM memory defined in the chipinfo file, are grouped an madeavailable for RAM-based objects.For example, to specify an additional range of memory to that present on-chip, use:--RAM=default,+1000-2ffffor example. To only use an external range and ignore any on-chip memory, use:--RAM=1000-2fffThis option may also be used to reserve memory ranges already defined as on-chip memory in thechipinfo file. To do this supply a range prefixed with a minus character, -, for example:--RAM=default,-100-103will use all the defined on-chip memory, but not use the addresses in the range from 100h to 103hfor allocation of RAM objects.2.4.40 --ROM=lo-hi,|tag: Specify Additional ROM RangesThis option is used to specify memory, in addition to any ROM specified in the chipinfo file, whichshould be treated as available ROM space. Strictly speaking, this option specifies the areas of memorythat may be used by read-only (ROM-based) objects, and not necessarily those areas of memorywhich contain physical ROM. The output that will be placed in the ranges specified by this optionare typically executable code and any data variables that are qualified as const.When producing code that may be downloaded into a system via a bootloader the destinationmemory may indeed by some sort of (volatile) RAM. To only use on-chip ROM memory, this optionis not required. For example, to specify an additional range of memory to that on-chip, use:--ROM=default,+1000-2fff19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!