S32 Studio Compile Error

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

S32 Studio Compile Error

2,051件の閲覧回数
qiaodeng
Contributor II

Hi,

   I encountered the following error when compiling my project using S32:

pastedImage_1.png

What does that mean? How should I handle this?

Regards,

Qiao

ラベル(1)
0 件の賞賛
5 返答(返信)

1,634件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

error Unsupported relocation against PIR or r4 is caused by incorrect syntax. If you use inline assembler and GPR registers, you have to use following syntax:

asm("e_li  %r0, 0");

There must be character % near the SPR register name.

Hope it helps.

Regards,

Martin

1,634件の閲覧回数
qiaodeng
Contributor II

Hi Martin,

I've found them and add % , now only the PIR error left. How should I deal with this? Thanks!

pastedImage_1.png

Regards,

Qiao

0 件の賞賛

1,634件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

I do not know, which microcontroller you use, but PIR register is special purpose register. You have to look to the core reference manual for appropriate core and find the number of the PIR register which you use instead of PIR.

Regards,

Martin

0 件の賞賛

1,634件の閲覧回数
qiaodeng
Contributor II

Hi Martin,

     The MCU is MPC5746R, the code file is from MCAL , I just import  them into my project and don't know why they can not be complied.

Regards,

Qiao

0 件の賞賛

1,634件の閲覧回数
stepank
Contributor I

May be you have swapped operands for this instruction ? It is common error of newbies.

0 件の賞賛