_FAR_COPY_RC undefined

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

_FAR_COPY_RC undefined

ソリューションへジャンプ
2,009件の閲覧回数
deneb
Contributor II

Hello

 

I am trying to initialize a variable from a constant located in rom. When I make, I get the following linker error:

 

Link Error : L1822: Symbol _FAR_COPY_RC in file C:\Proj1\Proj1_Data\Proj1\ObjectCode\main.c.o is undefined Link Error : Link failed

 

It is CodeWarrior 4.7 for HCS12.

 

Does someone know why I am having this error?

 

Thanks

deneb

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,144件の閲覧回数
deneb
Contributor II

Hello Stanish

 

Thanks for your reply.

 

However, I just solved the problem myself. The project that  I have been working on, I took it over from one of my colleagues. Strangely, the _FAR_COPY_RC was chopped away from the datapage.c. So I copied the appropriate code from C:\Freescale\CodeWarrior for HCS12 V4.7\lib\hc12c\sr\datapage.c and it worked.

 

Best regards,

deneb
Message Edited by deneb on 2009-07-08 03:56 PM

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,144件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi daneb,

 

_FAR_COPY_RC runtime routine is part of "datapage.c" and it is responsible for accessing data in paged memory. I'd suggest you to check if the file "datapage.c" is available (and enabled...if you use more build targets) in your project.

 

Stanish

0 件の賞賛
返信
1,145件の閲覧回数
deneb
Contributor II

Hello Stanish

 

Thanks for your reply.

 

However, I just solved the problem myself. The project that  I have been working on, I took it over from one of my colleagues. Strangely, the _FAR_COPY_RC was chopped away from the datapage.c. So I copied the appropriate code from C:\Freescale\CodeWarrior for HCS12 V4.7\lib\hc12c\sr\datapage.c and it worked.

 

Best regards,

deneb
Message Edited by deneb on 2009-07-08 03:56 PM
0 件の賞賛
返信