棋子 · 2020年02月10日

Debugger-based Firmware Test Framework

I'm currently working on a Python-based framework for on-target firmware testing of firmware of Cortex-M MCU systems. The approach is heavily based on the use of the debug probe to perform unit as well as system tests.

The framework I have in mind allows us to do

firmware testing without modifications for testing (i.e., not test code compiled into the firmware)
firmware component testing without mocking of, e.g., peripherals
firmware testing with selective injection of data into the execution
firmware testing on the original target device
firmware testing using the original compiler
The tests themselves are implemented in Python and are executed on a host PC which also gives you full accesses to whatever equipment you already have available for providing external test stimuli or performing measurements.

I would like to learn what approaches you are taking for firmware testing and I would like to hear your opinion on the proposed approach. If things work out well, we plan to release the framework on GitHub later this spring.

1 个回答 得票排序 · 时间排序
极术小姐姐 · 2020年02月10日

Though not complete firmware, but our RTOS is tested on target using various debug probes (depending on the CPU) using the respective API. But we build test executables and use the debug probes for downloading/flashing and retrieving test results. So we need only a minimum feature.

For code coverage we rely on either Lauterbach or IAR simulator.

你的回答
关注数
1
收藏数
0
浏览数
2899
极术小姐姐
极术微信服务号
关注极术微信号
实时接收点赞提醒和评论通知
安谋科技学堂公众号
关注安谋科技学堂
实时获取安谋科技及 Arm 教学资源
安谋科技招聘公众号
关注安谋科技招聘
实时获取安谋科技中国职位信息