Use the AUTOSAR Cruise Control sample to demonstrate automatic harnessing of an AUTOSAR SWC. For more detail about the SWCs, see AUTOSAR Cruise Control Composition.
Click here to download the project: AUTOSAR Cruise Control
Applies to: •MxSuite 3.40 or higher Other Requirements: •A supported version of Visual Studio is required. |
1.In MxVDev, select Help->Copy Samples to copy the project files to the sample folder (default: MxSuiteSamples). See Sample Projects Overview. 2.Open the MxVDev project in the VMCCruiseControl subfolder. 3.Disconnect the Harness. 4.Open MxTransIt, then use the Toolbox to create a Virtual Microcontroller (VMC) Transform. Note: The purpose of this sample is to demonstrate creating and harnessing a VMC. If there is already a VMC present, delete it, and create a new one before proceeding. 5.Click the Create VMC Visual Studio Solution verb at the bottom of the Properties box. 6.Click
7.Select Configure VMC to automatically harness AUTOSAR Software Components based on ARXML extract files. 8.Leave the SW-C source code path box empty. 9.Click the Add button and browse to select the ARXML files in the ARXML subfolder of the sample folder (\AUTOSARCruiseControl\SourceCodeAndArxmls\ARXML). 10.Leave the Add OS Configuration box empty. 11.Click OK. •AppIF.c •MxVAutosarHarness.c •MxVAutosarHarness.h •MxVOSKEOS.c •MxVOSEKOS.h 12.The system creates the following files in the SUT folder at \SUT\MSVC2010\MxVRTE •Rte.c •Rte.h •Rte_Main.h •MemMap.h •Compiler.h •Compiler_Cfg.h •Std_Types.h •Platform_Types.h •Rte_CruiseCntrlAlg.h •Rte_DrvForceCal.h •Rte_VehComponent.h 13.Copy the Software Component source files (all the files). These paths are relative to the project folder. •From the \AUTOSARCruiseControl\SourceCodeAndArxmls\SourceCode subfolder in the sample folder •To the \VMCCruiseControl\SUT\MSVC2010\SourceCode subfolder. If there are files in the subfolder, overwrite them. 14.Open the Visual Studio solution, MxVDevAutosar.sln, in VMCCruiseControl\SUT. If the Retarget Projects dialog opens, click OK to upgrade the solution to your version of Visual Studio. 15.Select Add->Existing Item and select all the source files from the \SUT\MSVC2010\SourceCode folder. 16.Be sure the Harness is disconnected. 17.Press F6 or use the Build command to build the solution. After a successful build, close Visual Studio. 18.In MxTransIt, click on the VMC Transform, then click the Connect/Reconnect verb to display the ports. 19.Right-click on the Transform and select Export Ports. 20.Select all the ports (Signals). Click 21.Close MxTransIt. 22.In MxVDev: a.Connect the Harness. c.Disconnect Signals that are marked missing. 23.Run the LetsRide.mxs scenario.
|
1>LINK : fatal error LNK1201: error writing to program database 'C:\Users\paulm\Documents\MxSuiteSamples\AUTOSARCruiseControl\VMCCruiseControl\SUT\MxVTarget.pdb'; check for insufficient disk space, invalid path, or insufficient privilege
This error can occur if the MxVTarget.pdb file is locked by the MxRTE process. To fix this problem, either close MxVDev or close the MxRTE window shown here: ![]() MxRTE Window
|