cancel
Showing results for 
Search instead for 
Did you mean: 

memory error related with Cube AI

Cizzy_Tim
Associate II

I came across a weird issue when using cube-x-ai. When function ai_network_run() was called, almost everything except ai_output[] in the RAM become messed up, including global variables, static and extern variables. All the peripherals need to be re-initialized because values in the handles are wrong. I don't know what's happening inside the ai_network_run() function because its definition is in "NetworkRuntime900_CM7_Keil.lib". My toolchain  is CubeMX 6.11 + cube-x-ai 9.0.0 + Keil MDK. I have enabled MPU and CRC for CM7 and the configuration is below. Can anyone tell me what is the exact error? Thank you very much!

 

Cizzy_Tim_0-1718029737071.png

Cizzy_Tim_1-1718029783208.png

Cizzy_Tim_2-1718030189595.png

Cizzy_Tim_3-1718030202966.png

Cizzy_Tim_4-1718030309662.png

 

 

 

1 REPLY 1
fauvarque.daniel
ST Employee

Have you tried the built-in projects (validation on target or system performance) ?

If they work it is likely that either the activation buffer is not correctly allocated / declared or there is an issue with the input or output buffers


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.