Skip to main content
Associate
June 10, 2024
Question

memory error related with Cube AI

  • June 10, 2024
  • 1 reply
  • 649 views

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

fauvarque.daniel
ST Employee
June 12, 2024

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