Introduction

This chapter will introduce you to working with Applics Studio. You will become familiar with the basic software features and the environment. The main steps from creating a new project until flashing the application s19 file to the module are described in this workflow:

Project Workflow

Applics Studio consists of two key software parts:

  • Applics Studio creating, managing and configuring projects with MRS modules: configuring, compiling and flashing the application to the module.
  • Graphical Programming developing and creating applications by drawing schematics with predefined blocks and libraries. You can also create your own blocks in c code or by combining existing blocks and add them to your own libraries which can be shared with others.

Information


i

This is an empty project with no application.


Create New Project

After starting Applics Studio the main window is shown. The first step to get access to the main functions is to create or open a project. Following this, the project view is shown. There are two options for selecting the module:

Step1: Enter the Order Number. The listing will be reduced while typing the order number or

Step2: Using the listing


Open Project

To open a project press Open Project and select the projects .ds file. Example projects are available on request and will be directly available from Applics Studio in the future. For a quick start the "Recent Project" are listed and can be opened directly.


Update Basis Software

After updating Applcis Studio it is possible to update the projects Basis Software. Updates of BSW are necessary due to maintenance and adding new features.


Wiring and Connections

The basic wiring required to communicate with MRS modules are the power supply and the CAN bus. This is often an issue even for experienced users, therefore ensure that the following pins are connected correctly:

  • Power Supply
  • Ground
  • Contact 15 / Ignition
  • CAN1 - H
  • CAN1 - L

Information


i

The pin assignment for modules can found in the corresponding datasheet.


Warning triangle


Warning triangle Faulty wiring could lead to unforeseen behavior.

Power Supply

The electronic system and the power outputs of a control unit must be supplied by the same power supply system (common ground).

CAN Connection


CAN

CAN bus communication is often the main communication channel between the control unit and the vehicle. Therefore, connect the CAN bus with special care and check the correct communication with the vehicle to avoid undesired behavior.

CAN Connection

Wiring Example CC16WP

This example shows the basic wiring of Power Supply and the CAN-Interface for the CC16WP. These are the minimum requirements to communicate over a CAN-Interface which is connected to the computer. The connection cable is terminated with 120 ohms at both ends.

Pin Description
B4 CAN1 - H
C5 CAN1 - L
B5 Contact 15 / Ignition
B7 Ground
A1 Operating voltage for outputs B1, C1-C3, processor
A8 Operating voltage for outputs B8, C6-C8, processor

Build Project

The Build process is started with the button Build Project (F5) directly or by opening the Build Information. Within the build process a file called .s19 is generated by the compiler. In the next step the .s19 file can be downloaded to the flash memory of the module. In the Log window the build log is visualized and compile process, warnings and errors are listed.


Flash Project

The following sequence describes how to setup the flash environment and how to select and write the applications .s19 file to the flash memory of the module using the Applics Flasher. The Applics Flasher is sufficient for flashing. Detailed information about the Applics Flasher and the CAN Flasher can found in the Chapter Flasher.

Insure that the following preconditions are met before you start the flash process:

  • last build was successful (or you still have a working .s19 file)
  • correct setup of the baudrate and hardware interface (CAN termination, etc.)
  • module is powered on

After the flash procedure is finished, the application will immediately be executed.


Project Structure and Sources

Project Folder can be opened by using the button Open in Explorer in the sidebar of the Applics Studio.

The Project folder consists of different folders and files. Following this major and useful files are mentioned:

  • CC16WP_B_ProjectName.ds - Schematic of Graphical Programming
  • IO_DEF_CC16WP_B_Project_Name.mdb - Definition of Inputs and Outputs

  • bin - Binary files including the executable code and the map-file of the application
    • ProjectName.s19 - Flashfile for CAN-Flasher
    • ProjectName.hex - Flashfile in hex format
    • ProjectName.map - Detailed information on all segments, code, data and memory

  • obc - Object files
    • lib - Pre compiled library

  • src Source files
    • app\user_sources - Possibility to include own sources
    • ds - Provides different sources
      • can - CAN sources
      • gp - Translated code of Graphical Programming
      • io - Definition of Inputs and Outputs
      • lin - LIN sources
      • module - Module sources of Graphical Programming
      • users - Usercode for programming in C-Code