Skip to main content
LForm.1
Associate
December 5, 2020
Solved

"Required Ram or flash size for network is bigger than available Ram or Flash" alert with X-Cube_AI extension

  • December 5, 2020
  • 7 replies
  • 3863 views

Hi, I'm trying to load my Keras model (built for CamVid dataset) into STM tool, but when I try to analyze even with compression set to 8 it gives me the "Required Ram or flash size for network is bigger than available Ram or Flash" alert.

I tried to modify my model also trying to eliminate various layers, but nothing.

the model is:

0693W000006EkSrQAK.pngand this is what I have after the analyze:

0693W000006EkT1QAK.png0693W000006EkT6QAK.pngany idea? thank you!!

This topic has been closed for replies.
Best answer by Houssem CHAABANI

Dear @LForm.1​ ,

The RAM size in STM32f441 is only 128kbytes and your project need more size of RAM.

It's recommended to use another STM32 microcontroller with larger RAM memory.

Kind regards,

Houssem

7 replies

Houssem CHAABANI
Visitor II
December 7, 2020

Dear @LForm.1​ ,

Could you share your .ioc file ?

Kind regards,

Houssem

LForm.1
LForm.1Author
Associate
December 7, 2020

Hi! thank you for your reply.

This is the .ioc file

LForm.1
LForm.1Author
Associate
December 7, 2020

Hi! thank you for your reply.

This is the .ioc file

Houssem CHAABANI
Visitor II
December 7, 2020

Dear @LForm.1​ ,

I tried with STM32CubeMX6.1.0 and with HAR-CNN-Keras module and it's working.

Could you please share your model file.

Kind regards,

Houssem

LForm.1
LForm.1Author
Associate
December 7, 2020

I don't know what is the module file, how can I get it? Sorry I'm new to programming.

Houssem CHAABANI
Houssem CHAABANIBest answer
Visitor II
December 7, 2020

Dear @LForm.1​ ,

The RAM size in STM32f441 is only 128kbytes and your project need more size of RAM.

It's recommended to use another STM32 microcontroller with larger RAM memory.

Kind regards,

Houssem

ST Technical Moderator
December 10, 2020

Hello @LForm.1​ ,

Is your problem resolved ?

If yes, please share the solution and please mark the answer as best by clicking on the "Select as Best" button if it fully solved your issue.

This will help other users find this solution more quickly.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks