cancel
Showing results for 
Search instead for 
Did you mean: 

Error with generated Edge AI code

oliv_ch
Associate

The examples/code snippets found in the ST Edge AI Core Technology Documentation (ST Edge AI Core Technology 2.2.0) show a variety of functions/macros used that don't seem to get generated via STM32CubeMX on my end.

For reference, I generated the code for CMake, with version 10.2.0 of X-Cube-AI and 6.13.0 of STM32CubeMX.

A couple examples from the legacy client -> new edge ai embedded client migration guide:

  • #include "network_inputs.h" - No such file <model_name>_inputs.h seems to get generated via CubeMX.
  • STAI_NETWORK_CONTEXT_DECLARE - this macro is undeclared in the generated code.
  • stai_network_init() - I get an implicit declaration of function warning for this one (cannot find this declared/defined anywhere in the generated code).
  • STAI_NETWORK_ACTIVATIONS_NUM - also undeclared in generated code.

 

Is this specific to the code generated for CMake? Are there perhaps other header files I should be looking to include aside form the ones noted in the examples?

 

EDIT: Confirmed that these issues are also still present with the code generated for STM32CubeIDE, so issues seem to be platform agnostic.

1 REPLY 1
Maxime_MARCHETTO
Community manager
Community manager

Hello @oliv_ch,

This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

Best regards,
Maxime


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.