Thank you, Walter,
for answering. But if you have these 3 files
you have only project specific
asm-modules. If you create a code
which you want to use in multiple projects,
you can't merge all
variables in 3 files. Every seperate module defines
variables and
has to be linked independent of the special variables used in
the
project.
I solved the problem now by creating more entries in the
.lkr
file.
SECTION NAME=bank0 RAM=gpr0
SECTION
NAME=ovrbank0 RAM=gpr0
In the source code I can now define:
bank0
UDATA
xyz RES 2
ovrbank0
UDATA_OVR
zyx RES 1
In the documentation DS33014G -
page 69 (Chapter 5.57)
it says for UDATA_OVR
Note: This is the exception to the
rule that two sections in the
same
source file may not have the same name.
But I actually don't see this exception.
> The FAE told
>
me that since most people don't use relocatable
> code, the issue is just
surfacing.
What a pity. Because this is really powerful
programming!!!
Greetings, Martin
Martin
Schfer
elektronik 21 GmbH
Germany