A brief description on how to run MODISTARC regression tests for Freescale S12XS

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
Line 11: Line 11:
#*<tt> make ARCH=s12g_cw </tt> if you are working with MC9S12G128 and the CodeWarrior Compiler.  
#*<tt> make ARCH=s12g_cw </tt> if you are working with MC9S12G128 and the CodeWarrior Compiler.  
The makefiles chain will compile all the projects through the following steps:
The makefiles chain will compile all the projects through the following steps:
-
#* Directories creation;
+
* Directories creation;
-
#* OIL elaboration by RT_DRUID;
+
* OIL elaboration by RT_DRUID;
-
#* Compilation to generate the .elf file;
+
* Compilation to generate the .elf file;
-
#* Debugger script creation to run the regression tests on the processor;
+
* Debugger script creation to run the regression tests on the processor;
NOTE1: To compile only one test type: <tt> make ARCH=s12xs_cosmic DIRS="modistarc_task_1" </tt>  
NOTE1: To compile only one test type: <tt> make ARCH=s12xs_cosmic DIRS="modistarc_task_1" </tt>  
NOTE2: To compile the tests you can use the batch file located in common/s12. To run the batch file type:
NOTE2: To compile the tests you can use the batch file located in common/s12. To run the batch file type:
-
# <tt> common\s12\s12xs_cosmic\modistarc_regression_test.bat </tt>  to compile all the tests or
+
* <tt> common\s12\s12xs_cosmic\modistarc_regression_test.bat </tt>  to compile all the tests or
-
# <tt> common\s12\s12xs_cosmic\modistarc_regression_test.bat modistarc_task_1 </tt> to compile only one test;
+
* <tt> common\s12\s12xs_cosmic\modistarc_regression_test.bat modistarc_task_1 </tt> to compile only one test;
-
#* In these cases the batch file will call the HIWAVE debugger at the end of the compilation to load the executables files on the processor using the generated script file.
+
** In these cases the batch file will call the HIWAVE debugger at the end of the compilation to load the executables files on the processor using the generated script file.
-
# <tt> common\s12xs\s12xs_cosmic\modistarc_regression_test.bat clean </tt>  to clean all the tests;
+
* <tt> common\s12xs\s12xs_cosmic\modistarc_regression_test.bat clean </tt>  to clean all the tests;
-
# <tt> common\s12xs\s12xs_cosmic\modistarc_regression_test.bat hiwave </tt>  to call HIWAVE debugger directly.
+
* <tt> common\s12xs\s12xs_cosmic\modistarc_regression_test.bat hiwave </tt>  to call HIWAVE debugger directly.

Revision as of 15:14, 5 December 2011

How to run MODISTARC regression tests for Freescale S12 Family

Requirements: The "procmail" package should be installed in Cygwin using the Cygwin 'Setup.exe' (the setup program is downloadable form this site: http://www.cygwin.com/).

  1. Perfom a repository checkout to work with the last version of the testcases. Note that you can use Subversion only in anonymous mode without logging in. Hence, you won't be allowed to write on the repository (adding, editing or removing files).
  2. Change the working directory in: repos\ee\trunk\ee\testcase Then edit and execute: . ./s12_startup_scripts to configure the environment. The environment variables to be set are: ERIKA_FILES pointing to the Erika main folder (the folder downloaded with the svn checkout, it contains the testcase folder).
  3. Start the compilation with:
    • make ARCH=s12xs_cosmic if you are working with MC9S12XS128 and the Cosmic Compiler.
    • make ARCH=s12g_cw if you are working with MC9S12G128 and the CodeWarrior Compiler.

The makefiles chain will compile all the projects through the following steps:

  • Directories creation;
  • OIL elaboration by RT_DRUID;
  • Compilation to generate the .elf file;
  • Debugger script creation to run the regression tests on the processor;

NOTE1: To compile only one test type: make ARCH=s12xs_cosmic DIRS="modistarc_task_1"

NOTE2: To compile the tests you can use the batch file located in common/s12. To run the batch file type:

  • common\s12\s12xs_cosmic\modistarc_regression_test.bat to compile all the tests or
  • common\s12\s12xs_cosmic\modistarc_regression_test.bat modistarc_task_1 to compile only one test;
    • In these cases the batch file will call the HIWAVE debugger at the end of the compilation to load the executables files on the processor using the generated script file.
  • common\s12xs\s12xs_cosmic\modistarc_regression_test.bat clean to clean all the tests;
  • common\s12xs\s12xs_cosmic\modistarc_regression_test.bat hiwave to call HIWAVE debugger directly.
Personal tools