Maker Pro
Maker Pro

optimise firmware testing time

ahamza

Mar 31, 2022
1
Joined
Mar 31, 2022
Messages
1
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
Nov 17, 2011
12,774
Joined
Nov 17, 2011
Messages
12,774
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