cancel
Showing results for 
Search instead for 
Did you mean: 

MCSDK debug error

qqwq.1
Associate II

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.

 

7 REPLIES 7
GMA
ST Employee

Hello,

Could you please check that a Firmware Package Version is available when generating project:

GMA_0-1710754042578.png

You can download it through CubeMx>Help>"Manage embedded software packages">STM32F1
stm32f1xx_ll_rcc.h should be present in "Project\Drivers\STM32F1xx_HAL_Driver\Inc" directory.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
qqwq.1
Associate II

Hi.

I just check it and there are some other problems about generating and debuggin.

Firstly when generation project using motor control workbench 5.4.8 software gives some error about java . I will share here screenshot and complete error code.

mcsdk error.PNG

 here is the complete output data of the errors;

2024-03-19 23:39:02,726 ERROR [LineInfo_to_exitCode.log_LineInfo] The ST intranet updater server is unknown: mcucrossselector.codex.cro.st.com

2024-03-19 23:39:33,122 ERROR [LineInfo_to_exitCode.log_LineInfo] java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
2024-03-19 23:39:33,123 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
2024-03-19 23:39:33,123 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
2024-03-19 23:39:33,124 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
2024-03-19 23:39:33,124 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/java.util.Objects.checkIndex(Objects.java:372)
2024-03-19 23:39:33,125 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/java.util.ArrayList.get(ArrayList.java:459)
2024-03-19 23:39:33,125 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JTabbedPane.setIconAt(JTabbedPane.java:1365)
2024-03-19 23:39:33,126 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainPanel.setPluginError(MainPanel.java:445)
2024-03-19 23:39:33,126 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugin.PluginView.setPluginError(PluginView.java:94)
2024-03-19 23:39:33,126 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.pinoutandconfiguration.PinoutAndConfigurationView.propertyChange(PinoutAndConfigurationView.java:1000)
2024-03-19 23:39:33,127 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
2024-03-19 23:39:33,127 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
2024-03-19 23:39:33,128 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.util.MXPropertyChangeSupport.refreshing(MXPropertyChangeSupport.java:68)
2024-03-19 23:39:33,128 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.mxsystem.MxSystem.refreshing(MxSystem.java:872)
2024-03-19 23:39:33,128 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.ipmanager.gui.IPsOverviews.updateAllDiagram(IPsOverviews.java:2445)
2024-03-19 23:39:33,129 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.ipmanager.pluginmanagement.IpPluginManagement.updateAllDiagram(IpPluginManagement.java:382)
2024-03-19 23:39:33,129 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.ipmanager.IPPluginView.getSpecificTask(IPPluginView.java:349)
2024-03-19 23:39:33,129 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.pinoutandconfiguration.PinoutAndConfigurationView.propertyChange(PinoutAndConfigurationView.java:956)
2024-03-19 23:39:33,130 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
2024-03-19 23:39:33,130 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
2024-03-19 23:39:33,131 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
2024-03-19 23:39:33,131 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.Component.firePropertyChange(Component.java:8731)
2024-03-19 23:39:33,131 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4805)
2024-03-19 23:39:33,132 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.Container.removeNotify(Container.java:2831)
2024-03-19 23:39:33,132 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4801)
2024-03-19 23:39:33,133 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.Container.removeNotify(Container.java:2831)
2024-03-19 23:39:33,133 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4801)
2024-03-19 23:39:33,133 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.Container.removeNotify(Container.java:2831)
2024-03-19 23:39:33,134 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4801)
2024-03-19 23:39:33,134 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.Container.removeNotify(Container.java:2831)
2024-03-19 23:39:33,135 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4801)
2024-03-19 23:39:33,135 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.Container.removeNotify(Container.java:2831)
2024-03-19 23:39:33,136 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JComponent.removeNotify(JComponent.java:4801)
2024-03-19 23:39:33,136 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.Container.remove(Container.java:1231)
2024-03-19 23:39:33,136 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JTabbedPane.removeTabAt(JTabbedPane.java:1006)
2024-03-19 23:39:33,137 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JTabbedPane.removeAll(JTabbedPane.java:1075)
2024-03-19 23:39:33,137 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainPanel.removePluginTabs(MainPanel.java:1515)
2024-03-19 23:39:33,137 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainPanel.updateViewsTabPane(MainPanel.java:1520)
2024-03-19 23:39:33,138 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainPanel.propertyChange(MainPanel.java:858)
2024-03-19 23:39:33,138 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
2024-03-19 23:39:33,138 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
2024-03-19 23:39:33,139 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
2024-03-19 23:39:33,139 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.util.MXPropertyChangeSupport.firePropertyChange(MXPropertyChangeSupport.java:50)
2024-03-19 23:39:33,140 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.mxsystem.MxSystem.swingWorkerCompleteLoadConfig(MxSystem.java:785)
2024-03-19 23:39:33,140 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.util.ProcessBarDialog.performAction(ProcessBarDialog.java:89)
2024-03-19 23:39:33,140 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.util.ProcessBarDialog.doAction(ProcessBarDialog.java:136)
2024-03-19 23:39:33,141 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.mxsystem.MxSystem.completeLoadConfig(MxSystem.java:779)
2024-03-19 23:39:33,141 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.LoadConfig(OpenFileManager.java:325)
2024-03-19 23:39:33,142 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.engine.OpenFileManager.loadConfigurationFile(OpenFileManager.java:242)
2024-03-19 23:39:33,142 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.engine.MainFileManager.userLoadConfig(MainFileManager.java:280)
2024-03-19 23:39:33,142 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.FileManagerView.getSpecificTask(FileManagerView.java:240)
2024-03-19 23:39:33,143 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainPanel$4.onCommandEntered(MainPanel.java:977)
2024-03-19 23:39:33,143 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:173)
2024-03-19 23:39:33,144 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:193)
2024-03-19 23:39:33,148 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:207)
2024-03-19 23:39:33,149 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:365)
2024-03-19 23:39:33,149 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:455)
2024-03-19 23:39:33,150 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:158)
2024-03-19 23:39:33,150 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:193)
2024-03-19 23:39:33,151 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:365)
2024-03-19 23:39:33,151 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MicroXplorer.run(MicroXplorer.java:302)
2024-03-19 23:39:33,151 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.STM32CubeMX.run(STM32CubeMX.java:30)
2024-03-19 23:39:33,152 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.STM32CubeMX.main(STM32CubeMX.java:64)
2024-03-19 23:40:13,865 DEBUG [LineInfo_to_exitCode.log_LineInfo] 2024-03-19 23:40:13,864 [INFO] UtilMem:74 - End SaveConfig() Used Memory: 422576128 Bytes (944766976)
2024-03-19 23:40:14,244 ERROR [LineInfo_to_exitCode.log_LineInfo] Mar 19, 2024 11:40:14 PM com.st.microxplorer.plugins.projectmanager.engine.MainProjectManager$3 onCommandEntered
2024-03-19 23:40:14,245 ERROR [LineInfo_to_exitCode.log_LineInfo] SEVERE: null
2024-03-19 23:40:14,245 ERROR [LineInfo_to_exitCode.log_LineInfo] java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0
2024-03-19 23:40:14,246 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
2024-03-19 23:40:14,246 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
2024-03-19 23:40:14,246 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
2024-03-19 23:40:14,246 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/java.util.Objects.checkIndex(Objects.java:372)
2024-03-19 23:40:14,247 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/java.util.ArrayList.get(ArrayList.java:459)
2024-03-19 23:40:14,247 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/javax.swing.JTabbedPane.getTitleAt(JTabbedPane.java:1121)
2024-03-19 23:40:14,247 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainPanel.getSelectedPluginView(MainPanel.java:1630)
2024-03-19 23:40:14,248 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainPanel.getCurrentPluginName(MainPanel.java:1769)
2024-03-19 23:40:14,248 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainFrame.UpdateCaption(MainFrame.java:279)
2024-03-19 23:40:14,248 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.maingui.MainPanel.resetModified(MainPanel.java:548)
2024-03-19 23:40:14,249 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.engine.SaveFileManager.saveConfiguration(SaveFileManager.java:129)
2024-03-19 23:40:14,249 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.engine.SaveFileManager.saveConfigurationAs(SaveFileManager.java:207)
2024-03-19 23:40:14,249 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.engine.MainFileManager.userSaveConfigAs(MainFileManager.java:493)
2024-03-19 23:40:14,250 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.engine.MainFileManager.userSaveConfig(MainFileManager.java:381)
2024-03-19 23:40:14,250 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.filemanager.FileManagerView.getSpecificTask(FileManagerView.java:252)
2024-03-19 23:40:14,250 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.projectmanager.engine.MainProjectManager.startGenerateCode(MainProjectManager.java:1528)
2024-03-19 23:40:14,251 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.microxplorer.plugins.projectmanager.engine.MainProjectManager$3.onCommandEntered(MainProjectManager.java:235)
2024-03-19 23:40:14,251 ERROR [LineInfo_to_exitCode.log_LineInfo] at com.st.components.util.CommandLineManager$3.run(CommandLineManager.java:168)
2024-03-19 23:40:14,251 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
2024-03-19 23:40:14,252 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
2024-03-19 23:40:14,252 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
2024-03-19 23:40:14,252 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
2024-03-19 23:40:14,253 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/java.security.AccessController.doPrivileged(Native Method)
2024-03-19 23:40:14,253 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
2024-03-19 23:40:14,253 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
2024-03-19 23:40:14,254 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
2024-03-19 23:40:14,254 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
2024-03-19 23:40:14,254 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
2024-03-19 23:40:14,255 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
2024-03-19 23:40:14,255 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
2024-03-19 23:40:14,256 ERROR [LineInfo_to_exitCode.log_LineInfo] at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2024-03-19 23:40:14,257 DEBUG [LineInfo_to_exitCode.log_LineInfo] mx [ERROR] stderr -
2024-03-19 23:40:20,714 DEBUG [CubeMxCtx.EXE_version] Loaded path: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe'
2024-03-19 23:40:20,714 DEBUG [CubeMxCtx.EXE_version] Loaded updater jar: 'C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX\plugins\updater.jar'

