Skip to main content
Graduate
November 30, 2024
Solved

Internal RAM is too full

  • November 30, 2024
  • 3 replies
  • 856 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

    This topic has been closed for replies.
    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

    Super User
    November 30, 2024

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

    Graduate II
    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)

    Graduate
    December 12, 2024

     

    Is my scatter file setting is correct for stm32h747

    scatter.JPG

    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