2025-07-11 10:39 AM
Hi, I got a Steval-ctm010v1 board and using sdk 5.4.8. I have tried to enable its PFC section with eliminating the warning from xml file at the sdk file location. It enabled the PFC in the motor workbench and it shows that pins are assigned at the motor workbench. But After generating the code, the pins aren’t assigned in Stm32cube MX so the PFC isn’t enabled in practice and it just generates the PFC codes (pfc.c and etc…) to be used in the main code. How can I enable PFC the right way? any Help would be appreciated.
2025-07-16 7:26 AM - edited 2025-07-16 7:27 AM
Hello @David_212,
Following associated "readme.txt", I am able to obtain a PFC project with PFC i/o defined, important steps are:
* 1. Open the "PFC.stmcx" file with the STM32 Motor Control Workbench PC software tool and save
* it to another empty location.
* BEWARE: Do not change the name of the PFC.stmcx file, otherwise the
* example will not work properly
* 2. Click on the "update" button to create the demonstration source code, selecting the IDE
* to use: EWARM, MDK-ARM or cubeIDE;
Using "Generate" instead of "Update" on MCSDK generation will erase PFC settings.