1/27/15
SigC667x / SigC641x User Guide, Rev B7
Copyright
Signalogic 2012-2014
51 / 109
4.3.5 appTest
Note 1:
This section assumes you have already (i) built and loaded the DirectCore target
multicore CPU driver, as explained in section 4.1 above, Building the Loadable Kernel
Module (LKM) Driver, and(ii) built all DirectCore libraries, as explained in section 4.2
above, Building DirectCore Libraries.
Note 2:
Currently appTest is only supported by SigC641x hardware. Building and/or
running appTest should not be attempted for SigC667x hardware.
The appTest program gives an example of communicating with target code as it runs in real-
time, demonstrating several DirectCore library API calls.
The appTest program is written in C++ and uses Call Manager APIs to perform target-related
functions and to reduce the number of API calls needed to initialize and control the target
multicore CPU farm.
To build the appTest program, enter the following:
#cd /root/Signalogic_2012v4/DirectCore/apps/SigC641x_C667x/apps/appTest
#make
Note that the libraries mentioned in section 4.2 above, including Session Manager, must be built
before appTest can be built successfully.
To run the appTest program, first enter:
#./appTest –h
This will bring up a help menu. Command line option syntax (options with “+” sign are
mandatory):
-c<string>
+
Card designator (e.g. -cSIGC64XX)
-f<num> Device clock rate in MHz (e.g. –f1000)
-m<num>
+
Core select bit mask. (e.g. -m1, means core0,-m2 means core1, -m255
means cores 0-7, etc)
-e<string>
+
Target executable file (in
ELF or COFF format, e.g. -esigc64xx.out)
-p<num> Number of devices (e.g. -p8)
-t Run with TDM interface enabled
-C Run with continuous diagnostic display enabled
-T Run with target HPI driver ('talker') enabled
-v Run in verbose mode
-h Display this help list
For a 1 GHz SigC64x card, the default configuration used to run appTest would be:
#./appTest -m1 –f1000 -etmsc64xx.out -cSIGC64XX -t
For a 1.25 GHz SigC66x card, the default configuration used to run appTest would be:
#./appTest -m1 –f1250 -etmsc66xx.out -cSIGC66XX