User’s Manual MCUez HC12 Assembler
308 Assembler Messages MOTOROLA
Assembler Messages
12.3.68 A12408: Code Size Per Section Is Limited to 32 Kbytes
Type: Error
Description: One of the code or data sections defined in the application is
bigger than 32 K. This is a limitation in the assembly version.
Example:
cstSec: SECTION
noptable: DCB.L 4000, $A7
DCB.L 4000, $A7
DCB.L 4000, $A7
DCB.L 500, $A7
Tip: Split the section into sections less than 32 K. The order in
which the sections are allocated can be specified in the linker
PRM (parameter) file. Specify that both sections are to be
allocated consecutively, one after the other.
Example of assembly file:
cstSec: SECTION
noptbl: DCB.L 4000, $A7
DCB.L 4000, $A7
cstSec1: SECTION
noptbl1: DCB.L 4000, $A7
DCB.L 500, $A7
Example of PRM file:
LINK
test.abs
NAMES test.o END
SECTIONS
MY_RAM = READ_WRITE 0x0051 TO
0x00BF;
MY_ROM = READ_ONLY 0x8301 TO
0x8DFD;
ROM_2 = READ_ONLY 0xC000 TO
0xC1FD;
PLACEMENT
DEFAULT_ROM INTO MY_ROM;
DEFAULT_RAM INTO MY_RAM;
cstSec, cstSec1 INTO ROM_2;
END
INIT entry
STACKSIZE 0x60