Hello,
I work with Hercules Safety MCU Development Kit TMS570 MCU and use CCS 5.3.0.00083 on system windows 7 servicepack1.
1.)--------------------------------------------------------------------------------------------------------------------------------------------------------
Today I’ve enabled Misra Check (only 10.1) and got exclamation marks at C-Files at line numbers where is no code (line number: 155,185,194,209,210,232,233,253,283). The problem isn’t at the C-File but at string.h (see warnings at console).
C:/ti/ccsv5/tools/compiler/arm_5.0.1/include/string.h", line 155: warning #1393-D: (MISRA-C:2004 10.1/R) The value of an expression of integer type shall not be implicitly converted to a different underlying type if it is not a conversion to a wider integer type of the same signedness
"C:/ti/ccsv5/tools/compiler/arm_5.0.1/include/string.h", line 185: warning #1393-D: (MISRA-C:2004 10.1/R) The value of an expression of integer type shall not be implicitly converted to a different underlying type if it is not a conversion to a wider integer type of the same signedness
.
.
How I prevent the exclamation marks at the C-File?
2.)--------------------------------------------------------------------------------------------------------------------------------------------------------
Further there are a lot of exclamation marks (and corresponding warnings at console) at source files generated by the HALCodegen e.G. at adc.c at line numer 50.
"../source/adc.c", line 50: warning #1393-D: (MISRA-C:2004 10.1/R) The value of an expression of integer type shall not be implicitly converted to a different underlying type if it is not a conversion to a wider integer type of the same signedness
What can I do to force the HALCodeGen to generate Misra conform source code?
Regards Volker