Hi,
i´m trying to implement an ISR to my project in Codewarrior using the MC9S12C64 µC. But when i try to link then i get an allocation error:
Link Error : L1102: Out of allocation space in segment RAM at address 0x4000
In the map file i found that the Cap1_Data of the ISR is written in to RAM from 3000 to 3FFF.
Its just an empty ISR with no code wirtten yet.
i attached my project here, so hopefully you can help me.
Solved! Go to Solution.
Hi Greeny,
It seems you don't use #pragma to place constants correctly.
I'd suggest you to use:
#pragma CONST_SEG ROM_VAR
instead of
#pragma ROM_VAR WINKEL_ROM
#pragma ROM_VAR TRIGGER_ZAHN_ROM
#pragma ROM_VAR DEG_ABS_TOOTH_ROM
and
#pragma CONST_SEG DEFAULT
instead of
#pragma ROM_VAR DEFAULT
or you can create separate entry in PLACEMENT section of prm file for each constant if you need to have these constants at specific addresses: e.g.
...
PLACEMENT
WINKEL INTO WINKEL_ROM
...
and then you can use:
#pragma CONST_SEG WINKEL
...
Stanish
Hi Greeny,
It seems you don't use #pragma to place constants correctly.
I'd suggest you to use:
#pragma CONST_SEG ROM_VAR
instead of
#pragma ROM_VAR WINKEL_ROM
#pragma ROM_VAR TRIGGER_ZAHN_ROM
#pragma ROM_VAR DEG_ABS_TOOTH_ROM
and
#pragma CONST_SEG DEFAULT
instead of
#pragma ROM_VAR DEFAULT
or you can create separate entry in PLACEMENT section of prm file for each constant if you need to have these constants at specific addresses: e.g.
...
PLACEMENT
WINKEL INTO WINKEL_ROM
...
and then you can use:
#pragma CONST_SEG WINKEL
...
Stanish