This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NHET-ASSEMBLER: HET IDE / hetp.exe output *.c file not MISRA C2 2004 Rule 10.1/10.6 compliant

Part Number: NHET-ASSEMBLER

Hi,

Each hex value from the auto generated c files causes at least one MISRA message.

#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

Rule 10.6 (required): A “U” suffix shall be applied to all constants of unsigned type.

Since Hercules controllers are intended for use in safety related context, it would be be helpful to get auto generated code that is MISRA compliant.
The messages are found with TI built in MISRA checker and third party tools.

The tool is involved with

d:\xxx>c:\ti\Hercules\bin\hetp.exe -v2 -hc32 -x -n0 d:\xxx\ATEL\ATEL.het
NHET Assembler    Release 1.7
Texas Instruments Incorporated.
 PASS 1
 PASS 2

 No Errors, No Warnings

d:\xxx>c:\ti\Hercules\bin\hetp.exe -v2 -hc32 -x -n1 d:\xxx\BTEL\BTEL.het
NHET Assembler    Release 1.7
Texas Instruments Incorporated.
 PASS 1
 PASS 2

 No Errors, No Warnings

Best Regards

Olaf