A quick tutorial on how to create, compile and debug an application for Freescale S12XS

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
(How to build a project in RT-DRUID)
(How to build a project in RT-DRUID)
Line 7: Line 7:
RT-Druid/Erika, version 1.6.0:
RT-Druid/Erika, version 1.6.0:
-
Erika Enterprise, for Microsoft Windows, can be freely downloaded from the following web address:
+
Erika Enterprise 1.6.0 can be freely downloaded from [http://erika.tuxfamily.org/erika-for-multiple-devices.html EE_160_Win.zip here].
-
http://erika.tuxfamily.org/erika-for-multiple-devices.html EE_160_Win.zip  
+
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\).
-
Once downloaded, extract all the files contained in it 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 [http://download.tuxfamily.org/erika/webdownload/rtdruid_160_nb/ night builds address for update].
# In RT-Druid environment, create a new RT-Druid project as shown in the following picture.
# In RT-Druid environment, create a new RT-Druid project as shown in the following picture.
Line 19: Line 20:
#* The new project folder appears in the ''Project Explorer'';  
#* The new project folder appears in the ''Project Explorer'';  
#; [[image:oil.PNG|center]]
#; [[image:oil.PNG|center]]
-
# Build the project (click with the right button of the mouse on the project name);
+
#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).
#; [[image:build.PNG|center]]
#; [[image:build.PNG|center]]
#* the compilation starts;  
#* the compilation starts;  
Line 29: Line 30:
# From the menu ''File'' choose ''Open Configuration...'';
# From the menu ''File'' choose ''Open Configuration...'';
#; [[image:conf.PNG|center]]
#; [[image:conf.PNG|center]]
-
#* and load the debugger environment configuration (.ini);
+
#* and load the debugger environment configuration (Full_Chip_Simulation.ini for a simple simulation, SofTec_HCS12.ini for upload the executable on the board );
#; [[image:fullchip.PNG|center]]
#; [[image:fullchip.PNG|center]]
# From the menu ''HCS12XS'' click on ''Load...''.
# From the menu ''HCS12XS'' click on ''Load...''.

Revision as of 14:56, 24 August 2011

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:

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.

  1. In RT-Druid environment, create a new RT-Druid project as shown in the following picture.
    Druid.PNG
  2. Select a template from the s12xs menu.
    Task.PNG
  3. Give a name to your project.
    Name.PNG
    • The new project folder appears in the Project Explorer;
    Oil.PNG
  4. 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).
    Build.PNG
    • the compilation starts;
    Progress.PNG
    • the executable file appear in the Debug folder inside the project.
    Elf.PNG
  5. Open the RT-debugger.
    Hiwave.PNG
  6. From the menu File choose Open Configuration...;
    Conf.PNG
    • and load the debugger environment configuration (Full_Chip_Simulation.ini for a simple simulation, SofTec_HCS12.ini for upload the executable on the board );
    Fullchip.PNG
  7. From the menu HCS12XS click on Load....
    Load.PNG
    • and load the executable of your application;
    Load exe.PNG
  8. Then starts the simulation and enjoy!!!.
    Start.PNG
Personal tools