Hello Mac,
now I setup the project again, this time not with an ad-hoc configuration but with a specific one. Now I'am using the MC9S08QE8_20.
In the reference manual for this device (MC9S08QE8RM.pdf) the RAM area starts at 0x0060 upto 0x025F. When I'im using the pragma line:
#pragma DATA_SEG __DIRECT_SEG MY_ZEROPAGE
the known error "Error: At location 0060 -" comes again.
When I remove this line, the compiler/linker takes the default RAM and places the variable at address 0x0080 and further and everything works fine and the bitfield is placed in the RAM area below 0x100 as it should do.
The concerning lines in the PRM-Files are:
Z_RAM = READ_WRITE 0x0060 TO 0x007F;
RAM = READ_WRITE 0x0080 TO 0x025F;
Now my question is: what topic gives the simulator the information, that the RAM area between 0x0060 and 0x007F is: "not assigned or read-only", in general - a kind of not available? For me it looks like that the specification of the device for the simulator is not properly. Is there a possibility to check this configuration manually? And if so - in which file is it located?
Stefan