ciao @Ferrari ,
in the STSPIN32F0A device mounted on STEVAL-SPIN3202 board is not pre-loaded any firmware.
First of all check if you have the right jumper setting for the FOC driving (by default the six-step mode is selected, more details on UM2278)
- jumper connected on J12 closed and remove jumper from J11;
- jumper connected on JP8 between pin 2 and 3 (FOC position).
You can create your project to drive a motor with FOC algorithms with STM32 motor control workbench following these steps:
- Open the STM32 motor control workbench
- Click on “New Project�? and a parameter window appears
- Choose the “Inverter�? board type and select the STEVAL-SPIN3202 from the dropdown list. In this way, the application automatically loads all the hardware-related parameters for the FOC library.
- From the motor list, one of the pre-configured motors (or a generic starting model can be selected)
- Click OK. A new project is now created according to the starting parameters selected.
A new configuration window appears, allowing the parameters to be set for each blocks: “Motor�?, “Power Stage�?, “FW Drive Management�? (i.e. FOC algorithm configuration), “Control Stage�? (i.e. MCU configuration).
You can customize your application and save the project by clicking on the save button.
This is the configuration file of parameters used and generate the code by clicking on "Generation" button.
In the generation windows you can set more parameters and after create the custom folder with your library code.
You can find more details on the UM2168 Using STM32 motor control workbench with STSPIN32F0 and STSPIN32F0A
Let me know, if I answer to your question.