- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to print uart messages from fx3 to pc.I am using tx,rx and gnd pins.Pc tx is connected to fx3 rx and fx3 tx is connected pc rx(rs232->usb connector).
uartConfig.baudRate = CY_U3P_UART_BAUDRATE_115200;
uartConfig.stopBit = CY_U3P_UART_ONE_STOP_BIT;
uartConfig.parity = CY_U3P_UART_NO_PARITY;
uartConfig.txEnable = CyTrue;
uartConfig.rxEnable = CyFalse;
uartConfig.flowCtrl = CyFalse;
uartConfig.isDma = CyTrue;
Above parametres defined in fx3 and pc both are same.
For this message, CyU3PDebugPrint (4, "CyU3PDmaChannelCommitBuffer failed, Error code = %d\n", status);
data is printing on teraterm,but data is in other format not as in CyU3PDebugPrint .
thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Geetha,
- As per the firmware, you are using 16-bit configuration in DEFAULT lpp mode that means pins (46:49) are used as UART.
Check that the pins are properly connected.
- And if you are using the integrated debugger, pins (53:56) are connected to the com port and cannot be used for SPI (as in your firmware).
For 16-bit lpp mode should be changed to UART_ONLY.
- For using CyU3PDebugLog() API please refer to FX3 API Guide. It seems the parameters passed are not proper.
- CyU3PDebugPreamble should be added in CyfxdebugInit() function block only.
Regards,
Rashi
Rashi