2017-01-24 02:58 AM
Hi,
I'm running in some communication problems with USB at the STM32L052 on Linux. If the device is connected via /dev/ttyACM0 and transmitting data to the host, I see an echo on the receive buffer inside the STM. If the host request another data packet than, the STM32 doesn't regconize the request.
Example:
STM is transmitting 'This is a test'. The STM receives several packets interrupts as:
1) 'This'
2) ' is '
3) 'a tes'
Lenght is except for the first packet always 4.
If the STM is connected as /dev/ttyACM1, everything is working fine. No echo is received.
Is there anything known?
Project is build with:
+ CubeMX 4.19.0
+ HAL-Lib STM32Cube_FW_L0_V1.7.0
+ Atollic TrueStudio
Kind regards
Siegfried Kamlah
2017-01-24 03:52 AM
Hello
I have moved your thread to the
‌ where someone should be able to assist you.Thanks
Oli
2017-01-26 01:51 AM
This sounds like ttyACM0 is readen faster by your Linux as the ttyACM1. With small Timeslices in Reading the VCP you will get splitted Data. But I don't know where you can configure this. You will need some handling around your VCP-Data with Buffers and Syntax-/Content-Checking
2017-01-26 03:40 AM
Found the reason for the effect: Inside the configuration file for openocd there was a STM32L1 selected, not a STM32L0. Now USB is running.