Non-compliance with AUTOSAR specification
RTE API function is used with arguments that violate the AUTOSAR standard specification
Since R2021a
Description
This check determines if the arguments to an RTE API function violate the AUTOSAR standard specifications.
For instance, checks on Rte_Write_*
or Rte_Byps_Write_*
function calls determine if the pointer-to-data argument in the call:
Is NULL valued.
Points to a memory buffer.
Points to an initialized memory buffer.
For buffers with enum values, values are within the enum range.
For more information on the RTE API specifications, see AUTOSAR documentation (Specification of RTE Software).
To enable this check, use the value autosar
for the option Libraries used (-library)
.
This check finds a subset of issues found with the check Invalid use of AUTOSAR runtime environment function
. Setting up for this check does not
require providing the design constraints in ARXML format, therefore this check cannot find the
constraint violations found with the other check. See also
Choose Between Component-Based and Integration Analysis of AUTOSAR Code with Polyspace.
Diagnosing This Check
To diagnose this check, read the message on the Result Details pane. The message shows all checks performed on the RTE API function, along with information about whether the check passed. For instance, this message:
Shows the results of three checks. Only one of the checks indicates a possible issue. The first argument of the function might not point to initialized memory.
Investigate the root cause of the issue further.
Examples
Check Information
Group: Other |
Language: C | C++ |
Default: On if you use the value
autosar for the option Libraries used (-library) , otherwise off |
Command-Line Syntax:
autosar_compliance |
Version History
Introduced in R2021a