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:
- 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
). 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 namedRTA-CAR_12.7.0-RTA-SK_VRTA_GCC_SingleCore-Patch
inside theRTA-SK_VRTA_GCC_SingleCore
directory.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
- Navigate into the extracted folder and run
patch_script.bat
by double clicking on it. 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 theRTA-SK\ApplicationECU_Project_EcucValues.arxml
directory. - Replace
com.bosch.autosartool.bsw.common.ui.prefs
in theRTA-SK\.settings
directory with the updated file from the patch. - Replace
buildSettings.properties
in theRTA-SK\_tools
directory with the updated file from the patch. - Replace
Nvm_MultiBlockCallback.c
in theRTA-SK\src\bsw\NvM\integration
directory with the updated file from the patch. - Replace
01_mcal.bat
in theBuild
directory with the updated file from the patch. - Replace
CMakePresets.json
in theBuild
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
).
- Replace
RTA-SK_VRTA_GCC_SingleCore\RTA-SK\_tools\buildSettings.properties
with the following file: buildSettings.properties. - Open RTA-SK in RTA-CAR 12.7.0, switch to the Filesystem Navigator and delete
ApplicationECU_Project_EcucValues.arxml:
Type
Nvm_MultiBlockCallback.c
in the Filesystem Navigator filter, openNvm_MultiBlockCallback.c
and include the header fileMemIf.h
by adding the following line near the top of the file:Nvm_MultiBlockCallback.c#include "MemIf.h"
As seen in the screenshot below:
- Open the "Generate ECU Configuration Wizard":
- Click on "Browse":
- 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": - Ensure the Path is correct and press "Finish":
This should lead to a successful Conf-Gen execution: - 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. Open
Build\01_mcal.bat
with a text editor and replace the following line:Build/01_mcal.batC:\ETAS\RTA-OS_12.6.0\bin\MCALGen.exe --verbose --gen:VRTA-win --normalize_root:vecu --output:..\MCAL\src\ ^
with
Build/01_mcal.batC:\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).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 replacingBuild/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"
- You should now be able to successfully run
Build\01_mcal.bat
andBuild\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.