Hi, did you try setting target velocity to some other initial value then 0.0? Your issue might be with the Commander and serial communication – perhaps target_velocity never gets set to a non zero value.
Even at target velocity 0, you should be able to feel that motor resists turning when the power is on. If not, then there may be something wrong with your board or connections.
I basically tried the same thing yesterday (different motor though). Only difference I can see is not using Commander and using Serial2 instead of Serial and using a somewhat different platformio.ini:
[env:disco_b_g431b_esc1]
platform = ststm32
board = disco_b_g431b_esc1
framework = arduino
lib_archive = false
monitor_speed = 115200
build_flags =
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
; -D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_FULLMODE
lib_deps=
askuric/Simple FOC @ ^2.0.2
SPI
Wire
Note the ENABLE_CDC which enables serial communication via USB and the embedded STLINK v.2 AFAIK. And note that I had to comment out the request for for USB highspeed (relative to the instructions on B-G431B-ESC1: Beginner guide + I2C guide).