MC9S12ZVML128 CodeWarrior Compiler Error

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

MC9S12ZVML128 CodeWarrior Compiler Error

652件の閲覧回数
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 返答(返信)

642件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ren082215,

Can you please elaborate on the description?

What error do you get?

Can you share screenshots?

0 件の賞賛
返信

632件の閲覧回数
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 件の賞賛
返信

575件の閲覧回数
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 件の賞賛
返信