RTA Knowledge Base

Skip to end of banner
Go to start of banner

Patch for RTA-SK_VRTA_GCC_SingleCore (RTA-CAR 12.7.0)

Starting with RTA-CAR 12.7.0, the Starter Kit project (RTA-SK_VRTA_GCC_SingleCore) is now included in the RTA-CAR release. A few minor adjustments are required to enable successful code generation via the GUI along with successful MCAL Generation and Starter Kit Build.

You can apply these modifications either automatically by installing the patch and running the included script, or manually by following the provided steps.

Please follow only ONE of the below sections, either Automatic adjustments using the patch or Manual adjustments.

Automatic adjustments using the patch (step-by-step guide)

Download the zip file containing the patch (RTA-CAR_12.7.0-RTA-SK_VRTA_GCC_SingleCore-Patch.zip) and follow the steps below:

  1. Place the downloaded .zip file inside the RTA-SK_VRTA_GCC_SingleCore directory (should be located at <RTA-CAR 12.7.0 Installation>\Examples\RTA-SK_VRTA_GCC_SingleCore).
  2. Extract the contents of the .zip file (by selecting 'Extract to "RTA-CAR_12.7.0-RTA-SK_VRTA_GCC_SingleCore-Patch\" ' while unzipping). After extraction, you should see a folder named RTA-CAR_12.7.0-RTA-SK_VRTA_GCC_SingleCore-Patch inside the RTA-SK_VRTA_GCC_SingleCore directory.

  3. Inside this folder, you’ll find the following files:

    • com.bosch.autosartool.bsw.common.ui.prefs

    • buildSettings.properties

    • 01_mcal.bat
    • CMakePresets.json
    • Nvm_MultiBlockCallback.c
    • patch_script.bat

    • README.md
  4. Navigate into the extracted folder and run patch_script.bat by double clicking on it.
  5. When the process is completed, you’ll see the message "Patch applied successfully!".

The patch script will perform the following actions:

  • Delete the file ApplicationECU_Project_EcucValues.arxml in the RTA-SK\ApplicationECU_Project_EcucValues.arxml directory.
  • Replace com.bosch.autosartool.bsw.common.ui.prefs in the RTA-SK\.settings directory with the updated file from the patch.
  • Replace buildSettings.properties in the RTA-SK\_tools directory with the updated file from the patch.
  • Replace Nvm_MultiBlockCallback.c in the RTA-SK\src\bsw\NvM\integration directory with the updated file from the patch.
  • Replace 01_mcal.bat in the Build directory with the updated file from the patch.
  • Replace CMakePresets.json in the Build directory with the updated file from the patch.

Manual adjustments (step-by-step guide)

Follow the steps below to manually make the required changes. The Starter Kit project should be located at <RTA-CAR 12.7.0 installation>\Examples\RTA-SK_VRTA_GCC_SingleCore\RTA-SK).

  1. Replace RTA-SK_VRTA_GCC_SingleCore\RTA-SK\_tools\buildSettings.properties with the following file: buildSettings.properties.
  2. Open RTA-SK in RTA-CAR 12.7.0, switch to the Filesystem Navigator and delete ApplicationECU_Project_EcucValues.arxml:



  3. Type Nvm_MultiBlockCallback.c in the Filesystem Navigator filter, open Nvm_MultiBlockCallback.c and include the header file MemIf.h by adding the following line near the top of the file:

    Nvm_MultiBlockCallback.c
    #include "MemIf.h"

    As seen in the screenshot below:



  4. Open the "Generate ECU Configuration Wizard":



  5. Click on "Browse":



  6. Select "VRTA_GCC_SingleCore/ecu_config/bsw" as the parent folder, click on the "Generate separate file for each Module" option to enable it and then press "OK":



  7. Ensure the Path is correct and press "Finish":



    This should lead to a successful Conf-Gen execution:



  8. You should now be able to successfully run the "Generate All" option from the RTA-CAR Code Generator Menu:





    After successful code generation, you need to make a few minor changes to get the MCAL to generate successfully and compile the Starter Kit project.

  9. Open Build\01_mcal.bat with a text editor and replace the following line:

    Build/01_mcal.bat
    C:\ETAS\RTA-OS_12.6.0\bin\MCALGen.exe --verbose --gen:VRTA-win --normalize_root:vecu --output:..\MCAL\src\ ^

    with

    Build/01_mcal.bat
    C:\ETAS\RTA-CAR_12.7.0\RTA-OS_12.6.0\bin\MCALGen.exe --verbose --gen:VRTA-win --normalize_root:vecu --output:..\MCAL\src\ ^

    to add the missing "RTA-CAR_12.7.0\" in the mcalgen command (as seen in the screenshot below).



  10. Open Build\CMakePresets.json with a text editor and replace the following lines:

    • Add the missing "RTA-CAR_12.7.0\" in the "TARGET_LINK_DIRS" string by replacing 

      Build/CMakePresets.json
      "TARGET_LINK_DIRS": "${sourceParentDir}/RTA-SK/src/os;C:/ETAS/RTA-OS_12.6.0/MCAL/VirtualHW",

      with

      Build/CMakePresets.json
      "TARGET_LINK_DIRS": "${sourceParentDir}/RTA-SK/src/os;C:/ETAS/RTA-CAR_12.7.0/RTA-OS_12.6.0/MCAL/VirtualHW",
    • Capitalise the ASW tag in the "UNITY_BUILD_BANNED_TAGS" string by replacing:

      Build/CMakePresets.json
      "UNITY_BUILD_BANNED_TAGS":".*/Dem/.*;.*/Dcm/.*;.*/rte/.*;.*/asw/.*;.*/DoIP/.*;.*/DoIP_PC.*;.*/Rba_DemObdBasic/.*;.*/Rba_FeeFs1x/.*;.*/CanTp_PC/.*;.*/FiM/.*;.*/Det/.*;.*/EcuM/.*;.*/Wdg/.*;.*/Fls/.*;.*/Fee/.*;.*/MemIf/.*;.*/*.cpp"

      with

      Build/CMakePresets.json
      "UNITY_BUILD_BANNED_TAGS":".*/Dem/.*;.*/Dcm/.*;.*/rte/.*;.*/ASW/.*;.*/DoIP/.*;.*/DoIP_PC.*;.*/Rba_DemObdBasic/.*;.*/Rba_FeeFs1x/.*;.*/CanTp_PC/.*;.*/FiM/.*;.*/Det/.*;.*/EcuM/.*;.*/Wdg/.*;.*/Fls/.*;.*/Fee/.*;.*/MemIf/.*;.*/*.cpp"
  11. You should now be able to successfully run Build\01_mcal.bat and Build\02_build.bat.


After following either of the sections above, you should be able to successfully generate BSW configuration, run the code generators, generate MCAL and build the Starter Kit project.