cancel
Showing results for 
Search instead for 
Did you mean: 

Error When Running a Model in On Target Mode in STM32Cube AI Studio

kloudy
Associate

I imported a model into STM32Cube AI Studio and tried to run it in On Target mode, but I encountered an error as shown in the attached file. What might be causing this issue?

4 REPLIES 4
hamitiya
ST Employee

Hello @kloudy 

I see an error during code generation performed by STM32CubeMX.

Did you have any prompt saying to download a firmware package?

Could you please share with me on which board you are working? I see MCU STM32WB5MMGH6 but if you can confirm which Nucleo / DK.

 

 

Best regards,

Yanis


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hello,

Thank you for your quick reply.

To answer you questions first:
Did you have any prompt saying to download a firmware package?
--> I do not remember seeing a prompt to download a firmware package, although it is possible that I may have missed it.
Could you please share with me on which board you are working?
--> The MCU is mounted on my own custom board. The board is basically working normally, including logic operation and serial communication.

In addition, I am seeing the following behavior in STM32CubeMX:
On the initial screen, when I click the Access to MCU Selector button under Start My project from MCU, only the progress bar keeps spinning and nothing happens afterward.
When I click the Access to board selector button under Start My project from ST Board, the New project from a board window opens. However, if I then click the MCU/MPU Selector button there, again only the progress bar keeps spinning and it does not proceed any further.
It seems that STM32CubeMX and CubeIDE are sharing the same repository. The built-in CubeMX inside CubeIDE (ver. 1.19) is version 6.15.0, while the separately installed standalone CubeMX is version 6.12.1. Could this version difference be causing this issue?

Hi @kloudy 

 

Could you try to update your CubeMX please.

Minimum required is version 6.16.0 and CubeIDE to version 2.0.0

 

Screenshot 2026-03-10 100528.png

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hello @kloudy 

As @Julian E. shared, could you please upgrade the version of STM32CubeMX to the latest one ?

Also, STM32CubeMX behavior you experienced is quite abnormal. Are you working in a corporate environment ?

If yes, could you try to set proxy settings, either in STM32CubeMX itself or in your environment ?

 

You should have a progress bar with a download and unzip procedure, and after that, you should be able to select a board or install F/W packages.

 

Best regards,

Yanis


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.