1.5.1.2 Step 2. Configure Serial Output

Unity requires support for printf to output test results. This can be done in several ways.

One approach is to install and use the MPLAB X IDE plugin MPLAB Code Configurator (MCC). Once installed, open MCC and add an USART (or UART) from the Device Resources view. Make sure to enable Printf support as part of the configuration.

The following example shows a configured USART for the ATtiny817 device with Printf in MCC:

When you have configured the USART (or UART) in MCC remember to click “Generate” and verify that the configured files are added to your project.