2025-08-04 6:48 PM
Hello, I'm trying to generate C code for my Onnx model using ST Edge AI Core.
I've tried both X-CUBE-AI and ST Edge AI Developer Cloud, and they gave me the same error:
It's strange that Netron could still draw the correct graph containing the dimensions of input .Does this indicate that the input dimension has been successfully parsed?
I tried simplifying the model input, but it still reported an error. Can anyone give me some advice? Thank you.
2025-08-05 12:40 AM
Hello @Levy-hy,
Your onnx model seem fine as you pointed out.
The error here says that the st edge ai core (the CLI behind both X Cube AI and Dev cloud) is having an issue while converting it. It is the C conversion that has an issue, not your model.
It could come from unsupported layer, bug, other issue.
Could you share your model?
You can try to use the --use-onnx-simplifier in X Cube MX or Dev cloud.
In X Cube AI, above the Analyze button, you should see a wheel (parameters) button. In here, you can add a command (bottom of the first page menu).
Have a good day,
Julian