cancel
Showing results for 
Search instead for 
Did you mean: 

No source available for "ai_platform_network_process() at 0x8xxxxx"

PGaja.1
Associate II

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.

4 REPLIES 4
Andrew Neil
Evangelist III

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!

PGaja.1
Associate II

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]);

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])

ATosu.1
Associate

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.