Skip to main content
Associate II
November 30, 2024
Solved

Internal RAM is too full

  • November 30, 2024
  • 3 replies
  • 1733 views

Hello,

I am using STM32H747 Discovery board in that I am using TFT display using LVGL in code my RAM is taking space upto 250 KB and my code is going in hardfault_handler();

 

Can anyone suggest me the solutionbuild.JPGtarget.JPG

Best answer by Tesla DeLorean

Why's it Hard Faulting? You're describing memory you don't have?

Are you allocating dynamic memory and ignoring the failure there?

Can you use the SDRAM on the board?

Does 0x20000000 have 0x35000 bytes, or only 0x20000 ?

0x24000000 has 0x80000 (512KB)

0x30000000 has 0x48000 (128+128+32)

3 replies

Andrew Neil
Super User
November 30, 2024

Examine the map file (aka "linker listing") to see what's using all the memory?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
November 30, 2024

Why's it Hard Faulting? You're describing memory you don't have?

Are you allocating dynamic memory and ignoring the failure there?

Can you use the SDRAM on the board?

Does 0x20000000 have 0x35000 bytes, or only 0x20000 ?

0x24000000 has 0x80000 (512KB)

0x30000000 has 0x48000 (128+128+32)

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Associate II
December 12, 2024

 

Is my scatter file setting is correct for stm32h747

scatter.JPG

Andrew Neil
Super User
December 12, 2024

Please see this for how to properly post source code and other "formatted" text (scatter files, etc) - not as images:

https://community.st.com/t5/community-guidelines/how-to-insert-source-code/ta-p/693413

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.