Specifications
HighWire MTP-2 - 1.2, September 4, 2002 Compiling the cbiDemo Program under SDK 133
8-4. Compiling the cbiDemo Program under SDK
1. Copy cbiDemo.c from the distribution to:
w:\vxworks\vxhw400\cust_demo
w:\vxworks\vxhw400\cust_demow:\vxworks\vxhw400\cust_demo
w:\vxworks\vxhw400\cust_demo
2. Copy cbiDemo.h from the distribution to:
w:\common\include\cbi
w:\common\include\cbiw:\common\include\cbi
w:\common\include\cbi
3. Under the Tornado 2 VxWorks development workspace hw400_sdk_src
hw400_sdk_srchw400_sdk_src
hw400_sdk_src,
add cbiDemo.c to the sdk_sample_applications
sdk_sample_applicationssdk_sample_applications
sdk_sample_applications build.
w:\vxworks\vxhw400\cust_demo\cbiDemo.c
w:\vxworks\vxhw400\cust_demo\cbiDemo.cw:\vxworks\vxhw400\cust_demo\cbiDemo.c
w:\vxworks\vxhw400\cust_demo\cbiDemo.c
4. Under the sdk_sample_applications
sdk_sample_applicationssdk_sample_applications
sdk_sample_applications build, C/C+ compiler
C/C+ compilerC/C+ compiler
C/C+ compiler tab, add
defines:
-DINC_DPR -DSABRE_NBASE -DHWMTP2_FOR_SDK
-DINC_DPR -DSABRE_NBASE -DHWMTP2_FOR_SDK-DINC_DPR -DSABRE_NBASE -DHWMTP2_FOR_SDK
-DINC_DPR -DSABRE_NBASE -DHWMTP2_FOR_SDK
5. Generate/resolve dependencies.
6. Rebuild all.
8-5. Running the cbiDemo Program under SDK
1. The executable will be stored in:
w:\vxworks\projects\sdk_sample_applications\PPC603GNU\cbiDemo.o
w:\vxworks\projects\sdk_sample_applications\PPC603GNU\cbiDemo.ow:\vxworks\projects\sdk_sample_applications\PPC603GNU\cbiDemo.o
w:\vxworks\projects\sdk_sample_applications\PPC603GNU\cbiDemo.o
2. Download the executable to the target HW400 system
3. At the VxWorks windshell, type:
sp cbiDemo , 0,1
sp cbiDemo , 0,1sp cbiDemo , 0,1
sp cbiDemo , 0,1 (single master target)
4. If a second system is desired, type:
sp cbiDemo , 0,0
sp cbiDemo , 0,0sp cbiDemo , 0,0
sp cbiDemo , 0,0 (slave target)
8-6. Compiling cbiDemo Program under Solaris
See Chapter 11, Appendix: cbiDemo.c and dprDemo.c, for recompilation
information.
8-7. Running the cbiDemo Program under Solaris
1. Change directories to /opt/SBehw/bin
2. Type ./cbiDemo <board number> <mode>
8-8. CBIPTEST Program Console Printout
Below is a sample console printout from the CBITEST program.
Device name is /dev/hw2_mtp2_0
Testing E1 on device /dev/hw2_mtp2_0, ports 0-1, timeslots 1-1
cbiptest: cbiptest_init
cbiptest: cbiptest_performance
Calling cbi_initialize...
Opening the fifo, name=CBIFIFO1563 result=4
Check expected return code
opened /dev/hw2_mtp2_0 3
Send CBI_M2_OPEN
send opened










