1/27/15
SigC667x / SigC641x User Guide, Rev B7
Copyright
Signalogic 2012-2014
42 / 109
4.3.2 boardTest
Note:
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.
The boardTest program gives an example of communicating with target code as it runs in real-
time, demonstrating DirectCore library API calls.
The boardTest project is written in 2 flavors: straight C code and C++ using a “target class”:
1.
"Straight C" code, which minimizes use of C++ programming constructs.
2.
C++, which uses a "target class” to reduce the number of library calls an application
needs to make and simplifies the amount of code necessary to gain basic target card / module
connectivity and data transfer.
Note!
The C++ class is only supported for SigC641x.
To build the boardTest program, enter the following:
#cd ./DirectCore/apps/SigC641x_C677x/boardTest
#make (default uses C source code)
or enter the following:
#make cpp (uses C++ source code)
Currently, the “make” is the standard (default) option, and should be tested first.
Before running boardTest, first enter:
#./boardTest –h
This will bring up the help menu in order to configure SigC667x or SigC641x hardware.
Command line option syntax (options with “+” sign are mandatory):
-f<num> Device clock rate in MHz (e.g. -f1000)
-m<num> + Core select bit mask (e.g. -m1, means core0, -m2 means core1.
(Note: in this test, only one core can be selected at a time)
-e<string> + Target executable file (in ELF or COFF format, e.g. -ebdtest.out)
-c<string> + Card designator (e.g. -cSIGC66XX)
-T Run with talker enabled
-v Run in verbose mode
-h Display this help list
Here are some example boardTest command lines:
# ./boardTest -m1 –f1000 -ebdtest.out -cSIGC64XX