Skip to main content
bngstskn
Associate III
October 14, 2022
Question

Send data to PC without UART ( STM32 USB COM)

Hi, I am using STM32-F767ZI Nucleo board. I trying send data to my PC without UART. My code is correct but data is not sending. In my opinion everything is true. But what is the problem ,I don't. My codes is in the photos.

This topic has been closed for replies.

2 replies

MM..1
Super User
October 14, 2022

On Nucleo you have simpler way use STLink UART ... USB Cable connected to stlink.

Your code need USB connected to 767 USB con and create more complicated sw as your example.

Tesla DeLorean
Guru
October 14, 2022

>>My code is correct but data is not sending.

That seems a bit of a reach..

The code is rather superficial and doesn't check if the interface is connected, or report or act on any errors or status returns.

I don't really see how the interface is serviced/pumped, probably interrupts

Perhaps walk one of the CDC examples for the F7 platform.

STM32Cube_FW_F7_V1.17.0\Projects\STM32F769I_EVAL\Applications\USB_Device\CDC_Standalone

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..