Interfaces IDE

KEIL uVision

A ToolchainGateway bridge for the WSTDeployer supports adding RXF and generated files into a KEIL µVision project file.
The implementation of this bridge is available in source code under Tools\WSTDeployer\src\de\willert\deployer. This directory contains three files which integrate the IDE with the WSTDeployer:

Deployment to the uVision IDE

Please first read the General WSTDeployer Documentation to understand how tags in your model need to be set up and what will generally happen during deployment.

New files will be added to the "File" section in the uVision .uv2 and .opt files which is specified as component tag within the UML model. The added files will not be added to a specific folder in µVision and they will not be sorted by file types. The best practice is to add an folder "Files" as the first one in the µVision project and saving the project file before the deployment is started. All new files will then end up in that folder, also header files. An exception if the use of GenerateDirectoryPerModelComponent, see below.

The µVision project file needs to be reloaded after each deployment.

The WSTDeployer for uVision also supports the following additional features:

Removing files from the uVision project

After model elements have been deleted, renamed or were taken out of the component's scope, the WSTDeployer for uVision supports also removing the orphaned files from the uVision project file. But e.g. just renaming a class MyClass in Rhapsody into Controller will not trigger Rhapsody to delete the files MyClass.c and MyClass.h from the generated configuration folder. These two files will still exist there beside Controller.c and Controller.h. In this case the next WSTDeployer run will add Controller.c and Controller.h to the uVision project, but the files for MyClass will not be removed.
But there is an easy way to get Rhapsody to delete the orphaned files from the generated configuration folder. In the Rhapsody Code menu select Clean Redundant Source Files. Confirm deletion of the files. It makes no difference if also RXF specific files like RxfConstants.h, RxfDimensions.h and WSTMemoryTypes.h will also be deleted, as they will be regenerated with the next Generate/Make/Run or Build. The deletion of the files will trigger Rhapsody to delete the orphaned / redundant files MyClass.c and MyClass.h from the generated configuration folder. When the WSTDeployer is started for the next time, it will also remove MyClass.c and MyClass.h from the deployment destination folder and remove the references inside the uVision project file.
Rhapsody Menu: Code - Clean Redundant Source Files Confirm deletion

CG:Package:GenerateDirectory and Subfolders

More complex Rhapspdy models often use the generation of source files in a subfolder hierarchy. This can be controlled via the property CG:Package:GenerateDirectory (or  CG::Configuration::GenerateDirectoryPerModelComponent in older Rhapsody versions). After changing the property you also have to perform the the Clean Redundant Source Files step from Rhapsody's Code menu. As an example project let's look at a modified Blinky model which we want to deploy into GettingStarted:

WSTDeployer for uVision specific Restrictions




Copyright (c) Willert Software Tools GmbH. All rights reserved.