2 Specific MISRA C:2012 Deviations

Global __at (SRAM_BANK_BYTE_0)

Required: misra-c2012- 8.2  

Justification: False Positive - This test requires placing the variables at an absolute address in the RAM using the '__at(address)' construct provided by XC8 compiler. MISRA checker wrongly treats __at construct as a function.

Global testData_Subset3

Advisory: misra-c2012- 8.9  

Justification: Assembler requires the variable to have an underscore to access the memory location pointed by the variable. Assembler also requires the variable to have global scope, as modular scope is not permitted.

Global testResult_Subset1

Advisory: misra-c2012- 8.9  

Justification: Assembler requires the variable to have an underscore to access the memory location pointed by the variable. Assembler also requires the variable to have global scope, as block scope is not permitted.

Global testResult_Subset2

Advisory: misra-c2012- 8.9  

Justification: Assembler requires the variable to have an underscore to access the memory location pointed by the variable. Assembler also requires the variable to have global scope, as block scope is not permitted.