cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7B3I-EVAL board (MB1331-H7B3LIQ-D04) RAM and Flash usage estimation

tejas210
Associate II

Hi Technical Support team,

Platform: STM32H7B3I-EVAL board (MB1331-H7B3LIQ-D04)

I want to understand memory and flash usage when we build and run any application using TouchGFX Designer  on STM32H7B3I-EVAL board. 

How to choose memory size and type for customized board based on STM32H7 Platform. ? 

How to choose specific SOC form STM32H7 family suitable for project requirements? 

Please refer below details.  

On‑Chip (SoC: STM32H7B3LIH6Q)

  • Flash: 2 MB internal Flash

  • RAM (SRAM): 1.4 MB internal SRAM (split across multiple banks: DTCM, AXI SRAM, SRAM1/2/3)

:package: On‑Board External Memories

  • Octo‑SPI NOR Flash: 512 Mbit (64 MB)

  • SDRAM: 8 Mbit × 32‑bit = 32 MB

  • SRAM: 1 Mbit × 16‑bit = 2 MB

  • NOR Flash: 8 Mbit × 16‑bit = 16 MB

  • microSD card slots: 2 × (expandable storage)

Memory used as per blow log while compiling and flashing code from Touch GFX. 

:desktop_computer:️ On‑Chip (STM32H7B3LI MCU)

  • Internal Flash (2 MB available): Used → 224,396 B (~219 KB) → 10.7 %

  • Internal SRAM (1 MB available): Used → 88,404 B (~86 KB) → 8.43 %

  • DTCM RAM (128 KB available): Used → 8 KB → 6.25 %

  • ITCM RAM (64 KB available): Used → 0 B → 0 %

 

:package: On‑Board External Memories

  • Octo‑SPI NOR Flash (64 MB available): Used → 8,640,000 B (~8.23 MB) → 12.87 %

  • SDRAM (32 MB available): Used → 1,500 KB (~1.46 MB) → 4.58 %

:cross_mark: External SRAM & Parallel NOR Flash

  • External SRAM (2 MB) → 0% used

  • Parallel NOR Flash (16 MB) → 0% used

Question:  How is the memory usage mapped when we compile and flash the code.?

                 How do we know that which memory to use SRAM or SDRAM?  

                 How do we know that which memory to use OSPI NOR flash or  Parallel NOR Flash?

                 If We are designing customized board based on STM32H7 family of chip. how to select exact SOC part number which is suitable to our application requirement.? which memory to use SRAM or SDARM or both.?  Which memory to use OSPI NOR flash or Parallel NOR flash or both?  Should we need to consider Emmc memory or SD card or not ?    

          Please help us how to select Exact SOC part number and memory type. 

           Is there any specific and minimum requirement for 7 inch display with touch GFX designer? how to calculate minimum memory usage? 

============ log =========

Linking TouchGFX/build/bin/target.elf
Memory region Used Size Region Size %age Used
DTCMRAM: 8 KB 128 KB 6.25%
ITCMRAM: 0 B 64 KB 0.00%
RAM: 88404 B 1 MB 8.43%
FLASH: 224396 B 2 MB 10.70%
OSPI: 8640000 B 64 MB 12.87%
SDRAM: 1500 KB 32 MB 4.58%
Producing additional output formats...
target.hex - Combined internal+external hex
intflash.elf - Internal flash, elf debug
intflash.hex - Internal flash, hex
Done
Flash
make -f ../gcc/Makefile flash
Reading TouchGFX/application.config
Reading TouchGFX/target.config
Video Objects:
Linking TouchGFX/build/bin/target.elf
Memory region Used Size Region Size %age Used
DTCMRAM: 8 KB 128 KB 6.25%
ITCMRAM: 0 B 64 KB 0.00%
RAM: 88404 B 1 MB 8.43%
FLASH: 224396 B 2 MB 10.70%
OSPI: 8640000 B 64 MB 12.87%
SDRAM: 1500 KB 32 MB 4.58%
Producing additional output formats...
target.hex - Combined internal+external hex
intflash.elf - Internal flash, elf debug
intflash.hex - Internal flash, hex
-------------------------------------------------------------------
STM32CubeProgrammer v2.21.0
-------------------------------------------------------------------

ST-LINK SN : 003B00423133510337363734
ST-LINK FW : V3J16M9
Board : STM32H7B3I-EVAL
Voltage : 3.28V
SWD freq : 8000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x480
Revision ID : Rev X
Device name : STM32H7A/B
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x92



Opening and parsing file: target.hex


Memory Programming ...
File : target.hex
Size : 8.45 MB
Address : 0x08000000


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 27]
Erasing memory corresponding to segment 1:
Erasing external memory sectors [0 131]
Download in Progress:
±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±± 0%
ÛÛÛÛÛ 11%ÛÛ 14%ÛÛÛÛÛ 25%ÛÛÛÛÛÛ 37%ÛÛÛÛÛÛ 49%ÛÛÛÛÛÛ 60%ÛÛÛÛÛÛ 72%ÛÛÛÛÛÛ 84%ÛÛÛÛÛ 95%ÛÛÛ 100%

File download complete
Time elapsed during download operation: 00:00:49.762

Hard reset is performed
Done
Done

Regards,

Tejas Patel

1 REPLY 1
MM..1
Chief III

OMG , if you ask this , then goto back play LEGO... But real example :

7 inch isnt info , priority is 1000x10000px or what?  BW or ARGB8888 ? Display with GRAM or without? BUS ?

Simple display RGB require 30 pins on MCU for signals , but DSI variant only 7. 

Result choice MCU is based on requirments of your app. Next is price , SDRAM >< SRAM or PSRAM ...

800x600x3 is one buffer for displays without GRAM = 1,44MB exactly more as internal, but RGB565 is ok and external ram for single buffer mode isnt required etc.

And last where is placed parts you as author declare in code and linker script.

 

Primary info is , you start design with empty screen in designer = no external FLASH used
adding elements as font and images fill internal flash ... on one point you fill full  = you choice and add ext. or change used to more effective for example SVG...