How can a user know which set of UART transmission is used when processing messages through printf ()?

Post Reply
a_ziliu
Posts: 208
Joined: 20 Mar 2017, 10:52

27 Mar 2017, 14:07

In the process of developing applications, user often needs to use printf () to process messages for debugging. If the UART supported by the NuMicro? series is more than one, it can be determined by defining "retarget.c" in DEBUG PORT that printf() uses which set of UART for transmission. The default is UART0.
The user can change the definition of DEBUG PORT and the printf () transmission port to comply with the system architecture.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests