Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 150 of 157
Apr 1, 2013
10. Debug Information Output
When the user describes the debug information output macro from the user application, the user can output the debug
information on the console window (HEW).
10.1 When the debug information is output on the console window (HEW)
The following shows the debug information output procedure.
1. Please use the following debug macro in the user application to output user debugprint.
void func( void )
{
uint16_t ver;
ver = 2;
USB_PRINTF1(“RENESAS USB USB-BASIC-F/W V.%d.00”, ver);
}
2. Please enable the following definition that is described in r_usb_cmacprint.h file.
Enable "USB_DEBUGPRINT_PP" definition. (Refer to the following.)
//#define USB_DEBUGUART_PP /* enable sirial out */
#define USB_DEBUGPRINT_PP /* enable display out */
3. Please run the program after compiling.
10.2 When the debug information is outputted to UART
The function to output the debug information to UART does not support in this version.
10.3 Debug Information macros
The following shows the debug information macro to output the debug information to the console window on HEW.
USB_PRINTF0 : The number of argument is 0
USB_PRINTF1 : The number of argument is 1
USB_PRINTF2 : The number of argument is 2
USB_PRINTF3 : The number of argument is 3
USB_PRINTF4 : The number of argument is 4
USB_PRINTF5 : The number of argument is 5
USB_PRINTF6 : The number of argument is 6
USB_PRINTF7 : The number of argument is 7