首页 | 官方网站   微博 | 高级检索  
     

基于Keil C51的嵌入式软件外设虚拟化设计与实现
引用本文:申 臻,宋雷军,魏冬冬,于清华,刘 涛.基于Keil C51的嵌入式软件外设虚拟化设计与实现[J].计算机测量与控制,2023,31(4):205-212.
作者姓名:申 臻  宋雷军  魏冬冬  于清华  刘 涛
作者单位:上海航天电子技术研究所,,,,
摘    要:航空航天控制领域嵌入式软件测试主要存在软件运行物理环境受限和软件测试覆盖性不足等问题,为解决以上问题,对嵌入式软件的外部设备进行了研究,构建了数字化测试平台替代实物环境的方案,设计并完成了平台的总线1553B、总线RS422、AD采集、I/O等外部设备;并模拟了平台嵌入式软件真实的运行环境,使测试过程不受实物环境制约,测试激励的注入不受任何限制,保障了测试的充分性;最后,以某电源下位机测试过程为例,实现了故障注入、边界测试,验证了平台在嵌入式软件测试中的有效性和可靠性。

关 键 词:1553B虚拟化  Keil  嵌入式软件  数字测试环境  目标码覆盖率
收稿时间:2022/8/20 0:00:00
修稿时间:2022/9/9 0:00:00

Design and Implementation of Embedded Software Peripheral Virtualization Based on Keil C51
Abstract:At present, the testing of embedded software in the aerospace control field faces two problems: the use of the physical environment for the actual operation of the software is limited; in the physical environment, certain faults and boundary test cases cannot be executed, resulting in insufficient test coverage and accuracy. Satisfy. In order to solve the above problems, the external equipment of embedded software was researched, and a plan to build a digital test platform to replace the physical environment was proposed, and the virtualization of external equipment such as bus 1553B, bus RS422, AD acquisition, I/O, etc. was designed and completed. The platform simulates the real operating environment of the embedded software, the test process is not restricted by the physical environment, and the injection of test incentives is not restricted in any way, ensuring the adequacy of the test. Finally, taking the test process simulation of the lower computer of a certain power supply as an example, a digital simulation platform that does not rely on the real hardware environment can be built, which can realize the execution of special test cases such as fault injection and boundary testing, which verifies the effectiveness of the platform in embedded software testing.
Keywords:1553B virtualization  Keil  embedded software  digital test environment  target code coverage
点击此处可从《计算机测量与控制》浏览原始摘要信息
点击此处可从《计算机测量与控制》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号