Skip to main content
akoluacik
Associate III
Jul 28, 2022 9:19 PM UTC
Question

Region RAM overflowed by 56520 bytes error?

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?

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
Jul 28, 2022 9:59 PM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
Jul 28, 2022 10:02 PM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Piranha
Principal III
Jul 28, 2022 10:07 PM UTC

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.