Skip to main content
LForm.1
Associate
Dec 5, 2020 8:40 PM UTC
Solved

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

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.
Houssem CHAABANI
Houssem CHAABANIBest answer
Visitor II
Dec 7, 2020 2:21 PM UTC

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
Dec 7, 2020 8:58 AM UTC

Dear @LForm.1​ ,

Could you share your .ioc file ?

Kind regards,

Houssem

LForm.1
LForm.1Author
Associate
Dec 7, 2020 9:11 AM UTC

Hi! thank you for your reply.

This is the .ioc file

LForm.1
LForm.1Author
Associate
Dec 7, 2020 9:09 AM UTC

Hi! thank you for your reply.

This is the .ioc file

Houssem CHAABANI
Visitor II
Dec 7, 2020 10:09 AM UTC

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
Dec 7, 2020 12:28 PM UTC

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
Dec 7, 2020 2:21 PM UTC

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
Dec 10, 2020 7:41 PM UTC

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