cancel
Showing results for 
Search instead for 
Did you mean: 

can I send back speed data through the USB connection?

mopplop.1
Associate II

I am using the motor control code in the cube IDE generated by the motor workbench . How can I send back the speed of the motor to the console? Can I use HAL_Uart? Right now I am not getting any response

2 REPLIES 2

Pretty sure the HAL_UART methods will not connect with any USB CDC methods.

The UART functions would only have context in ST-LINK/V2-1 and V3 boards where they take physical UART connections. And there you'd send data to the STM32 side UART connecting to the ST-LINK

Which board are we talking about here? Is it a custom board.

For a custom board I'd probably expect you'd need a USB CDC/VCP or HID type class.

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

Hi thanks for answering. I’m using nucleo f302r8 and ihm07m1 boards. Sorry I’m new to this so I don’t fully understand how the connections work, but if the speed of the motor can be shown in the motor control workbench, surely there should be a way to also output the speed in console?