cancel
Showing results for 
Search instead for 
Did you mean: 

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

ILuca.1
Associate II

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!

1 ACCEPTED SOLUTION

Accepted Solutions
hamitiya
ST Employee

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.

View solution in original post

10 REPLIES 10
SofLit
ST Employee

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
Associate II

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!

SofLit
ST Employee

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.

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!

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.

Excuse me for asking. How long will it take before I can use it? It is useful for me to know how to proceed.

Perhaps modify the linker script or use external to proceed.

Check if there is some project level meta-data you can simply edit as a work-around.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Hello Tesla DeLorean,

Thank you for your feedback. Yes, there is a possibility to modify the linker script. But the SW automatic compilation from 'Validate on target' is not successfully passed using STM32CubeMX. Something else is used as reference for the flash memory..

However, it is possible to compile the SW using STM32CubeIDE with the linker script modification. After that, I used STM32CubeProgrammer to download the output files.

But I still have a problem. Using 'Validate on target' with the aim to validate and not to perform automatic compilation and download, I have the next communication error:


_legacyfs_online_stmicro_images_0693W00000bjZWyQAM.pngThe STM32CubeProgrammer is disconnected when the error occurs.

So far, I have not managed to find a solution. I'm limited with the debugging capabilities.

Hello,
Has this internal ticket 150730 been resolved?

Thank you!