CW 6.3 9S08AW60 data/code placement

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

CW 6.3 9S08AW60 data/code placement

跳至解决方案
1,058 次查看
stevechurch
Contributor I

I'm using CW 6.3 for the 9s08AW60. I'm having some trouble which I believe is linked to the fact that I am including a large chunk of data (boot code for another device, all 29k of it!) and the compiler doesn't like it . How can I place it such that the linked code is contiguous and this data is placed at the end? I've had a couple of link errors the latest of which is L1907: Fixup overflow to send_buffer_to_tts, to BOOT_CODE type 1, at offset 0x25. I know I haven't included much info here but I'm sure it's down to non contiguous code.

标签 (1)
0 项奖励
回复
1 解答
922 次查看
trytohelp
NXP Employee
NXP Employee

Hi Steve,

How are you including the large data ?

is it part of your code application as other source files (.c, .h, etc ..) ?

The L1907 is a linker issue. Below some info about this error:

L1907: Fixup overflow in <Object>, type <objType> at offset <Address>

[DISABLE, INFORMATION, WARNING, ERROR]

Description

An illegal relocation of an object is detected in the object file <Object> at address <Address>. The type of the object is given in <objType>.

Tips

  • Check the relocation at that address. The offset may be out of range for this relocation type. If not it may be caused by a corrupt object file.
  • Check if all objects are allocated in the correct area. Is the object correctly declared?
  • This error might occur if the zero paged variables are allocated out of the zero page.

In some case the customer can decide to don't care about some messages.

Be careful with this process ...

There are several messages:

     - Information,

     - Warning,

     - Error,

     - Fatal,

Only error and fatal ones stop the build operation.

Now for some messages (most of them) you can change the type.

For instance you can move an Information message to Error.

The L1907 can be redefined.

You can move it to warning, information or disabled.

How to do that `?

Open project properties + Linker for HC08 and click on message.

Under Error, select L1907 and move it to warning.

Now the L1907 will generate a Warning message.

Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
923 次查看
trytohelp
NXP Employee
NXP Employee

Hi Steve,

How are you including the large data ?

is it part of your code application as other source files (.c, .h, etc ..) ?

The L1907 is a linker issue. Below some info about this error:

L1907: Fixup overflow in <Object>, type <objType> at offset <Address>

[DISABLE, INFORMATION, WARNING, ERROR]

Description

An illegal relocation of an object is detected in the object file <Object> at address <Address>. The type of the object is given in <objType>.

Tips

  • Check the relocation at that address. The offset may be out of range for this relocation type. If not it may be caused by a corrupt object file.
  • Check if all objects are allocated in the correct area. Is the object correctly declared?
  • This error might occur if the zero paged variables are allocated out of the zero page.

In some case the customer can decide to don't care about some messages.

Be careful with this process ...

There are several messages:

     - Information,

     - Warning,

     - Error,

     - Fatal,

Only error and fatal ones stop the build operation.

Now for some messages (most of them) you can change the type.

For instance you can move an Information message to Error.

The L1907 can be redefined.

You can move it to warning, information or disabled.

How to do that `?

Open project properties + Linker for HC08 and click on message.

Under Error, select L1907 and move it to warning.

Now the L1907 will generate a Warning message.

Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复