Skip to main content
Kranthi Reddy
Associate II
January 20, 2023
Question

For the first time i'm working on STM32 MCU, Currently I'm working on STM32L072CZY6TR, Can i get the basic code to Transmit and Receive the data through USB connectivity. If possible also terminology.

  • January 20, 2023
  • 2 replies
  • 887 views

..

This topic has been closed for replies.

2 replies

Foued_KH
ST Employee
January 20, 2023
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.
gbm
Lead III
January 20, 2023

Start by deciding what USB device class you want to implement. It should probably by CDC (virtual COM port) or HID. Then look for CubeIDE HOWTOs and examples. Both classes may be easily created with CubeIDE, although there are some nasty details which must be handled properly..

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Kranthi Reddy
Associate II
January 24, 2023

I want to use communication class first and later i want to use human interface device. I've been trying from past 4 days but not able transmit and receive. Can i get any simple transmit and receive code or example through USB-device only-communication class and USB-device only-HID mode.

It will be much helpful for me, if someone help.