2019-03-18 04:09 AM
Hello,
I have some questions about using the code generator
I am currently using an STM32F446 and I want to use a Keras model driven by python to make a prediction on the data retrieved by the micro-controller in order to get better results.
void MX_X_CUBE_AI_Init(void)
{
MX_UARTx_Init();
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
}
void MX_X_CUBE_AI_Process(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
}
If someone have more information about how to use the generator code it could be really helpful for me.
thanks
2019-03-18 02:53 PM
2019-03-18 02:54 PM
2019-03-18 02:58 PM
Hello,
The current version of the AI application template which is provided in the pack 3.4.0 should be improved to export a real complete AI application template. Now to understand how to use the generated NN API, you can look the section 7 and 8 of the UM2526 (https://www.st.com/en/embedded-software/x-cube-ai.html) or/and the provided C-code for the generated AI system performance or AI validation projects.
In Middlewares\ST\Application\SystemPerformance\aiSystemPerformance.c, the functions aiInit() and aiTestPerformance() can be a good starting point.
In the attached file, a code snippet to use the generated API.
Best Regards,
Jean-Michel
2019-03-19 01:36 AM
thanks for your answer,
So if I understand perfectly, I need to use the file aiTemplate_340.c as the file aiSystemPerformance.c
thanks for your quick answer
Clara
2019-07-22 05:55 AM
how can you use the aiTemplate_340 and include it in main if you dont have a header to the "aiTemplate_340.c" file ?