2024-05-02 03:38 AM - edited 2024-05-26 11:52 PM
Hi Everyone.
As mentioned in the subject I have 2 Nucleo F767zit. where i configured one board as Host(CDC) and another as Device(CDC). I referred MOOC USB training(https://www.youtube.com/playlist?list=PLnMKNibPkDnFFRBVD206EfnnHhQZI4Hxa), configured Host by (11.1 VCP Host lab) video and Device by (9.1 and 9.2 VCP)video. Host is sending data which is successfully received by Device(OUT direction communication is working), but when Device sends the Data unable to receive that data on the HOST(IN direction communication is not working). I'm unable debug this. Also tried from (https://controllerstech.com/usb-cdc-device-and-host-in-stm32/) this website still the same problem, Data is not Received by Host , Idk what is the reason can anybody help me out with this.
thanks
Solved! Go to Solution.
2024-05-23 10:44 AM
Dear @JagadishB
I have some updates. Unfortunately, it seems your implementation is not properly handled. Here, an example from cube firmware where you can configure CDC to send and receive buffer. I have succeeded to make it work on my side without issues by simply looping back RX to TX (device side). you can insert a dummy integer and increment it in CDC_Itf_Receive() to check if you are receiving data.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-14 04:25 AM
Hi @JagadishB
Would you attach your projects to reproduce on my end?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-14 06:04 AM
Hi@FBL
I'm Attaching both Host and device project with this. Thanks for the reply.
2024-05-14 11:36 AM
Hi @JagadishB
I reproduce the issue as you specified. An internal ticket 181392 has been submitted to dedicated team for further investigation.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-14 10:07 PM
Thank you very much @FBL , I'm looking forward for the solution.
2024-05-23 01:03 AM
hi @FBL
I hope things are going well.I wanted to know when can I expect the Updates regarding the Issue I raised.
2024-05-23 10:44 AM
Dear @JagadishB
I have some updates. Unfortunately, it seems your implementation is not properly handled. Here, an example from cube firmware where you can configure CDC to send and receive buffer. I have succeeded to make it work on my side without issues by simply looping back RX to TX (device side). you can insert a dummy integer and increment it in CDC_Itf_Receive() to check if you are receiving data.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-24 02:50 AM - edited 2024-05-27 01:07 AM
Hi @FBL .
Thanks for the reply with details.
Referring the image above I think that the enumeration process is working fine, after enumeration process when the communication begins, the host (being Nucleo F767) will send the data which is being received by the device (Nucleo-F767ZI), but when device sends any data (in loop back mode) that is not getting received on the host. I don't have any USB Protocol Analyzer to debug the communication between host and the device (both being Nucleo-F767ZI). I would like to mention one more thing is that the device with the same code I had provided you is working successfully with PC as host, both data transmit and recieve is working. As I'm just a beginner with the USB Protocol I need some guidance from you to move ahead. Please suggest if any corrections to the host or device code to be done, so that I can do the same thing to make the communication work with the host (Nucleo-F767ZI) from the device. I am now using STM32Cube IDE for development of the USB code, please consider the same.