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
Solved! Go to Solution.
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
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