Skip to main content
Visitor II
May 21, 2020
Question

512kbyte SRAM cannot be used

  • May 21, 2020
  • 1 reply
  • 754 views

I am using STM32F767ZI.

STM32F767ZI has 512kbyte SRAM.

However, if you use more than about 133kbyte for global variables etc., the program operation will be strange.

Specifically, you will not be able to connect to the USB (VCP Port).

I want to secure global variables as much as SRAM can be used. Is there any setting, etc.?

512kbyte SRAM cannot be used.

The attached file is a map file converted to a txt file.

    This topic has been closed for replies.

    1 reply

    Graduate II
    May 21, 2020

    For IAR don't you have control of the linker via the .ICF file?

    Also when using different RAMs you need to be cognizant of buffering, caching (write back/thru) and cache coherency, especially when interacting with hardware peripherals using DMA, ie ETHERNET, SDMMC, etc.

    The DTCM RAM avoids some of these issues as it isn't cached (already fast access, tightly coupled)

    For other memory review MPU settings.