Hi Big!!
In the .prm file of the QG8 flash6 there is an instruction "RELOCATE_TO 0x0060. This is the complete prm for such a project
/* This is a linker parameter file for the QG8 */
NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
EEPROM = READ_ONLY 0xE000 TO 0xE1FF;
ROM = READ_ONLY 0xE200 TO 0xFFAD;
Z_RAM = READ_WRITE 0x00A0 TO 0x00FF;
RAM = READ_WRITE 0x0100 TO 0x025F;
ROM1 = READ_ONLY 0xFFC0 TO 0xFFCF;
CODE_RELOC = READ_ONLY 0xe200 TO 0xe240 RELOCATE_TO 0x0060;
END
PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
DEFAULT_RAM INTO RAM;
DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM; /* ROM1 In case you want to use ROM1 as well, be sure the option -OnB=b is passed to the compiler. */
_DATA_ZEROPAGE, MY_ZEROPAGE INTO Z_RAM;
END
What is he trying to do relocating the code at that location?? Should I do the same in the same places, or should I change them according to my project?? But for that first I need to understand what they do =)
None of my globals are located in Z_RAM. What can I do in order the routines not to use low ram but normal (> 0x100)??
Ill try to make bigger space for the routine to see what happens.
Thanks and more advices are welcome =)