Maker Pro
Maker Pro

optimise firmware testing time

In testing the pre-release version I’m usually use UART to log data form the MCU. So i can ensure all parts are working together correctly. I have to write special logging code for each testing situation.

Is there any library or tool that can automate logging of MCU data during Run-time testing ?
 

Harald Kapp

Moderator
Moderator
This can in my opinion not be fully automated. How is any tool to know which parts of the code need to be monitored?
If you have repeating test situations, put your debug code in a library of your own to re-use it. So you don't have to create it from scratch every time you need it
You can simplify debugging using the preprocessor (when programming in C).
Note that debug code will take up additional memory and computing time, so keep debug code short. The program may behave differently with or without debug code, especially if there are time-critical routines.

A hardware debugger may allow you to trace the program flow in real time without extra debug code.
 
Top