Hi,
I'm currently writing a series of unit tests for a module which is included within our embedded firmware. There is a high possibility that this module will evolve so these tests will need to be re-run. I'm running the unit tests within the simulator and was hoping to be able to hit run, the tests get executed and once complete the results get outputted to a file so that I have the necessary evidence that the tests have been carried since I'd rather not have to sit and manually copy out the test case results. I've had a look at the C51 manual and it says that fopen isn't supported. Is there an alternative solution to logging my test results?
Cheers for any help that is forth coming.
The debugger can capture the serial port data from the simulated processor.
If your processor has a serial port, and you haven't configured the processor to allocate the relevant pins or baudrate timer for other tasks, then it doesn't matter that your target hardware does not have a serial port.
On the other hand - if your test code does not depend on any hardware resource that collides with the UART function, then you can reconfigure your simulated processor to have a serial port just for these tests.