2023-05-19 08:10 AM
I am using STM32CubeIDE v1.12.1 on macOS. I have noticed that, when I import a project generated with STM32Cube.AI Developer Cloud, whenever I open the IOC and make a change to the device configuration that requires to regenerate the code, the project becomes broken. I therefore did an experiment: I created a STM32 project under the IDE, then I enabled the X-CUBE-AI software package in the device configuration tool and I let the IDE generate the code. Apparently the IDE-generated code is missing the $PROJECT/Middlewares/ST/AI subdirectory with the X-CUBE-AI library and headers. I have the same effect with 8.0.0 and 8.0.1 versions of X-CUBE-AI. How do I work around this issue?
Best,
Pietro
Solved! Go to Solution.
2023-05-22 12:23 AM
Recent versions of STM32CubeMX, and STM32CubeIDE with the embedded STM32CubeMX, delete the Middleware files required by X-CUBE-AI upon regeneration.
A fix/workaround has been implemented in X-CUBE-AI 8.1 that will be released by mid june.
In the mean time one possible workaround is to uncheck the checkbox "Delete the previously generated files when no re-generated" in the Project Manager -> Code Generator -> Generated files panel
Regards
2023-05-22 12:23 AM
Recent versions of STM32CubeMX, and STM32CubeIDE with the embedded STM32CubeMX, delete the Middleware files required by X-CUBE-AI upon regeneration.
A fix/workaround has been implemented in X-CUBE-AI 8.1 that will be released by mid june.
In the mean time one possible workaround is to uncheck the checkbox "Delete the previously generated files when no re-generated" in the Project Manager -> Code Generator -> Generated files panel
Regards
2023-07-10 08:42 AM
Hello,
The workaround doesn't work for me :sad_but_relieved_face:
I'm running xCube-AI V8.0.1 (it seems that 8.1 is still not released...) on STM32CubeIDE V1.12.1
I do see Middlewares created and then deleted during code generation.
For now, I just copied from repository
STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\8.0.1\Middlewares\ST\AI\Inc
It compiles, but only after I removed ':NetworkRuntime801_CM4_GCC.a' from Project/Properties/C/C++ General/Paths and Symbols/Libraries.
Only problem: I need to recopy Middlewares and remove the wrong library each time I do regenerate!
When can we expect to have the XCube AI V8.1 released?
Thanks
Jylo
2023-07-17 08:07 AM
Hello,
I see that v8.1 was released and I am trying to import it into STMCubeMx, but it doesn't appear to be a recognized/available package.
I manually installed it off the ST website and see it being recognized by the package manager
But, it is not available for project configuration
Is there a step I am missing here?
Thanks!
2023-08-02 04:37 AM
I have exact the same problem. Did you solve it yet. If so, can you describe your solution.
2023-08-02 04:52 AM
Hi Guray1
As described above, just:
Only problem: you need to redo this each time you regenerate!