Skip to content

Commit

Permalink
feat: update memory layout
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnL4 committed Oct 15, 2024
1 parent acf0128 commit 95c8d03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions EPII_CM55M_APP_S/app/scenario_app/sscma/sscma.ld
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ MEMORY
// CM55S_S_EL_HWENC (rw) : ORIGIN = 0x36000000, LENGTH = 0x36060000 - 0x36000000
}

__HEAP_SIZE = 0x5000; // 20 KB
__STACK_SIZE = 0x5000; // 20 KB
__HEAP_SIZE = 0x4000; // 16 KB
__STACK_SIZE = 0x4000; // 16 KB

ENTRY(Reset_Handler)

Expand Down Expand Up @@ -81,10 +81,7 @@ SECTIONS
*libaudio.*:*(.text* .rodata*)

. = ALIGN(4);
*libfatfs.*:*(.text* .rodata*)

. = ALIGN(4);
*libcommon.*:*(.text* .rodata*)
*libsscma_micro.*:*(.text* .rodata*)

. = ALIGN(4);
*libtflmtag2209_u55tag2205_gnu.*:*(.text* .rodata*)
Expand Down Expand Up @@ -289,10 +286,10 @@ SECTIONS
__HeapLimit = .;
PROVIDE(__HeapLimit = .);

} > CM55M_S_APP_DATA
} > CM55M_S_SRAM

/* Locate actual Stack in memory map */
.stack (ORIGIN(CM55M_S_APP_DATA) + LENGTH(CM55M_S_APP_DATA) - __STACK_SIZE - 32) (COPY) :
.stack (ORIGIN(CM55M_S_SRAM) + LENGTH(CM55M_S_SRAM) - __STACK_SIZE - 32) (COPY) :
{
. = ALIGN(8);
__StackLimit = .;
Expand All @@ -305,7 +302,7 @@ SECTIONS
__StackTop = .;
PROVIDE(__StackTop = .);

} > CM55M_S_APP_DATA
} > CM55M_S_SRAM

PROVIDE(__stack = __StackTop);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern uint32_t SystemCoreClock;
/* Constants that describe the hardware and memory usage. */
#define configCPU_CLOCK_HZ (SystemCoreClock)
#define configTICK_RATE_HZ ((TickType_t)1000)
#define configTOTAL_HEAP_SIZE ((size_t)(486 * 1024))//((size_t)4096)
#define configTOTAL_HEAP_SIZE ((size_t)(450 * 1024))//((size_t)4096)
#define configMINIMAL_STACK_SIZE ((uint16_t)256)
#define configSUPPORT_DYNAMIC_ALLOCATION 1
#if defined(FREERTOS_OSHAL)
Expand Down

0 comments on commit 95c8d03

Please sign in to comment.