RL78 Family VDE Certified IEC60730/60335 Self Test Library
R01AN0749EG0201 Rev.2.01 Page 21 of 50
Mar 04, 2014
2.3.2.4 Initial March X
The initial March X test is designed to run before the application system has been initialised and is executed without
using function calls from the test harness. Entry to the self test is made by a “jump” from the modified “cstartup.s87”
module and return to “cstartup.s87” module is also made with a “jump”. The test status result is contained in the 8bit
accumulator (A). Therefore this module is designed to provide a complete RAM test before the system is started and the
“C” environment is initialised.
This test function is configured to use 8 bit RAM accesses.
Table 11: Source files:
STL File name Header Files
stl_RL78_march_x_initial.asm None
Test Harness File Names Header Files
ctsartup.s87 None
Declaration
stl_RL78_march_x_initial
Description
This function tests the Ram memory using the March X algorithm over the address range supplied by the calling
function. The result status (Pass / Fail) is returned. This module is designed to be executed before the application
system has been initialised and therefore does not use any function calls.
The function “indicate_test_result.c” will be called by the test harness control files (main.c) to process the test result
Note Function “indicate_test_result.c “is located in the module stl_main_example_support function.c
Input Parameters
CPU Register AX
16bit Register holding the start address of the RAM to be tested.
CPU Register BC
16bit Register holding the range (Number of bytes + 1) of the RAM to be tested.
Output Parameters
NONE
N/A
Return Values
CPU Register A
Test status result in returned in register “A”
0 = Test passed. 1 = Test or parameter check failed.