2026-01-21 2:42 AM - last edited on 2026-01-21 2:50 AM by Andrew Neil
Greetings,
Kindly, I would like to know which USB interface I can use to transfer data between the STM32L552E-EV and the reComputer J4012.
I am working with TEE, and my goal is to send plaintext from the reComputer to the STM32L5 so that it can be encrypted on the device. However, when I send data, I do not receive any response.
I have tried using both the USB port and ST-Link, but the result is the same. I can see the ST-Link device on the reComputer, but when I use USB CDC, it is not recognized.
Could you explain the proper USB connection and how to set up the communication?
2026-01-21 2:52 AM - edited 2026-01-21 2:54 AM
Hello,
The connection (CN22) of STLINK over a virtual comport (windows) offers a kind of "UART protocol over USB".
If you need to use the USB you need to use CN1 connector (USB FS).
2026-01-21 2:59 AM - edited 2026-01-21 3:06 AM
Some more detail would help:
How to write your question to maximize your chances to find a solution
@Nirene wrote:the reComputer J4012.
You mean this: https://files.seeedstudio.com/wiki/reComputer/reComputer-J40.pdf ?
@Nirene wrote:I am working with TEE,
What do you mean by that?
@Nirene wrote:However, when I send data, I do not receive any response.
So what, exactly, did you try?
As @mƎALLEm said, the ST-Link provides a Virtual COM Port (VCP); for native USB, you would use CN1.
For the VCP, you just need to use the STM32L5 UART on whichever of the STM32L5's pins is connected to the VCP - see the board's User Manual for details.
For native USB, you would have to make a complete USB device implementation.
CubeMX will give you access to examples...
PS:
The STM32L552E-EV also has an RS232 port, so you could use a USB-to-RS232 adaptor;
There are also logic-level UART signals available on the PMOD and STMOD+ connectors, so you could use a UART-to-USB adaptor (of the appropriate voltage) there.
These will also give you a VCP.
2026-01-21 3:19 AM
From the User Manual: