Main

AUTOSAR Adaptive | Model, Build & Execute App in Only 10 Min | Development Tool #VectorTechTutorial

Vector's DaVinci Developer Adaptive is the optimal tool for successfully configuring AUTOSAR Adaptive projects. Model, build and execute a simple AUTOSAR Adaptive application using DaVinci Developer Adaptive to print "Hello World" to the console using ara::log in only 10 minutes! Prerequisite: MICROSAR Adaptive is already pre-built and installed. PLEASE NOTE: Since this demo does not use the execution manager, the environment variable AMSR_PROCESS_SHORT_NAME_PATH needs to be set to the short name path of the process to which the HelloWorldExecutable is mapped. See below example command that needs to be executed before executing the HelloWorld application. This is required for newer releases of MICROSAR Adaptive. export AMSR_PROCESS_SHORT_NAME_PATH=/PkgAdcGeneratedDeployment/PkgMachineDefinitions/Prc_DevTestMachine_HelloWorldExecutable Further links: • DaVinci Developer Adaptive | Vector https://www.vector.com/int/en/products/products-a-z/software/davinci-developer-adaptive/ • MICROSAR Adaptive | Vector https://www.vector.com/int/en/products/products-a-z/embedded-components/microsar-adaptive/ Cmake Plugins for VS Code: • CMake Tools https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools • Cmake https://marketplace.visualstudio.com/items?itemName=twxs.cmake Questions? Please contact us: https://www.vector.com/int/en/company/contacts/ Check the playlist for more videos: https://youtube.com/playlist?list=PLckBNccEGHH-aM65YcEvhXZYoxnFA-6lz Get notified when we release new videos by subscribing to our channel https://vector.com/youtube and hitting the notify bell.

VECTOR TechTutorial

10 months ago

[Music] foreign [Music] I work with the embedded software tools department at Vector and today we're going to look at how to model build and execute a simple adaptive application from scratch in under 10 minutes the Adaptive application will print hello world to the console window using autolog it may sound quite simple but can take several hours or even days to do this without of course the features of a new DaVinci developer adaptive so let's get started we will start by adding the basic softw
are package from vector then we create a new project provider name currently we have no referencing or dependent projects or we have no XML files to import so we click on finish and then we open the project dashboard directly you see it's an empty project we have no elements created before and we will now directly jump to the application Design Center to quickly create the different model elements required by our application we have no data types or service interfaces to be created so we jump to
the executable Editor to create our first executable provider name create a package where we will store the different elements we create an air XML file to store the elements application design finish and then click on next we are now required to provide a software component type so let's create one finish so now we have created a simple executable so we select the category this is an application Level executable and then provide a version number optionally you can also give a description then
we proceed to the application configuration so here we provide a name to the Adaptive application you can call it hello world application and then we will select which executables we will be part of our application so here we have one executable and then we move to the model builder the model builder will automatically generate all the different required adaptive deployment models based on the application definition we provided in the previous tab now we will provide the the package and their XM
L file where the automatically generated elements will be stored then we provide a new file we will call it ADC generated deployment so we have chosen the package and we have chosen the air XML file since we have no Services created in this project we do not require any some IP deployment we don't require a stub for testing purposes and then we provide the name for the machine let's call it development testing machine so Dev test machine and with this we are ready to build the model click on the
build button model is generated if you go to the console window you can see what elements have been created directly here we will now switch to the the dashboard and you can now see we have executables created process designs we have the machine integration dashboard also populated with different elements you can quickly look at the complete model by switching to the AME the autosum model Explorer which gives you both a package view but also a type based view of the various elements available i
n this project you can simply click on one of the elements for example the hello world executable you see a form view as well as a more detailed DaVinci modeling language DML view if you want to extend what is already being created now let's save the project now the next step would be to generate the code based on our model using the Microsoft adaptive generators from the basic software package so we go to the model scopes we now create a model scope set and then we add all elements that are req
uired to be added to the model scope so we add all of them that we right now and then we will click on the generation button generate everything looks green everything looks good so now we have done the modeling we have done also the generation of code based on the air XML models now we need to create our c plus workspace in order to write down the application logic so we switch back to the application Design Center and go to the new project Builder the first thing we are required is to provide
the path where DaVinci developer adaptive will generate the ready to use C plus plus project so let's make a new folder let's call it hello world then we are required to provide the path to where we had the code generated based on the model so just click on this quick shortcut button to get the path copied and then we provide the path to where we have the Microsoft adaptive SDK already built so I have it here let's build install and I've used a dcc7 compiler so let's add that we can quickly copy
over I have the same path from a runtime and then we are now required to add the project structure so let's click on the plus icon we have integration project we have an application project and we will have one executable within this project the hello world executable on the right hand side you have a chance to click on which Microsoft adaptive components are to be linked to this application for now I leave them as they are we go to the C plus plus project properties tab and provide the tool ch
ain that we will be using to compile tool chain gcc7 for Linux and then you provide the path where you want the deployment package to be installed hello world and then I will create a folder called install this is where you will find the executable once it has been built all right copy the machine name and also we can add a company all right now we're ready to build let's click on the build C plus plus project icon and then we are ready again in the console window you are able to see what has be
en generated by the project Builder and now let's switch to our terminal window let's go to the hello world folder and open Visual Studio code I've already added the plugins for cmake to easily configure a project links to these plugins will be in the video description the project Builder generates the C plus project workspaces and containing the cmag files but also the main.cpp for the hello world executable which includes the source code for the hello world message as you can see here we then
will configure the project choose the correct cmake list file will then compile and then finally we will install the application switch to a terminal window and here you have the installation of the application there So within a very short time we have been able to from scratch model build compile and execute a simple hello world application using Arrow log if you find this interesting and you want to have an introduction meeting to The DaVinci developer adaptive please don't hesitate to contact
us and we are here to help you thank you have a good day bye bye foreign

Comments