Speedup SD card & enlarge your RAM. (#1649)
* FuriHal: sram2 memory manager * FuriHal: sram2 memory allocator * FuriHal: allow NULL buffers for txrx in spi hal * SD card: sector cache * FuriHal: fix init in memory hal * RPC: STARTUP instead SERVICE * Memory: pool "free" command * Thread: service can be statically allocated in a memory pool Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -57,7 +57,8 @@ MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
||||
RAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 0x30000
|
||||
RAM_SHARED (xrw) : ORIGIN = 0x20030000, LENGTH = 10K
|
||||
RAM2A (xrw) : ORIGIN = 0x20030000, LENGTH = 10K
|
||||
RAM2B (xrw) : ORIGIN = 0x20038000, LENGTH = 10K
|
||||
}
|
||||
|
||||
/* Define output sections */
|
||||
@@ -184,9 +185,12 @@ SECTIONS
|
||||
}
|
||||
|
||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
||||
MAPPING_TABLE (NOLOAD) : { *(MAPPING_TABLE) } >RAM_SHARED
|
||||
MB_MEM1 (NOLOAD) : { *(MB_MEM1) } >RAM_SHARED
|
||||
MB_MEM2 (NOLOAD) : { _sMB_MEM2 = . ; *(MB_MEM2) ; _eMB_MEM2 = . ; } >RAM_SHARED
|
||||
._sram2a_start : { . = ALIGN(4); __sram2a_start__ = .; } >RAM2A
|
||||
MAPPING_TABLE (NOLOAD) : { *(MAPPING_TABLE) } >RAM2A
|
||||
MB_MEM1 (NOLOAD) : { *(MB_MEM1) } >RAM2A
|
||||
MB_MEM2 (NOLOAD) : { _sMB_MEM2 = . ; *(MB_MEM2) ; _eMB_MEM2 = . ; } >RAM2A
|
||||
._sram2a_free : { . = ALIGN(4); __sram2a_free__ = .; } >RAM2A
|
||||
._sram2b_start : { . = ALIGN(4); __sram2b_start__ = .; } >RAM2B
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user