cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Initializer and Initializer element is not constant errors in STMCubeAI

akoluacik
Senior

I have obtained a model by using Google Colab and translate it through TF Lite. I could apply validate on target and validate on desktop process and I did not get any error. However, once CubeAI generated related .h files and I used them, I got two errors, the errors are attached.

0693W00000NpyAoQAJ.jpg0693W00000NpyAjQAJ.jpg0693W00000NpyAeQAJ.jpg0693W00000NpyAZQAZ.jpg0693W00000NpyAUQAZ.jpgPlease note that the errors are due to the files that are generated by CubeAI.

Thx for your responses.

11 REPLIES 11
KK.10
Associate II

X-CUBE-AI 7.0 code example doesn't work with later versions. In my case 7.3.0.

Completely disregard example code for 7.0 version and use code from ST example: "How to perform motion sensing on STM32L4 IoTnode".

Section 6: "Create an STM32Cube.AI application using X-CUBE-AI".

agrahul260
Associate

agrahul260_0-1715857452231.png

I am getting this invalid initialize error. How to solve it?