cancel
Showing results for 
Search instead for 
Did you mean: 

USB to CAN interface

oli_the_true_one
Associate

Hello ST community,

I'm working on an interface board based on STM32F412 to send CAN frame from a computer using USB communication.

For the moment I'm doing some tests with the CDC stack and the default ST's USB virtual com port driver on Windows 10. My test software is simple, when I receive something from the USB, I send 'OK' to the host. I do nothing more.

oli_the_true_one_0-1709195364993.png

It takes around 100ms to get an answer from the STM32, which is too slow for my application (I aim for delays between 1ms and 10ms).

oli_the_true_one_1-1709195591831.png

Since it is my first project using USB, I was wondering if it is mandatory and if it makes sense to develop my own stack and windows drivers to reach that delay or if I still can do something with default libraries and drivers from ST.

Thank you in advance for you advices !

 

 

 

1 REPLY 1
FBL
ST Employee

Hello @oli_the_true_one 

First, have you increased USB endpoint buffer size?

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.


I'm out of offce with limited access to my emails.
Happy New Year!