Skip to main content
Associate II
Nov 30, 2024 11:17 AM UTC
Solved

Internal RAM is too full

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

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Nov 30, 2024 3:20 PM UTC

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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

4 replies

Andrew Neil
Super User
Nov 30, 2024 2:38 PM UTC

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
Nov 30, 2024 3:20 PM UTC

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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate II
Dec 12, 2024 10:18 AM UTC

 

Is my scatter file setting is correct for stm32h747

scatter.JPG

Andrew Neil
Super User
Dec 12, 2024 11:19 AM UTC

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.