Hi @77kk,
After creating the example using the Motor Control Workbench, you should open the project using the IDE you selected during the generation process (e.g. STM32CubeIDE).
The next step is to compile the code and download it into the STSPIN32F0B through the STLINK programmer embedded on the board:
- Supply the board
- Connect the board to the PC through the USB cable
- STLINK is detected by the system. If drivers are missing, you can download them here
- After the STLINK is properly detected, you can use it for programming the STSPIN32F0B and debug the firmware
Please note that the STSPIN32F0 is supplied though the main supply voltage of the board, not the USB.
For this reason, connecting the board to PC before suppling it will return a "missing target" error.
The Motor Control Workbench also provide a GUI (MC Pilot) for controlling the motor using the Virtual COM interface of STSLINK.
For more information about the six-step example, you can refer to the dedicated User Manual: UM2916 MCSDK - 6-step firmware examples: insights of the firmware and how to customize it.
Good luck for your project.
Enrico