Those are only error outputs from project generation screen of mcsdk. It completes with error. Anyway when i with Run CubeMX , its opening and all pins are correct.

Without changing anything on the CubeMX and after type name of project and select output for STM32CubeIDE , i click to generate button. After that event , an error massage pops up and says;

cubemx error.PNG

 After your succestion i have check the firmwares on the cubemx and 1.8.5 and 1.8.4 was already installed. For tring to find solution i also installed other firmware down to version 1.8.0. When i select to install version 1.8.0 , it tried to download and install but it gave and error message which it says, this version is already installed. you can see installed firmwares below;

cubemxx firmware.PNG

 Anyway, after cubemx warning massage , i have choosed YES and opened using cubeide software.

My cubeIDE is 1.8.0 version. Without changing anything on the code , i pressed the Debug button and 17 errors dissaperad. You can see below;

cubeide error.PNG

 It seems when generating files , some files are missing or something. Also you can see the file that you have mentioned your last post below ;

folder.PNG

 Please help me for this. I cannot upload my code to the Nucleo board.

qqwq.1
Associate II

Hi.

 

I really need help over here. Im not able to use my nucleo right now. Needs assist ASAP.

 

Please help.

Hello,

Firstly, could you please avoid copy/past in plain text the output compile errors and attach it in file to be easier to read.

