"asm nop" instruction using in S32DS for MPC5777C controller.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"asm nop" instruction using in S32DS for MPC5777C controller.

Jump to solution
1,451 Views
maddularajesh
Contributor III

iam using S32DS design studiiam using S32DS design studio 1.2 for MPC5777C controller. I  want to use asm NOP instructions. when iam using this my code is stopping at asm NOP instruction. How can i use "asm nop" instruction in S32DS .Please provide syntax to use 

Tags (1)
1 Solution
1,070 Views
jamesmurray
Contributor V

Try this:

    __asm__ ("e_nop");

There are three variants from the look of it:

"nop" gives Book E NOP instruction which isn't valid on VLE only cores.

"e_nop" gives 32bit VLE instruction.

"se_nop" gives 16bit VLE instruction.

objdump output gives me:

    __asm__ ("e_nop");
 1023ec8:    18 00 d0 00     e_nop
    __asm__ ("se_nop");
 1023ecc:    44 00           se_nop
    __asm__ ("nop");
 1023ece:    60 00           se_bclri r0,0
 1023ed0:    00 00           se_illegal

This is with MPC5746R.

hope that helps

James

View solution in original post

1 Reply
1,071 Views
jamesmurray
Contributor V

Try this:

    __asm__ ("e_nop");

There are three variants from the look of it:

"nop" gives Book E NOP instruction which isn't valid on VLE only cores.

"e_nop" gives 32bit VLE instruction.

"se_nop" gives 16bit VLE instruction.

objdump output gives me:

    __asm__ ("e_nop");
 1023ec8:    18 00 d0 00     e_nop
    __asm__ ("se_nop");
 1023ecc:    44 00           se_nop
    __asm__ ("nop");
 1023ece:    60 00           se_bclri r0,0
 1023ed0:    00 00           se_illegal

This is with MPC5746R.

hope that helps

James