Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A debugging method of vxworks operating system

A technology of vxworks and operating system, applied in software testing/debugging, using configuration testing to detect faulty hardware, instruments, etc., can solve problems such as inapplicability, achieve the effect of reducing design, simple method, and reducing design cost

Active Publication Date: 2021-03-09
SUZHOU CHANGFENG AVIATION ELECTRONICS
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For hardware single boards without lighting modules, obviously, this method is not applicable

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A debugging method of vxworks operating system
  • A debugging method of vxworks operating system
  • A debugging method of vxworks operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] 本发明提供一种VxWorks操作系统调试方法。以下结合附图对本发明技术方案进行详细描述,以使其更易于理解和掌握。

[0023] 一种VxWorks操作系统调试方法,包括以下步骤:

[0024] 步骤a,在VxWorks操作系统的BSP代码中增加调试驱动,随VxWorks操作系统编译,在VxWorks操作系统的第一条C语言代码处,调用调试驱动的初始化模块完成其初始化;

[0025] 步骤b,在需要调试的BSP代码后,增加调试驱动的错误定位模块,错误定位模块反应出相应BSP代码执行的结果;

[0026] 步骤c,修改BSP代码中的错误,直至关闭所有错误,完成VxWorks操作系统的调试。

[0027] 其中,步骤a中,初始化模块完成硬件单板主CPU硬件模块的初始化,使之具有信息输出功能。

[0028] 步骤b中,错误定位模块根据BSP代码的执行结果,输出对应的错误信息。

[0029] 步骤b中,需要调试的BSP代码位于VxWorks操作系统的控制台初始化完毕代码之前,位于控制台初始化完毕之后的代码使用控制台输出信息,调试驱动完成控制台无法使用时的信息输出。

[0030] 步骤c中,关闭所有错误是指VxWorks操作系统启动过程中的软硬件配置达到预期目的

[0031] Such as figure 1 所示,调试驱动由初始化模块和错误定位模块组成,本实施例采用MPC8548为主 CPU,初始化模块完成UART0的硬件初始化,包括UART0的基本参数配置以及UART0的信息输出功能配置,基本参数包括波特率、数据位、校验等,基本参数及信息输出功能均通过配置寄存器实现;错误定位模块根据输入的代码执行状态,向UART0输出预定义的信息。如果造成系统复位,可以根据信息是否输出,判断造成VxWorks操作系统复位的代码位置。

[0032] Such as figure 2 所示,初始化模块位于VxWorks操作系统入口后,在本实施例中,位于系统硬件初始化函数sysHwInit的第一条语句;错误定位模块位于每一句需要调试的代码后,当VxWorks操作系统控制台初始化完毕后,调试驱动的工作完成,操作系统的信息输出由控制台完成。

[0033] Such as image 3 所示,本实施例使...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a VxWorks operating system debugging method, comprising the following steps: adding a debugging driver to the BSP code of the VxWorks operating system, compiling with the VxWorks operating system, and calling the debugging driver at the first C language code of the VxWorks operating system After the BSP code that needs to be debugged, add the error location module of the debugging driver, and the error location module reflects the execution result of the corresponding BSP code; modify the errors in the BSP code until all errors are closed, and the VxWorks operation is completed System debugging. The invention can be applied to the debugging of VxWorks operating systems of different CPU types, and the method is simple. Adopting the present invention does not require extra emulator overhead and reduces design cost. After debugging without using an emulator, the hardware single board can reduce the design of the JTAG interface, which is conducive to the development of product miniaturization.

Description

technical field [0001] 本发明涉及一种系统调试方法,尤其涉及一种VxWorks操作系统调试方法,属于操作系统调试方法的技术领域。 Background technique [0002] VxWorks是由风河公司推出的一款适用于所有主流CPU目标平台的高性能强实时嵌入式操作系统,具有出色的可伸缩、可裁剪和高可靠性,广泛应用于国内航空系统。VxWorks操作系统的开发调试一直是产品型号开发中的关键工作,由于VxWorks操作系统与底层硬件紧密关联,使得VxWorks操作系统的开发调试工作异常复杂困难。 [0003] 风河公司提供专用仿真器用于VxWorks操作系统的调试,但仿真器使用有一定的局限性,首先,仿真器是专用的,不能适用于所有的硬件CPU平台;其次,风河仿真器使用比较复杂,需要配置一系列的配置文件,才能正常使用仿真器。 [0004] 另一种VxWorks调试方法是通过硬件点灯,判断VxWorks的运行流程,定位底层驱动配置错误,达到调试VxWorks操作系统的目的,这种方法需要额外的硬件开销。对于没有点灯模块的硬件单板,显然,这种方法不适用。 Contents of the invention [0005] 本发明的目的是解决上述现有技术的不足,传统的VxWorks操作系统调试需要采用专用仿真器或采用特定硬件单板的问题,提供一种VxWorks操作系统调试方法。 [0006] In order to achieve the above object, the technical scheme adopted in the present invention is: [0007] 一种VxWorks操作系统调试方法,其特征在于包括以下步骤: [0008] 步骤a,在VxWorks操作系统的BSP代码中增加调试驱动,随VxWorks操作系统编译,在VxWorks操作系统的第一条C语言代码处,调用调试驱动的初始化模块完成其初始化; [0009] 步骤b,在需要调试的BSP代码后,增加调试驱动的错误定位模块,错误定位模块反应出相应BSP代码执行的结果; [0010] 步骤c,修改BSP代码中的错误,直至关闭所有错误,完成VxWorks操作系统的调试。 [0011] 进一...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/22G06F11/36
CPCG06F11/2289G06F11/3624
Inventor 张锋曹峰高伟林钟海林
Owner SUZHOU CHANGFENG AVIATION ELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products