cancel
Showing results for 
Search instead for 
Did you mean: 

How to run "validate on target" in with cube-x-ai

MKlem.2
Associate II

I am using a Nucleo-F676ZI and trying to run a dnn on the mcu.

I can run the NN using the "application template" but I want to use the "validate on target" in order to obtain runtime without developing the data transfer from the host system to the mcu myself.

Steps to reprocude:

1: MCU selector

0693W00000FBuMeQAL.png2: Use x-cube-ai package with the validation application

0693W00000FBuK0QAL.png3: Add USART communication. Im using ST-Link so the virtual com port should be connected to USART3.

0693W00000FBuOaQAL.png 

4: Add the network and run analyze / validate on desktop. (works fine)

0693W00000FBuPsQAL.png5: Run validate on target:

0693W00000FBuQMQA1.png 

Which results in the following error:

0693W00000FBuQHQA1.png 

Is there anything I am missing ? in order to run "validate on target"

Or any steps to get a detailed error message?

4 REPLIES 4
fauvarque.daniel
ST Employee

There is a bug in X-CUBE-AI 7.0.0 when you try to do automatic validation on the target and you are using STM32CubeMX inside STM32CubeIDE.

2 solutions here:

  • Perform automatic validation on the target using the standalone STM32CubeMX
  • or Inside STM32CubeIDE, generate the project, compile and flash on the target and then go back to X-CUBE-AI and perform validation on the target without the automatic compilation as you have already done it

Regards

Daniel

MKlem.2
Associate II

Thanks for the reply!

I did test both solutions. Unfortunately, both did not work.

Furthermore, I did test other x-cube-ai releases.

It is possible to use the COM port that is directly connected to the ST-Link correct? (USART 3)

Is there any way to get more debug information?

fauvarque.daniel
ST Employee

You'll find more information in ~/.stm32cubemx/STM32CubeMX.log (in your home directory)

If MX can't launch STM32CubeIDE or in the log it complains about missing .project or .cproject file you can verify that in your standalone STM32CubeMX installation (on Windows C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX) you have a third_parties_plugins directory with a jar file named com.st.stm32cube.ide.services,mx.... in it

You can also try to select "Validation" as the application (and not template), and let X-CUBE-AI configure automatically the USART for you.

I've just tried on the same board and it works out of the box with X-CUBE-AI 7.0

MKlem.2
Associate II

> You can also try to select "Validation" as the application (and not template), and let X-CUBE-AI configure automatically the USART for you.

How can I set "validation" as the application?

I did only find how to set it in the selection of the x-cube-ai package (image 2)