Skip to main content
Associate II
August 22, 2024
Question

Used Ram over External SDRAM and TFlite Micro runtime

  • August 22, 2024
  • 1 reply
  • 1207 views

It seems like a used ram size fit to External SDRAM in STM32H757i- EVAL Board.
However, I can see the error when doing analyze.

Also, I cannot see any TFLite Micro runtime generated code.
I can see empty function.
I was totally fine with STM32CUBE AI runtime.

pepsi_zero_sugar_1-1724297824905.png

 

pepsi_zero_sugar_0-1724297679218.png

pepsi_zero_sugar_2-1724297847147.png

pepsi_zero_sugar_3-1724297983155.png

pepsi_zero_sugar_4-1724298006088.png

 

1 reply

fauvarque.daniel
ST Employee
August 26, 2024

You have to select the Template code, System performance application or Validation application to have code generated in those sections

Associate II
August 27, 2024

I selected the Validation application.

I was wondering if TFlite model Used Ram: 1.29MiB, then MCU need x10 size RAM?
It is showing that 1.29 MiB. However, 8 MiB External SDRAM is not enough.

 

fauvarque.daniel
ST Employee
August 27, 2024

with tflite runtime we don't manage automatically the use of external RAM.

That said you can generate the code and modify the linker script to place the activation buffer in external sdram (with of course an impact on the performance)

Regards