EmbeddedRelated.com
Forums

Linking problem in Cosmic for Star12

Started by arockiapeter_forum December 20, 2003
Hi,

I am trying to add my new file in to one of the existing project
files.

I added my statements in the linker file as follows....

PS: already all the segments for the entire flash memory is created,
so just added my code in one of the segment

+seg .text -b0xfc000 -o 0xc000 -m 0x3f80 -n.test0 -sCODE
+seg .const -a.test0 -it
existingfile.o

+seg .text -b0xe0000 -o 0x8000 -m 0x4000 -n.test1 -sCODE
+seg .const -a.test1
myfile.o

I am calling a function in existingfile.o which is defined in myfile.o

While linking i am getting a error message as "Bank Crossing Call"

Please suggest.

Thankx in advance. Regards,
A R Peter.



Hi,

This message detects an attempt to use a JSR instruction to enter a bank. It
is usually produced when loading libraries in a bank instead of a common
area (0x4000-0x7FFF or 0xC000-0xFFFF).

Jean-Pierre Lavandier
COSMIC Software -----Message d'origine-----
De : arockiapeter_forum [mailto:]
Envoy: samedi 20 dembre 2003 10:58
:
Objet : [68HC12] Linking problem in Cosmic for Star12 Hi,

I am trying to add my new file in to one of the existing project
files.

I added my statements in the linker file as follows....

PS: already all the segments for the entire flash memory is created,
so just added my code in one of the segment

+seg .text -b0xfc000 -o 0xc000 -m 0x3f80 -n.test0 -sCODE
+seg .const -a.test0 -it
existingfile.o

+seg .text -b0xe0000 -o 0x8000 -m 0x4000 -n.test1 -sCODE
+seg .const -a.test1
myfile.o

I am calling a function in existingfile.o which is defined in myfile.o

While linking i am getting a error message as "Bank Crossing Call"

Please suggest.

Thankx in advance. Regards,
A R Peter.
--------------------
<http://www.motorola.com/mcu

_____

> .