cancel
Showing results for 
Search instead for 
Did you mean: 

Region RAM overflowed by 56520 bytes error?

akoluacik
Senior

My program does not fit into RAM region as stated in the title. However, I need to fit it somehow. How can I do it? Is it OK if I use SDRAM? Or how to decrease the usage of RAM?

Btw, my board is STM32F746G-DISCO. Where can I find information about SDRAM, or memory of my board?

3 REPLIES 3

You have an MCU, not an MPU, tagging changed.

Use less

Understand where you're currently consuming it all.

Perhap large global arrays?

There is a manual, and circuit diagram for the board.

There should BSP example code for the board which brings up the SDRAM

There should be a section with the .LD linker script allowing you to direct content into SDRAM

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

STM32Cube_FW_F7_V1.16.0\Projects\STM32746G-Discovery\Examples\BSP\Src\sdram.c

STM32Cube_FW_F7_V1.16.0\Drivers\BSP\STM32746G-Discovery\stm32746g_discovery_sdram.c

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

You have not explained anything about how that memory is used.

The board has a user manual and schematics, both of which can be downloaded at the board's home page.