MCSDK debug error
Hi,
Im currently tring to program my nucleo-f103rb module. I have succesfully generated Motor control workbench project and CubeMx project. After code generation using cubemx , stm32cubeide1.8.0 opens the project code. Without changing anyting on the code , i pressed debug and 17 errors accured. I will share build console respons below.
Build console:
17:41:05 **** Incremental Build of configuration Debug for project stm32f103rb_son ****
make -j8 all
arm-none-eabi-gcc "../MotorControl/App/motorcontrol.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xB -c -I../MotorControl/App -I../MotorControl -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/F1xx/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/SystemDriveParams -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"MotorControl/App/motorcontrol.d" -MT"MotorControl/App/motorcontrol.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "MotorControl/App/motorcontrol.o"
arm-none-eabi-gcc "../MotorControl/dac_rctimer_ui.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xB -c -I../MotorControl/App -I../MotorControl -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/F1xx/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/SystemDriveParams -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"MotorControl/dac_rctimer_ui.d" -MT"MotorControl/dac_rctimer_ui.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "MotorControl/dac_rctimer_ui.o"
arm-none-eabi-gcc "../MotorControl/mc_api.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xB -c -I../MotorControl/App -I../MotorControl -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/F1xx/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/SystemDriveParams -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"MotorControl/mc_api.d" -MT"MotorControl/mc_api.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "MotorControl/mc_api.o"
arm-none-eabi-gcc "../MotorControl/mc_config.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xB -c -I../MotorControl/App -I../MotorControl -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/F1xx/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/SystemDriveParams -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"MotorControl/mc_config.d" -MT"MotorControl/mc_config.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "MotorControl/mc_config.o"
arm-none-eabi-gcc "../MotorControl/mc_interface.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xB -c -I../MotorControl/App -I../MotorControl -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/F1xx/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/SystemDriveParams -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"MotorControl/mc_interface.d" -MT"MotorControl/mc_interface.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "MotorControl/mc_interface.o"
arm-none-eabi-gcc "../MotorControl/mc_math.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xB -c -I../MotorControl/App -I../MotorControl -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/F1xx/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/SystemDriveParams -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"MotorControl/mc_math.d" -MT"MotorControl/mc_math.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "MotorControl/mc_math.o"
arm-none-eabi-gcc "../MotorControl/mc_parameters.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xB -c -I../MotorControl/App -I../MotorControl -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/F1xx/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/SystemDriveParams -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"MotorControl/mc_parameters.d" -MT"MotorControl/mc_parameters.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "MotorControl/mc_parameters.o"
arm-none-eabi-gcc "../MotorControl/mc_tasks.c" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xB -c -I../MotorControl/App -I../MotorControl -I../Core/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/F1xx/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc -I../MCSDK_v5.4.8-Full/MotorControl/MCSDK/SystemDriveParams -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"MotorControl/mc_tasks.d" -MT"MotorControl/mc_tasks.o" --specs=nano.specs -mfloat-abi=soft -mthumb -o "MotorControl/mc_tasks.o"
In file included from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/mc_type.h:56,
from ../MotorControl/user_interface.h:31,
from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/UILibrary/Inc/dac_rctimer_ui.h:25,
from ../MotorControl/dac_rctimer_ui.c:26:
../MotorControl/mc_stm_types.h:30:12: fatal error: stm32f1xx_ll_rcc.h: No such file or directory
30 | #include "stm32f1xx_ll_rcc.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [MotorControl/subdir.mk:52: MotorControl/dac_rctimer_ui.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/mc_type.h:56,
from ../MotorControl/mc_interface.h:31,
from ../MotorControl/mc_api.c:20:
../MotorControl/mc_stm_types.h:30:12: fatal error: stm32f1xx_ll_rcc.h: No such file or directory
30 | #include "stm32f1xx_ll_rcc.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/mc_type.h:56,
from ../MotorControl/mc_math.h:28,
from ../MotorControl/mc_interface.c:24:
../MotorControl/mc_stm_types.h:30:12: fatal error: stm32f1xx_ll_rcc.h: No such file or directory
30 | #include "stm32f1xx_ll_rcc.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [MotorControl/subdir.mk:52: MotorControl/mc_api.o] Error 1
In file included from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/mc_type.h:56,
from ../MotorControl/mc_math.h:28,
from ../MotorControl/mc_math.c:22:
../MotorControl/mc_stm_types.h:30:12: fatal error: stm32f1xx_ll_rcc.h: No such file or directory
30 | #include "stm32f1xx_ll_rcc.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [MotorControl/subdir.mk:52: MotorControl/mc_interface.o] Error 1
make: *** [MotorControl/subdir.mk:52: MotorControl/mc_math.o] Error 1
In file included from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/mc_type.h:56,
from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/pid_regulator.h:27,
from ../MotorControl/mc_config.h:24,
from ../MotorControl/App/motorcontrol.h:24,
from ../Core/Inc/main.h:31,
from ../MotorControl/App/motorcontrol.c:19:
../MotorControl/mc_stm_types.h:30:12: fatal error: stm32f1xx_ll_rcc.h: No such file or directory
30 | #include "stm32f1xx_ll_rcc.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [MotorControl/App/subdir.mk:19: MotorControl/App/motorcontrol.o] Error 1
In file included from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/mc_type.h:56,
from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/pid_regulator.h:27,
from ../MotorControl/mc_config.h:24,
from ../MotorControl/App/motorcontrol.h:24,
from ../Core/Inc/main.h:31,
from ../MotorControl/mc_parameters.c:24:
../MotorControl/mc_stm_types.h:30:12: fatal error: stm32f1xx_ll_rcc.h: No such file or directory
30 | #include "stm32f1xx_ll_rcc.h"
| ^~~~~~~~~~~~~~~~~~~~
In file included from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/mc_type.h:56,
from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/pid_regulator.h:27,
from ../MotorControl/mc_config.h:24,
from ../MotorControl/App/motorcontrol.h:24,
from ../Core/Inc/main.h:31,
from ../MotorControl/mc_config.c:19:
../MotorControl/mc_stm_types.h:30:12: fatal error: stm32f1xx_ll_rcc.h: No such file or directory
30 | #include "stm32f1xx_ll_rcc.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
make: *** [MotorControl/subdir.mk:52: MotorControl/mc_config.o] Error 1
make: *** [MotorControl/subdir.mk:52: MotorControl/mc_parameters.o] Error 1
In file included from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/mc_type.h:56,
from ../MCSDK_v5.4.8-Full/MotorControl/MCSDK/MCLib/Any/Inc/pid_regulator.h:27,
from ../MotorControl/mc_config.h:24,
from ../MotorControl/App/motorcontrol.h:24,
from ../Core/Inc/main.h:31,
from ../MotorControl/mc_tasks.c:23:
../MotorControl/mc_stm_types.h:30:12: fatal error: stm32f1xx_ll_rcc.h: No such file or directory
30 | #include "stm32f1xx_ll_rcc.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [MotorControl/subdir.mk:52: MotorControl/mc_tasks.o] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
17:41:06 Build Failed. 17 errors, 0 warnings. (took 644ms)
I had using old version of stm32cubeide and today i deleted old one and installed newer version 1.8.0 becuase i saw this errors. I thought newer version will solve this but no luck. I m using;
MotorControl Workbench 5.4.8
STM32CubeMX version 6.4.0
STM32CubeIDE 1.8.0
with win 7 os.
Please help.
