MC9S12ZVML128 CodeWarrior Compiler Error

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

MC9S12ZVML128 CodeWarrior Compiler Error

645 次查看
ren082215
Contributor I

Description Resource Path Location Type
Fixup to not allocated object main in XSdkInit type 4, at offset 0x5

 

when set "Generate Debug Informatioin" option, this error could be solved.

however, the "G D I" option must be unset, so we want to know what can be a replace solution to the compiler option ' -sym full'.

0 项奖励
回复
3 回复数

635 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ren082215,

Can you please elaborate on the description?

What error do you get?

Can you share screenshots?

0 项奖励
回复

625 次查看
ren082215
Contributor I

screenshots can't be shared because of the company policy.

the error is "L1931: Fixup to not allocated object", which has be decribed in HC(S)08/RS08 Build Tools Utilities Manual.

as described before, when I unset the option 'generate debug info', which means the S12Z compiler mwccs12lisa compile without the option '-sym full'.

the project will get the error "Fixup to not allocated object main in XSdkInit type 4, at offset 0x5". XSdkInit is a function in my source file, it is called in main function.

If I set the option 'generate debug info', the project can be build successfully.

I want to know if there is a connectoin between '-sym full' compile option and the error 'fixup to not allocated object'.

If I use a gcc compiler or other compilers, the function in source code can be used normally, it may leads to the details in S12Z compiler.

0 项奖励
回复

568 次查看
stanish
NXP Employee
NXP Employee

Hi,

Could you possibly check:

1) how both functions (main, XSdkInit) are declared (prototype/definition)?

2) try to disable compiler optimizations and rebuild the project? Is the Linker error L1931 still present?

3)have you adjusted the .prm file? are  both functions in .text section?

4) try to explicitly declare function XSdkInit as extern

 

if it does not help can you share linker command file, map file and linker/compiler options used in your project?

regards,

Stan

thanks.

0 项奖励
回复