2024-02-01 12:08 AM
Hello,
I have implemented https://wiki.st.com/stm32mcu/wiki/AI:How_to_perform_motion_sensing_on_STM32L4_IoTnode this project. When I run the program I had a hard fault error when function enters ai_platform_network_process(). I have incremented the heap and stack sizes. I don't know what else I can do to run properly. As below, after ai_network_run() it enters ai_platform_network_process(). This function is source coded and cannot see the content of this function.
If you can help me, I will be very grateful...
Regards.
static void AI_Run(float *pIn, float *pOut)
{
ai_i32 batch;
ai_error err;
/* Update IO handlers with the data payload */
ai_input[0].data = AI_HANDLE_PTR(pIn);
ai_output[0].data = AI_HANDLE_PTR(pOut);
batch = ai_network_run(network, ai_input, ai_output);
if (batch != 1) {
err = ai_network_get_error(network);
printf("AI ai_network_run error - type=%d code=%d\r\n", err.type, err.code);
Error_Handler();
}
}
2024-02-01 06:21 AM
Could I change x-cube-ai version from https://stm32ai-cs.st.com/home this site. It is defined 8.1 and couldn't find anything to change.
2024-02-01 06:28 AM
As it seems you could select one of the three versions :
but not 7.2.0 , so you should try with cube mx local installation. to reach version 7.2.0 (to be aligned with wiki )
2024-02-01 06:33 AM
You need to be sure that the network runtime library (under Middlewares/ST/AI/lib) is at the same version as the generated network.c
For example if you have generated the network.c using the STM32CubeAI dev cloud, you need to update the library in your project too and the set of include files.
Regards
Daniel
2024-02-01 12:29 PM
Didn't work still cannot analyze with 7.2 version of X-Cube-AI.
2024-02-02 01:29 AM
2024-02-02 05:11 AM
Hello,
I don't know the issue is about my board. My board is STM32F429 discovery. Could you share your thoughts ? Still cannot analyze the model on 7.2.0.
2024-02-05 05:32 AM
Hello
I Just tried the model with your board, and I get a correct analyse