beautypg.com

Assembler messages – Motorola HC12 User Manual

Page 308

background image

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

M Y _ R A M

=

R E A D _ W R I T E

0 x 0 0 5 1

T O

0x00BF;

M Y _ R O M

=

R E A D _ O N L Y

0 x 8 3 0 1

T O

0x8DFD;

R O M _ 2

=

R E A D _ O N L Y

0 x C 0 0 0

T O

0xC1FD;

PLACEMENT

DEFAULT_ROM INTO MY_ROM;

DEFAULT_RAM INTO MY_RAM;

cstSec, cstSec1 INTO ROM_2;

END

INIT entry

STACKSIZE 0x60