Hi,
Strange.
On my side I've the following:
++++++++++++++++++++++++++
#define __EI()\
do {\
/*lint -save -e950 Disable MISRA rule (1.1) checking. */\
__asm("CPSIE f");\
/*lint -restore Enable MISRA rule (1.1) checking. */\
} while(0)
/* Disable maskable interrupts */
#define __DI() \
do {\
/*lint -save -e950 Disable MISRA rule (1.1) checking. */\
__asm ("CPSID f");\
/*lint -restore Enable MISRA rule (1.1) checking. */\
} while(0)
++++++++++++++++++++++++++
But I know what is the problem ...
When you add a new processors you need to select a compiler between:
- CodeWarrior ARM C Compiler
- GNU C Compiler
This is confusing as the CodeWarrior ARM C Compiler is not available for all devices.
The BSP project is using the GNU compiler as the folder is: \Freescale_MQX_4_2\mqx\build\cw10gcc\bsp_twrk64f120m.
cw10gcc is for GNU build tool chain.
I met the problem 2 weeks ago and logged an issue in our bug base for this problem.
For me the build tool chain proposed should be linked to the project.
This is not checked.
Back to your problem.
Here you need to select the "GNU C Compiler" and not the "CodeWarrior ARM C Compiler"
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------