Secondly could you please attach your stmcx file?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
qqwq.1
Associate II

Hello,

 

Im sorry about that i will share complete file of the motor control workbench errors.

 

Until waiting your answer , i uninstalled and install all stm32 softwares from my pc including all files at the program files and at c/users folders. After installed again , i have installed 1.8.4 firmware , which is recommended by mcsdk software, using cubemx firmware manager . After succesfull installation of this firmware , i created new test project using mcsdk software . when i hit the generate button , mcsdk default firmware version is v1.8.4(recommended) . Although i already install it , mcsdk gave and error which it was saying that  version 1.8.5 required for this project. I hit to download button again and waited for install 1.8.5. After download and installation complited , nothing changed and still same error messages. See picture;

err1.PNG

I will share my mcsdk project and error log also.  

 

Hello,

On my side, using WorkBench5.4.8, CubeMx6.4, F1 FW package1.8.4 and your test1.stmcx, project generation works.
Sound strange that a FW package1.8.5 message appears when 1.8.4 is the recommended one....
Then, could you please, un-install FW package STM32F1 1.8.5 using CubeMx interface Help>"Manage embedded firmware packages" clicking on 1.8.5 line, Select Remove.
Un-install CubeMx6.4 using windows "settings>Apps & features" tool.
Install CubeMx6.4, and generate a new project from a new directory.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
qqwq.1
Associate II

Hello

 

Today, all day , i have tried to work this out but no luck. I have uninstalled and installed software including firmwares 4 times. Each of time i got weird different situations. I will tell you what i have got at least. 

 

I have reinstalled all softwares ( mcsdk , cubeide, cubemx ) and all firmwares. I didn't manually install firmwares when i reinstall cubemx. I did generate project successfully using mcsdk at least. After generating successfully done , i have clicked to open cubemx blue button on mcsdk. Cubemx opened and now weird situations begins. 

 

Without changing anything , i click to generate code button on cubemx and cubemx is asking me following things ;

 

1. Project name.

 

2.project location

 

The weird is , i have two computer that i have installed same softwares and softwares of stm32. At my home computer , they are  working perfectly. I can generate code and all things without any error. But for my work computer , i m still trying to get it work. 

 

When i click generate code on my home PC , cubemx doesn't ask me project name and location. But at my work PC , cubemx keep asking , it doesn't recognize although i came from mcsdk software. 

 

Anyway when i select location of mcsdk output file and give same name of mcsdk project , i click to generate code on cubemx. When i click , it give warning message , " these peripherals still have some not configured or wrong parameter values: [motor control,RCC].  " Ot is also weird that because my home PC doesn't give this warning message at all. 

 

Anyway i click to " no" and come back to pinout& configuration. I just click RCC and middleware>motorcontrol  without changing anything then press to generate code button , boom it starts to generate code without previous warning message. 

 

After code generator completed, i press to open cubeide and cubemx cannot open cubeide and show " code generated under ...location please install toolchain " (something like that , sorry I'm currently far from my PC ). After this message , i open generated file location and open cproject file manually using cubeide , 17error appears when i debug it. 

 

I tried to tell my problems as much as i can. 

 

I cannot format my work PC for stm problematic softwares. Ot has lot of software installed and i cannot loose all things. So i have to make it work. Please help.