A quick tutorial on how to create, compile and debug an application for Freescale S12XS
From ErikaWiki
How to build a project in RT-DRUID
This page contains a description of how to install the necessary software to develop an Erika application for a Freescale HCS12 microcontroller.
RT-Druid/Erika, version 1.5.1:
- Download the installer from the web site of Erika old versions and update the software as shown here.
RT-Druid/Erika, version 1.6.0: Erika Enterprise 1.6.0 can be freely downloaded from EE_160_Win.zip here. Extract all the files contained in the zip and copy the folder named “eclipse” in your preferred directory on your PC (a recommended path is: C:\Evidence\). To update the software just clicking on the “Help” menu item and selecting “Install New Software”. Then click on “ADD” to add the night builds address for update.
- In RT-Druid environment, create a new RT-Druid project as shown in the following picture.
- Select a template from the s12xs menu.
- Give a name to your project.
- The new project folder appears in the Project Explorer;
- Enter the compiler path in RT-Druid. In the menu at the top, under Windows - Preferences - RT-Druid - Oil - Freescale S12, enter the path where you installed the compiler. Then build the project (right-click on the project name).
- the compilation starts;
- the executable file appear in the Debug folder inside the project.
- Open the RT-debugger.
- From the menu File choose Open Configuration...;
- and load the debugger environment configuration (Full_Chip_Simulation.ini for a simple simulation, SofTec_HCS12.ini for upload the executable on the board );
- From the menu HCS12XS click on Load....
- and load the executable of your application;
- Then starts the simulation and enjoy!!!.