Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the functional case Test of ndk_client based on TI KeyStone TMS320C665x Development Board

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Based on the TI KeyStone TMS320C665x development board how to achieve ndk_client functional case testing, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

TMS320C6655/57 evaluation board is rich in interface resources, which leads to high-speed communication interfaces such as gigabit network port, PCIe, SRIO, EMIF16/uPP and two-way SFP optical port, which is convenient for users to quickly carry out product scheme evaluation and technical pre-research.

This development case is mainly based on Chuanglong Technology TI KeyStone architecture C6000 series TMS320C665x multi-core C66x fixed-point / floating-point DSP and high-end heterogeneous multi-core TMS320C6655/57 evaluation board designed by Xilinx Artix-7 FPGA processor, which is composed of core board and evaluation base board. The DSP inside the core board is connected with the FPGA through SRIO, EMIF16/uPP and I2C communication bus. The core board has been verified by professional PCB Layout and high and low temperature tests, it is stable and reliable, and can meet a variety of industrial application environments.

The DSP RTOS (SYS/BIOS) case is developed based on the pdk_C6657_1_1_2_6 package in the multi-core software development package BIOS-MCSDK. The bottom layer calls the CSL (Chip Support Library) function library and joins the SYS/BIOS real-time kernel to realize multitasking.

The DSP RTOS case is located under the path of "4-Software data\ Demo\ DSP_Demo\ RTOS-demos\". The description of the case directory is as follows, in which the bin directory stores the program executable files and the project directory stores the case project source files.

Table 1

Catalogue

File / directory

Description

Bin

Xxx.out

Program executable file

Project

Xxx.c

Program source file

Xxx.cfg

RTSC profile

Driver

Driver file storage directory

System

Platform file storage directory

.ccsproject / .cproject / .project

CCS project file

By default, the case program in this document uses a core board with a DSP model of TMS320C6657 evaluation board and a DDR3 capacity of 1GByte on the DSP side, and demonstrates the operation effect by loading and running the TL-XDS200 simulator. Please connect the DSP UART0 debug serial port to the PC through the Micro USB cable, open the serial debugging terminal SecureCRT and set the serial port connection correctly.

1 ndk_client case

1.1 case description

Case function: after receiving the data of the host computer through the network port, the TMS320C6655/57 evaluation board sends the data back to the host computer (PC). The TMS320C6655/57 evaluation board is used as UDP Server and TCP Server, and the host computer as UDP Client and TCP Client.

1.2 key code

(1) initialize sgmii.

Figure 9

(2) create ndk_client tasks dynamically.

Figure 10

(3) the DHCP mode is used to obtain the IP address automatically by default. If you need to change it to a static IP address, you can configure it by referring to the instructions below.

Figure 11

Figure 12

Figure 13

(4) set up the web interface login account and password.

Figure 14

(5) create two daemons in NetworkOpen to listen on network port 7 and network port 8 respectively. After the data is received by the network port, the program will enter the corresponding function to respond to the data reception and send the data back to the host computer.

N port_id:7-dtask_tcp_echo, in response to the reception of the tcp, and back.

N port_id:8-dtask_udp_echo, in response to the reception of the udp, and back.

Figure 15

1.3 case Test

Please connect the DSP ETHERNET port of the TMS320C6655/57 evaluation board and the PC to the same router through the network cable. Please run the program, the Console window of CCS will print the following information, and the TMS320C6655/57 evaluation board will automatically obtain the IP address using DHCP mode. Case source code, product materials (user manual, core board hardware materials, product specifications) site.tronlong.com/pfdownload

Figure 2

(1) the host computer acts as a UDP Client

Open the network debugging assistant software NetDebugTool.exe under the "4-Software data\ Tools\ Windows\ NetDebugTool\" directory, click "New UDP" in the pop-up interface, and enter the host computer IP address in the setting area. The port number defaults to 6666. Enter the IP address of the TMS320C6655/57 evaluation board in the data sending area with a port number of 8 (the port number can be changed in the source code). Click "start" in the setting area, enter the data to be sent in the data sending area, and then click "send".

The TMS320C6655/57 evaluation board (UDP Server) receives the data sent by the host computer and transmits it back. After receiving the data, the host computer displays it in the data receiving area.

Figure 3

(2) the host computer acts as TCP Client.

Click "New TCP Client" in the network debugging assistant software interface, enter the TMS320C6655/57 evaluation board IP address in the setting area, the port number is 7 (the port number can be modified in the source code), and click "Connect". Enter the data you want to send in the data sending area, and then click "send".

The TMS320C6655/57 evaluation board (TCP Server) receives the data sent by the host computer and transmits it back. After receiving the data, the host computer displays it in the data receiving area.

Figure 4

If no data is sent within 5s, the network will be disconnected automatically.

Figure 5

This case also realizes the simple HTML web page function, which can obtain the TMS320C6655/57 evaluation board information by creating the web page interface, and realize the user interaction function. Please enter the IP address of the TMS320C6655/57 evaluation board in the host computer browser to open the web page interface, and you can click different options to jump to the corresponding function interface.

For example, click the "Authenticated CGI Form Example" option at the bottom of the page, which mainly demonstrates the authentication function. Enter the account password in the pop-up interface (default account number: username, default password: password, account password can be set in the source code), and after logging in successfully, you can view the relevant information in the web interface.

Figure 6

Figure 7

Figure 8

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report