cancel
Showing results for 
Search instead for 
Did you mean: 

The project description file (.project) is missing for X-CUBE-AI validation

EdgyAI
Associate II

I am trying to follow the "Getting started with X-CUBE-AI Expansion Package for Artificial Intelligence (AI)" document (User Manual UM2526), but I cannot validate the model on target.  Note that I'm using the STM32F746-DISCO instead of the recommended NUCLEO-F746ZG, but that's a minor difference.

I can sucessfully validate the model on desktop (using random numbers and real data), but get an error when trying to validate on target using the "automatic compilation and download" option.

EdgyAI_0-1695144047539.png

CubeMX reports "Automatic build and run failed".

Consulting the STM32CubeMX.log file I see the following error:

2023-09-19 11:57:49,034 [ERROR] STM32CubeIDEBuilder:207 - !MESSAGE The project description file (.project) for 'mxAI1803873821400' is missing. This file contains important information about the project. The project will not function properly until this file is restored.

My project is named STM32F746-DISCO, not the random string of characters shown.  Even when I've used the "Generate Code" option to try to export to the CubeIDE, I don't get a .project file associated with 'mxAI1803873821400'. What am I doing wrong?

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
EdgyAI
Associate II

Got it working! (Just not using STM32CubeIDE). 

Here's what I had to install on my Windows 10 machine to get it working.

Once I had all those prerequisites set up, I could select MDK-ARM V5 from the dropdown menu and the automatic compilation and download worked!

EdgyAI_0-1696886372684.png

As an aside, I would recommend not validating your on-target model against your entire dataset.  I tried validation on target for the MNIST test dataset (10,000 samples), and CubeMX would freeze up after 1000 or so.  Much better to use the "validate on desktop" option to compute the accuracy of your deployed model, then use "validate on target" with a few hundred (or fewer) samples to estimate actual on-device inference time.

View solution in original post

2 REPLIES 2
EdgyAI
Associate II

Just tried it again from scratch, with the same results.

I'm attaching a log file here.  I scrubbed my username, replacing it with <username>.

I'm running on Windows 10.  Don't know if that information helps.

EdgyAI
Associate II

Got it working! (Just not using STM32CubeIDE). 

Here's what I had to install on my Windows 10 machine to get it working.

Once I had all those prerequisites set up, I could select MDK-ARM V5 from the dropdown menu and the automatic compilation and download worked!

EdgyAI_0-1696886372684.png

As an aside, I would recommend not validating your on-target model against your entire dataset.  I tried validation on target for the MNIST test dataset (10,000 samples), and CubeMX would freeze up after 1000 or so.  Much better to use the "validate on desktop" option to compute the accuracy of your deployed model, then use "validate on target" with a few hundred (or fewer) samples to estimate actual on-device inference time.