register problem

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

register problem

1,042件の閲覧回数
xiaobozheng
Contributor III

Hello :

 we want to load mcsr register to general register(r25) ,  and then transmit r25 to a local variable.

__attribute__((section(".srec_rom"))) // richard help
void fn_Srec_EccErrorHandler(void)
{  
    register  unsigned long mcsr __asm("r25") ;
 __asm("mfspr r25,572 ");

 if ((mcsr&0x000000ff)==11)
 {
  ;
 }else{
  ;
 }

}

捕获.JPG

why this can not be compiled?  

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

908件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please write me, which IDE and compiler you use?

It looks like code from S32DS, but the line shows compilation error looks like it is from GreenHills Multi IDE.

Regards,

Martin

0 件の賞賛
返信

908件の閲覧回数
xiaobozheng
Contributor III

we use multi IDE and winIDEA    , and compile is greenhills.  thanks!

0 件の賞賛
返信

908件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello,

if you use multi IDE, this is rather question for GreenHills support or Wind River support. I can help you with S32DS which is NXP product, but I am not able to support products, which are not developed by NXP.

Regards,

Martin

0 件の賞賛
返信