This tutorial shows you how to use the DebugSerial function over the USB port of your UP²* board. The DebugSerial function will only work if your UP² board is connected 'via Cloud'. If you are connected via micro USB cable, then see this Serial tutorial.

What you’ll learn

  • In this example, you’ll learn how to set up a serial monitor. You’ll use built-in functions to set up, transmit, and receive data over serial, which is very useful for debugging.

Gather your materials

You’ll need the following to complete this tutorial:

This sample continues on GitHub*.

Also, another serial monitor example is provided as well:

Para obtener información más completa sobre las optimizaciones del compilador, consulte nuestro Aviso de optimización.