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 obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.