Move H7 main memory to SRAM1.

* We can't use the CCM for main memory because it's only accessible by MDMA.
This commit is contained in:
iabdalkader 2018-03-15 17:50:11 +02:00
parent bff8b86744
commit 60ee2ecfe9

View File

@ -40,13 +40,13 @@
// Linker script constants (see the linker script template stm32fxxx.ld.S).
// Note: fb_alloc is a stack-based, dynamically allocated memory on FB.
// The maximum available fb_alloc memory = FB_ALLOC_SIZE + FB_SIZE - (w*h*bpp).
#define OMV_MAIN_MEMORY CCM // data, bss, stack and heap
#define OMV_FFS_MEMORY SRAM1 // Flash filesystem cache memory
#define OMV_FFS_MEMORY CCM // Flash filesystem cache memory
#define OMV_MAIN_MEMORY SRAM1 // data, bss, stack and heap
#define OMV_DMA_MEMORY SRAM3 // DMA buffers memory (32KBs)
#define OMV_FB_MEMORY AXI_SRAM // Framebuffer, fb_alloc
#define OMV_FB_SIZE (412K) // FB memory: header + VGA/GS image
#define OMV_FB_ALLOC_SIZE (100K) // minimum fb alloc size
#define OMV_FB_SIZE (400K) // FB memory: header + VGA/GS image
#define OMV_FB_ALLOC_SIZE (112K) // minimum fb alloc size
#define OMV_STACK_SIZE (8K)
#define OMV_HEAP_SIZE (64K)