- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi FX3 team,
From the example code in slavefifo_example\slfifosync, the UART in CyFxSlFifoApplnDebugInit (void) in the example code is pointing to CY_U3P_LPP_SOCKET_UART_CONS. meaning the UART message will be send to the physical UART port in cypress FX3 IC.
Can i reuse back the same code with minor change on :
- From the example : CyU3PDebugInit (CY_U3P_LPP_SOCKET_UART_CONS, 😎
- My changes : CyU3PDebugInit (CY_FX_EP_CONSUMER_CDC_SOCKET, 8), this is assuming that the USB serial com port is already make available in windows device manager.
and direct the UART message via USB to the host-PC and read it with teraterm terminal?
the example code i am refering to with the minor change is as in the picture attached.
Solved! Go to Solution.
- Labels:
-
USB Superspeed Peripherals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have modified the project that was shared in your previous response. Currently, I'm able to obtain the debug logs using the CDC interface with this project. Please test this at your end and let me know if you face any issues.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please refer to the following blog post:
You can also refer to the following thread:
Even though the above thread has interactions for adding CDC interface for a UVC device, you can make use of the same modifications for slave fifo too.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi JayaKrishna,
I follow the 1st blog post on the link to add the CDC (Adding Communication Device Class Interface to FX3 Firmware - KBA229099)and where able to get the virtual COM3 detected in windows device manager. But as i add the void SwitchConsoles(void) into the slfifo example, i don't see any message appearing in teraterm terminal.
1st blog post refer to : https://community.infineon.com/t5/Resource-Library/SlaveFiFoSync-example-with-a-CDC-debug-console/ta...
SwitchConsoles code that i added in:
"UsingUARTConsole" variable is place at :
SwitchConsoles() call is place at:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you please share the complete project with us? It looks like the device went to the bootloader mode. I would like to check the code to see why this happened.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can you please let me know why you have added a separate thread (USBUARTAppThread) in your application. Also, please let me know if the functions CyFxUSBUARTAppStop () and CyFxUSBUARTAppStart () are added to configure the DMA channels for obtaining the debug prints. If my understanding is not correct, then please let me know why it is used.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I follow the example provided by the link provided by you Adding Communication Device Class Interface to FX3 Firmware - KBA229099
where the below CDC function are added into the slfifosynch example. They are:
USBUARTDmaCallback(), USBUARTAppStart(), USBUARTAppStop(), USBUARTAppInit(), USBUARTAppThread_Entry ().
And yes, USBUARTAppStart(), USBUARTAppStop() are added to configure the DMA channels for obtaining the debug prints.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do let me know if it is not advisable to have a separate USBUARTAppThread_Entry ().
My intention to add the CDC is to only print the message via CyU3PDebugPrint() at the teraterm terminal. not so much on using the terminal to send instruction into the cypress firmware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you tell me which file has you modified?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I removed the unwanted functions that you mentioned in your previous response. Also, I added few lines of code to the file cyfxslfifosync.c (line #499 - line #545).
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i am trying it our now, should take about 10 mins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please let me know if you are testing with the project that was shared in my previous response or not. If not, then please try testing with that project and let me know if you are still not getting any prints.
You need not type anything in the control center to get the print. The API CyU3PDebugPrint () will directly print the messages in the terminal.
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, i am trying the project you send me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Have you made any modifications to this firmware? This is because I am able to see the prints "Data tracker: .." continuously at my end without any issues. Please try uninstalling and re-installing the device again from the device manager and check if you are able to get the prints.
Also, can you please test on a different PC?
Jayakrishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
noted on the advise, will try it next week monday, its a bit late here, need to go off.
you have a good day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jayakrishna,
Yes, it is working now, i can see message appearing in the terminal. Many thanks for your guidance.
Really appreciated the support, JJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are glad to hear that the issue is resolved.
Jayakrishna