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.

Compiler/PROCESSOR-SDK-DRA7X: AUTOSAR 4.2.1 version support in arm compiler

Part Number: PROCESSOR-SDK-DRA7X

Tool/software: TI C/C++ Compiler

Hi,

We are currently using arm compiler version "ti-cgt-arm_16.9.2.LTS" for the development of AUTOSAR MCAL drivers.

Currently this compiler supports AUTOSAR 3.1 version. We are developing drivers for AUTOSAR 4.2.1 version and the standard types to be defined should be compliant to this.

For example It says for a symbol definition as below.

 E_OK, E_NOT_OK
[SWS_Std_00006] ⌈ Name: E_OK, E_NOT_OK Type:
Enumeration Range: E_OK 0x00u E_NOT_OK 0x01u

but in our compiler Std_types.h file it is defined as below, there is no suffix U

#ifndef STATUSTYPEDEFINED
  #define STATUSTYPEDEFINED
  #define E_OK     0x00

  typedef unsigned char StatusType;
#endif

#define E_NOT_OK   0x01.

So please let us know if any new compiler available which supports AUTOSAR 4.2.1 version?

  • The AUTOSAR header files that are packaged with the TI ARM compiler have been deprecated, and will not be updated.  That is illustrated by the following example ...

    /* file.c */
    #include <Compiler.h>  /* AUTOSAR header file */
    % armcl file.c
    "file.c", line 2: fatal error: cannot open source file "Compiler.h": The
    compiler RTS provides (outdated) AUTOSAR 3.1 header files, causing problems
    for applications which need a later version of AUTOSAR.  To solve that problem,
    the compiler RTS AUTOSAR files have been moved to a subdirectory of the include
    directory.  If you still want to use the old AUTOSAR header files, add
    ${include}/AUTOSAR31 to your include file search path.  If you want to use a
    later version of AUTOSAR, you will need to get it from a third party.
    
    1 catastrophic error detected in the compilation of "file.c".
    Compilation terminated.
    
    >> Compilation failure

    If you do not see this diagnostic, then you must have added something like this to your include path ...

    --include_path=C:\ti\ccsv7\tools\compiler\ti-cgt-arm_16.9.2.LTS\include\AUTOSAR31

    By adding this directory to the include file search path, you effectively signal that you want to use AUTOSAR 3.1 header files.  I realize you may have inherited this build setting.  Nonetheless, that is how it is understood.

    To solve your problem, you need to obtain updated AUTOSAR header files from another source.  Unfortunately, I cannot help you with that.  So, I have notified other automotive software experts about this thread.  I am confident they will be able to shed more light.

    Thanks and regards,

    -George

  • Hello Sunil,

    As George said the header file will not be updated by CCS and compiler team. It is a very minor update. You need to update it by yourself if you want to use it. Sorry for that.