FAQ

FAQ

How can a user know which set of UART transmission is used when processing messages through printf ()?  Issue Date:2015-10-16

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.

Products: Microcontrollers ,Arm Cortex-M0 MCUs ,M051 Base Series ,M0518 Series ,M0519 Series ,Nano100/102 Base Series ,Nano110/112 LCD Series ,Nano120 USB Series ,Nano130 Advanced Series ,NUC029 Series ,NUC100/200 Advanced Series ,NUC120/122/123/220 USB Series ,NUC130/230 CAN Series ,NUC131/NUC1311 CAN Series ,NUC140/240 Connectivity Series ,Arm Cortex-M4 MCUs ,M451 Base Series ,M451M Series ,M452 USB Series ,M453 CAN Series ,NUC442/472 Series ,NUC505 Series
Applications:
Function: Peripherals,Connectivity,UART,Software and Tools,Development-Environment,BSP Software Library