2022-05-12 06:07 AM
Hi,
We are trying a very simple deep neural network model with 20 inputs and 3 outputs and want to generate inferences in real-time. We are following the instructions from the document "Getting started with X-CUBE-AI Expansion Package for Artificial Intelligence (AI)" numbered UM2526 with X Cube AI 7.1.0 with STM32CubeMX.
Has anyone encountered the same error?
Thanks in advance.
2022-05-12 06:15 AM
At what point, exactly, do you get that message?
It sounds like you're using the debugger, and trying to step into or break within a function called ai_platform_network_process() ?
So the first question is: do you have the source code for that function?
If you don't have the source code, then "no source available" is obviously true!
2022-05-24 12:09 PM
I have not made any changes to file generated by STM32 CubeMX. Also, this is the code that we are using for inference in the neural network:
static ai_handle network = AI_HANDLE_NULL;
ai_network_report report;
ai_bool res;
ai_error err;
const ai_u16 batch_size = 1;
err = ai_network_create(&network, AI_NETWORK_DATA_CONFIG);
AI_ALIGNED(4) static ai_u8 activations[AI_NETWORK_DATA_ACTIVATIONS_SIZE];
const ai_network_params params = {
AI_NETWORK_DATA_WEIGHTS(ai_network_data_weights_get()),
AI_NETWORK_DATA_ACTIVATIONS(activations) };
nbatch = ai_network_run(network, &ai_input[0], &ai_output[0]);
2022-05-24 12:10 PM
I have not made any changes to file generated by STM32 CubeMX. Also, this is the code that we are using for inference in the neural network:
static ai_handle network = AI_HANDLE_NULL;
ai_network_report report;
ai_bool res;
ai_error err;
const ai_u16 batch_size = 1;
err = ai_network_create(&network, AI_NETWORK_DATA_CONFIG);
AI_ALIGNED(4) static ai_u8 activations[AI_NETWORK_DATA_ACTIVATIONS_SIZE];
const ai_network_params params = {
AI_NETWORK_DATA_WEIGHTS(ai_network_data_weights_get()),
AI_NETWORK_DATA_ACTIVATIONS(activations) };
nbatch = ai_network_run(network, &ai_input[0], &ai_output[0])
2023-03-15 02:20 AM
I face with same problem. I imported Keras model and CubeAI tool could analyze the model successfully but it didn't create source file for same function. There is just a declaration for function but no definition.
Could you find any solution for that? If you found, please share with me too.