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