Tool/software: TI-RTOS
Hi,
We would like to do a simple ping test on C6678 EVM and a PC with an example code.
Is that possible to point to the example code which initializes ethernet interface, setup DHCP and does a ping test?
Thanks
Rams
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI-RTOS
Hi,
We would like to do a simple ping test on C6678 EVM and a PC with an example code.
Is that possible to point to the example code which initializes ethernet interface, setup DHCP and does a ping test?
Thanks
Rams
Thanks for the quick response. We are unable to locate NIMU_emacExample_EVMC6678C66BiosExampleProject.
We have been switching back and forth to different CCS version to get hold of the examples.
We have installed the MCSDK from the DVD which we received with the EVM.
The PDK version is pdk_C6678_1_0_0_21.
The example project which you have mentioned could not be found in the list.
Is that possible to attach tar archive of the example project?
Thanks
Rams
Hello,
I am able to get the example project after pdkenvsetup and pdkprojectcreate batch files.
I tried to build the project after setting up static ipaddress in helloworld.c
When I run the the example and try to ping the ipaddress, I could not get ping working from my PC.
Please find below output from CCS console
[C66xx_0] QMSS successfully initialized
CPPI successfully initialized
PA successfully initialized
TCP/IP Stack 'Hello World!' Application
StackTest: using localIp
Do we need to change the example for testing ping from PC?
-Rams
Hi,
By default without changing anything, the NDK hello world example used a static IP address:
char *HostName = "tidsp";
char *LocalIPAddr = "192.168.1.4";
char *LocalIPMask = "255.255.255.0"; // Not used when using DHCP
char *GatewayIP = "192.168.1.1"; // Not used when using DHCP
char *DomainName = "demo.net"; // Not used when using DHCP
char *DNSServer = "0.0.0.0"; // Used when set to anything but zero
After run the program, you should see:
[C66xx_0] QMSS successfully initialized
CPPI successfully initialized
PA successfully initialized
TCP/IP Stack 'Hello World!' Application
StackTest: using localIp
Network Added: If-1:192.168.1.4
Then, you can ping it from a PC with the same subnet. Why your program CCS console output didn't show the bold one?
Regards, Eric
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/NIMU.outHi,
Attached is the out file I built this morning which showed the "Network Added: If-1:192.168.1.4". Try if it works on your side? Do you use GEL file to intialize the DSP when connecting to core 0? Do you put EVM in no-boot mode?
Regards, Eric
Hi
Thanks a lot. The out file which you had sent works. I dont know what is the difference here.
The EVM is in no-boot mode and I use C6678 gel file to initialize the DSP when connecting to core0.
My CCS version is Version: 7.0.0.00043 .
PDK version is C667x PDK 2.0.5.
Please let me know why we are unable to run our compiled example code
.
We are interested in using the example code to verify our custom hardware.
EMAC0 is connected directly to host CPU and EMAC1 is connected to FPGA. Both the links are fixed 1G links without PHY.
Our aim is to tweak the example code to verify C6678 EMAC0 and EMAC1 on the custom hardware.
Regards
Rams
Hi,
I just created the project with "pdkProjectCreate.bat C6678 all little nimu dsp", then import the CCS project NIMU_emacExample_EVMC6678C66BiosExampleProject and build it, I didn't change anything.
Attached is my build log, you can compare if anything different.
**** Build of configuration Debug for project NIMU_emacExample_EVMC6678C66BiosExampleProject ****
"C:\\ti_7_0_0\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/c6678/c66/bios/helloWorld.cfg'
'Invoking: XDCtools'
"C:/ti_7_0_0/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/bios_6_46_04_53/packages;C:/ti/pdk_c667x_2_0_5/packages;C:/ti/edma3_lld_2_12_04_28/packages;C:/ti/ipc_3_44_01_01/packages;C:/ti/ndk_2_25_01_11/packages;C:/ti/uia_2_00_06_52/packages;C:/ti_7_0_0/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r debug -c "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2" "C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/c6678/c66/bios/helloWorld.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring helloWorld.xe66 from package/cfg/helloWorld_pe66.cfg ...
generating custom ti.sysbios library makefile ...
Linking with library ti.transport.ndk.nimu:./lib/c6678/c66/release/ti.transport.ndk.nimu.ae66
Linking with library ti.drv.pa:./lib/c66/ti.drv.pa.ae66
Linking with library ti.drv.qmss:./lib/c66/ti.drv.qmss.ae66
Linking with library ti.drv.rm:./lib/c66/ti.drv.rm.ae66
Linking with library ti.drv.cppi:./lib/c66/ti.drv.cppi.ae66
Linking with library ti.osal:./lib/tirtos/c66/release/ti.osal.ae66
Linking with library ti.csl:./lib/c6678/c66/release/ti.csl.ae66;./lib/c6678/c66/release/ti.csl.intc.ae66
Starting build of library sources ...
making C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/c6678/c66/bios/src/sysbios/sysbios.ae66 ...
gmake[1]: Entering directory `C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/c6678/c66/bios/src/sysbios'
cle66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/BIOS.c ...
asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ...
are66 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj timer64_Timer_asm.obj ...
gmake[1]: Leaving directory `C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/c6678/c66/bios/src/sysbios'
Build of libraries done.
cle66 package/cfg/helloWorld_pe66.c ...
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/c6678/c66/bios/helloWorld.cfg'
' '
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/drv/rm/device/c6678/global-resource-list.c'
'Invoking: C6000 Compiler'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="{NDK_INSTALL_DIR}/packages" --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number --preproc_with_compile --preproc_dependency="global-resource-list.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_c667x_2_0_5/packages/ti/drv/rm/device/c6678/global-resource-list.c"
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/drv/rm/device/c6678/global-resource-list.c'
' '
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/helloWorld.c'
'Invoking: C6000 Compiler'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="{NDK_INSTALL_DIR}/packages" --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number --preproc_with_compile --preproc_dependency="helloWorld.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/helloWorld.c"
"C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/helloWorld.c", line 188: warning #225-D: function "System_flush" declared implicitly
"C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/helloWorld.c", line 134: warning #179-D: variable "i" was declared but never referenced
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/helloWorld.c'
' '
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_cppi_qmss_iface.c'
'Invoking: C6000 Compiler'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="{NDK_INSTALL_DIR}/packages" --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number --preproc_with_compile --preproc_dependency="nimu_cppi_qmss_iface.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_cppi_qmss_iface.c"
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_cppi_qmss_iface.c'
' '
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_pa_iface.c'
'Invoking: C6000 Compiler'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="{NDK_INSTALL_DIR}/packages" --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number --preproc_with_compile --preproc_dependency="nimu_pa_iface.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_pa_iface.c"
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_pa_iface.c'
' '
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_osal.c'
'Invoking: C6000 Compiler'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="{NDK_INSTALL_DIR}/packages" --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number --preproc_with_compile --preproc_dependency="nimu_osal.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_osal.c"
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/nimu_osal.c'
' '
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/drv/rm/device/c6678/policy_dsp-only.c'
'Invoking: C6000 Compiler'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="{NDK_INSTALL_DIR}/packages" --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number --preproc_with_compile --preproc_dependency="policy_dsp-only.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_c667x_2_0_5/packages/ti/drv/rm/device/c6678/policy_dsp-only.c"
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/drv/rm/device/c6678/policy_dsp-only.c'
' '
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/setuprm.c'
'Invoking: C6000 Compiler'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="{NDK_INSTALL_DIR}/packages" --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number --preproc_with_compile --preproc_dependency="setuprm.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/setuprm.c"
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/setuprm.c'
' '
'Building file: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/udpHello.c'
'Invoking: C6000 Compiler'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="{NDK_INSTALL_DIR}/packages" --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number --preproc_with_compile --preproc_dependency="udpHello.d" --cmd_file="configPkg/compiler.opt" "C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/udpHello.c"
'Finished building: C:/ti/pdk_c667x_2_0_5/packages/ti/transport/ndk/nimu/example/helloWorld/src/udpHello.c'
' '
'Building target: NIMU_emacExample_EVMC6678C66BiosExampleProject.out'
'Invoking: C6000 Linker'
"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv64+ -g --define=SOC_C6678 --define=DEVICE_C6678 --define=USE_BIOS --diag_suppress=1111 --diag_suppress=827 --diag_suppress=824 --diag_suppress=837 --diag_suppress=1037 --diag_suppress=195 --diag_suppress=77 --diag_suppress=232 --diag_wrap=off --diag_warning=225 --diag_warning=994 --diag_warning=262 --display_error_number -z -m"NIMU_emacExample_EVMC6678C66BiosExampleProject.map" -i"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/lib" -i"C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --reread_libs --diag_wrap=off --warn_sections --display_error_number --xml_link_info="NIMU_emacExample_EVMC6678C66BiosExampleProject_linkInfo.xml" --rom_model -o "NIMU_emacExample_EVMC6678C66BiosExampleProject.out" "./global-resource-list.obj" "./helloWorld.obj" "./nimu_cppi_qmss_iface.obj" "./nimu_osal.obj" "./nimu_pa_iface.obj" "./policy_dsp-only.obj" "./setuprm.obj" "./udpHello.obj" -l"configPkg/linker.cmd" -llibc.a
<Linking>
warning #10247-D: creating output section ".sharedGRL" without a SECTIONS specification
warning #10247-D: creating output section ".sharedPolicy" without a SECTIONS specification
'Finished building target: NIMU_emacExample_EVMC6678C66BiosExampleProject.out'
' '
C:/ti/pdk_c667x_2_0_5/packages/pdkAppImageCreate.bat C:/ti/pdk_c667x_2_0_5/packages C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2 C:/ti/pdk_c667x_2_0_5/packages/MyExampleProjects/NIMU_emacExample_EVMC6678C66BiosExampleProject/Debug NIMU_emacExample_EVMC6678C66BiosExampleProject C6678 dsp
' '
**** Build Finished ****
Regards, Eric