Establishment of the VxWorks application debugging environment

Source: Internet
Author: User

On the one hand, the Vxworks application can be integrated with the kernel for debugging. On the other hand, the application and the kernel can be separated for debugging. When the application is correct, it can be integrated into the kernel. The second debugging method is described in detail below, which is the most convenient. Using this method, you do not need to write the application every time, and then compile and download the application to the target machine with the kernel. You only need to dynamically load the application to the target machine. o files can be debugged to speed up development.

To separate the application and kernel for development and debugging, you must first run the VxWorks kernel stably. Here, you can use the previously prepared BSP to generate the kernel.

First, download the executable code to the target system or download it to the target system to run the VxWorks kernel. The next step is to configure Tornado. Before debugging, I used the company to transplant the VxWorks operating system platform for debugging. Before debugging, make sure that your target machine is powered on and connected to the host machine through the network or serial port. before downloading the target code of the application, perform the following operations:

(1) Configure Target server

After the Target system runs, you can choose Tools> Target Server> Config to create a new configuration. For example, if you use the serial port connection, select wbdserial, select wbdpc for network connection)

Note that the red line is shown in the figure. Fill in the target server column with the host machine, that is, the IP address of the PC. For example, the IP address of my computer is 192.168.1.161.

In the target name/IP address column, enter the target machine address of the VxWorks operating system. For example, the address of the target machine that I debugged is

172.96.88.34. After the configuration is complete, click lauch to start the target server service. After the service is started,

Window.

(2) When the target system runs and target config is correctly configured and enabled, you can select the target system in the first column of the tornado launch toolbar, 192.168.1.161 @ Liuwei, pay attention to the place in the Red Circle in the figure, such:

 

(3) Compile the test program code, as shown in figure. The function is to create two tasks and run them alternately.

 

(4) compile the project, generate the. o file, and download the application to the target machine running VxWorks. As shown in: (pay attention to the red line in the figure)

(4) Open the debugging window, as shown in:

 

Click the icon in the red box to start debugging.

 

(5) run the compiled application and click debug-> run. The image shown in is displayed. enter the name of the function to be run in the task column.

(6) Click the OK button to go to The taskcreate function to debug the program. You can use the settings breakpoint and single-step debugging on the toolbar.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.