2022-07-13 12:50 PM
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
2022-07-13 01:03 PM
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.
2022-07-13 01:26 PM
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?