Skip to main content
ILuca.1
Associate
April 27, 2023
Solved

Flash and RAM memory size for STM32H747I-DISCO board is not as expected

  • April 27, 2023
  • 4 replies
  • 6607 views

Hello,

I'm trying to validate a CNN model using X-CUBE-AI and the STM32H747I-DISCO board with the microcontroller STM32H747XIH6. The Flash memory size should be 2MB and 1MB of RAM. However, the memory limit is bellow the expected one. For instance, the Flash is limited to 1MB (please see the picture from the attachment).

Can someone please help me with an explanation?

Thank you very much!

Best answer by hamitiya

Hello @ILuca.1 

X-CUBE-AI displays 1MB of flash available for your project because you are working on either Cortex-M7 or Cortex-M4.

This board has two MCUs. So the project splits this 2MB in half for both MCUs which concludes to 1MB each.

You can follow the documentation to raise this 1MB to approx. 2MB:

See: AI:How to run larger models on STM32H747I-DISCO - stm32mcu

 

You can use External Flash also, but it may increase your inference time.

 

Best regards,
Yanis

4 replies

mƎALLEm
Technical Moderator
April 27, 2023

Hello,

It's a 2 MB Flash device. You can confirm it by using Cube Programmer:


_legacyfs_online_stmicro_images_0693W00000bixZuQAI.png

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
ILuca.1
ILuca.1Author
Associate
April 27, 2023

Hello SofLit,

Thank you very much for your feedback. This is correct.

But using the STM32CubeMX and analyzing the network I have this result:


_legacyfs_online_stmicro_images_0693W00000bixihQAA.pngIf I understand correctly, 1024KB is the maximum Flash size that is considered. This is the issue, why is it so?

Thank you!

mƎALLEm
Technical Moderator
April 27, 2023

It could be a typo.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
ILuca.1
ILuca.1Author
Associate
April 27, 2023

Do you think that would be possible to check and to fix it somehow? as a normal user. It would be very helpful for me.

Thank you!

mƎALLEm
Technical Moderator
April 27, 2023

Internal ticket 150730 has been opened for that purpose.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
hamitiya
hamitiyaBest answer
ST Employee
January 3, 2024

Hello @ILuca.1 

X-CUBE-AI displays 1MB of flash available for your project because you are working on either Cortex-M7 or Cortex-M4.

This board has two MCUs. So the project splits this 2MB in half for both MCUs which concludes to 1MB each.

You can follow the documentation to raise this 1MB to approx. 2MB:

See: AI:How to run larger models on STM32H747I-DISCO - stm32mcu

 

You can use External Flash also, but it may increase your inference time.

 

Best regards,
Yanis

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.