Skip to main content
Visitor II
July 17, 2024
Question

question after generating code using STM32CUBEIA

  • July 17, 2024
  • 1 reply
  • 633 views

I'm a newbie and trying to create a use case with Cube AI 9.0. I'm having trouble understanding how to use the predefined functions Mx-cube-process(), Mx cube init. Could you explain how i need to use this function in my project or there is another method wich i can use it?

1 reply

hamitiya
ST Employee
July 18, 2024

Hello,

Here is the X-CUBE-AI documentation and references in order to explain how to use this tool in STM32CubeMX:

AI:X-CUBE-AI documentation - stm32mcu

Getting started with X-CUBE-AI Expansion Package for Artificial Intelligence (AI) - User manual

"Mx" labeled functions are related to STM32CubeMX functions that are generated and are not related to X-CUBE-AI.

X-CUBE-AI initialization and execution is done through :

MX_X_CUBE_AI_Init
MX_X_CUBE_AI_Process

The first one is initializing UART and external RAM or external flash, if any. At the end, it calls the function depending on the project you generated (aiSystemPerformanceInit() or aiValidationInit())

 

On MX_X_CUBE_AI_Process you will retrieve the execution.

 

Regards

 

 

​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.