2024-07-30 08:16 AM
Hi,
MCSDK-PKG001/STEVAL-PTOOL1V1_6S_HL fails to compile with the errors below:
C:/Users/Ian/.st_workbench/projects/MCSDK-PKG001/STEVAL-PTOOL1V1_6S_HL/Src/mc_tasks.c: In function 'MC_RunMotorControlTasks':
C:/Users/Ian/.st_workbench/projects/MCSDK-PKG001/STEVAL-PTOOL1V1_6S_HL/Src/mc_tasks.c:221:9: warning: implicit declaration of function 'SixPwm_TurnOnLowSides'; did you mean 'PWMC_TurnOnLowSides'? [-Wimplicit-function-declaration]
221 | SixPwm_TurnOnLowSides(pwmcHandle[M1],M1_CHARGE_BOOT_CAP_DUTY_CYCLES);
| ^~~~~~~~~~~~~~~~~~~~~
| PWMC_TurnOnLowSides
C:/Tools/STM32/STM32CubeIDE_1.16.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Application/User/mc_tasks.o: in function `MC_RunMotorControlTasks':
C:/Users/Ian/.st_workbench/projects/MCSDK-PKG001/STEVAL-PTOOL1V1_6S_HL/Src/mc_tasks.c:221: undefined reference to `SixPwm_TurnOnLowSides'
2024-08-09 03:13 AM
Hi murpia, these two examples STEVAL-PTOOL1V1_6S_HL.ioc and STEVAL-PTOOL1V1_6S_SL.ioc must be generated with the followed setup (information embedded into the IOC file):
STM32Cube FW_F0 V1.11.4
CubeMxCube.Version=6.9.1 or above (i used 6.9.11)
MCSDK_v6.2.0
With this setup the two examples compile with STM32CubeIde.
Best Regards.
Fabrice