cancel
Showing results for 
Search instead for 
Did you mean: 

512kbyte SRAM cannot be used

TMATS.1
Associate II

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.

1 REPLY 1

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.

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