Safety-certified tools Tools for Automotive Applications C-STAT Static analysis C-RUN Runtime analysis Debugging and trace probes
IAR Embedded Workbench for ARM version 7.30 (and earlier) accepted constructions like:
asm("MRSEQ R0, MSP");
asm("MRSNE R0, PSP");
The above is a bug which is corrected in IAR Embedded Workbench for ARM version 7.40.1.
The code above will generate diagnostic messages like:
Error[Ta117]: IT-block ends prematurely, or there is a label within the IT-block
The construction above is unsafe, as in-between the asm()-statements it was possible to place ordinary C source code.
Change the construction into a single inline assebler statement, with multiple lines.
The above construction should be rewritten to:
asm("ITE EQ \n"
"MRSEQ R0, MSP \n"
"MRSNE R0, PSP");
All product names are trademarks or registered trademarks of their respective owners.