Skip to main content
Visitor II
June 12, 2026
Question

Peak RAM and Peak Flash measurement for AI model

  • June 12, 2026
  • 0 replies
  • 7 views

Hi team, 

Reposting my earlier query as it appears to have been missed.

How do I measure the peak RAM and peak Flash usage of an AI model?

I need to calculate peak RAM and peak Flash from the IDE, but the model generated by ST Edge AI is in HEX format and is not included in the IDE's reported size. So, I'm adding the HEX file size to the IDE's peak RAM and peak Flash figures — is this approach correct? Details are shared below.

 

KWS cpu+npu

IDE

 

 

Flash = text + data = 205,404 + 1,616 = 207,020 bytes ≈ 202.17 KB

RAM  = data + bss = 1,616 + 102,040 = 103,656 bytes ≈ 101.23 KB

For cpu+npu we flash the model in  hex format, so we need to add the peak ram and peak flash of hex file with IDE peak ram and peak flash.

 model size -

 

Total Peak Ram and Peak Flash

  • Peak RAM = (103,656 + 22,065 =  122.77 KB)
  • Peak Flash = (207,020 + 22,065 =  223.72 KB)