测试固件 [英] Testing firmware

查看:36
本文介绍了测试固件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这遵循几个其他 问题(但我想我已经更好地提炼了我的问题).

This follows a couple of other questions (but I think I have refined my question better).

我想在安装设备之前测试我的固件代码.

I want to test out my firmware code before I put on the device.

我意识到很多人写他们的代码,上传,测试等.但我真的想在上传之前编写和测试(主要是因为我想自动化许多场景).

I realize that a lot of people write their code, upload, test, etc. But I really want to write and test before upload (mainly because I want to automate the many scenarios).

那么,这样做的最佳方法是什么.如果我正在编写纯软件,例如根本没有固件,我会使用 cppunit(例如)来完成它.但是我对这个固件有点迷茫.

So, what is the best way of doing this. If I were writing pure software, as in, no firmware at all, I would go about it by using cppunit (for example). But I'm a little lost with this firmware thing.

有什么想法吗?

谢谢

推荐答案

好吧,如果不知道您的代码是如何构建的就很难说,但基本上您可以像其他软件一样在类/函数级别测试软件.任何与设备接口的代码很可能需要通过仿真进行测试.

Well it is hard to say without knowing how your code is architected, but basically you could test the software at the class/function level just like other software. Any code that interfaces with the device would most likely need to be tested via emmulation.

这篇关于测试固件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