- Yes, you can remove the CyU3PDebugPrint() APIs or comment the function call that initializes the UART block for debugging. In most example ffirmware, this function would be CyFxApplnDebugInit().
- In order to debug the firmware, you can use the USB/ I2C/ JTAG block of FX3. JTAG debugging is explained in the EzUsbSuite_UG.pdf file. For USB/ I2C based debugging, these blocks have to be configured similar to the UART block as in the case of example firmware. A DMA channel has to be created between the FX3 CPU and the I2C/ USB block. Data that is to be printed has to be sent over this channel.
For debugging over USB interface, you may refer the following example project which is available with FX3 SDK.
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\basic_examples\cyfxusbdebug