Skip to content

Commit

Permalink
chore: decrease ucheap and change flash layout
Browse files Browse the repository at this point in the history
  • Loading branch information
iChizer0 authored Apr 28, 2024
1 parent 1b42704 commit f5e2396
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions EPII_CM55M_APP_S/app/scenario_app/sscma/sscma.ld
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ MEMORY
/* Define each memory region */
CM55M_S_APP_ROM (rx) : ORIGIN = 0x10000000, LENGTH = 0x10040000 - 0x10000000 // 256 KB
CM55M_S_APP_DATA (rwx) : ORIGIN = 0x30000000, LENGTH = 0x30040000 - 0x30000000 // 256 KB
CM55M_S_SRAM (rwx) : ORIGIN = 0x34000000, LENGTH = 0x3407D000 - 0x34000000 // 500 KB, please remember to check configTOTAL_HEAP_SIZE
CM55M_S_EL_ALLOC (rw) : ORIGIN = 0x3407D000, LENGTH = 0x3418F800 - 0x3407D000 // 1098 KB
CM55M_S_SRAM (rwx) : ORIGIN = 0x34000000, LENGTH = 0x34079800 - 0x34000000 // 486 KB, please remember to check configTOTAL_HEAP_SIZE
CM55M_S_EL_ALLOC (rw) : ORIGIN = 0x34079800, LENGTH = 0x3418F800 - 0x34079800 // 1112 KB
// CM55M_S_EL_FBUF (rw) : ORIGIN = 0x3418F800, LENGTH = 0x34200000 - 0x3418F800 // 450 KB
// CM55S_S_EL_HWENC (rw) : ORIGIN = 0x36000000, LENGTH = 0x36060000 - 0x36000000
}

__HEAP_SIZE = 0x7000; // 28 KB
__STACK_SIZE = 0x7000; // 28 KB
__HEAP_SIZE = 0x5000; // 20 KB
__STACK_SIZE = 0x5000; // 20 KB

ENTRY(Reset_Handler)

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)(500 * 1024))//((size_t)4096)
#define configTOTAL_HEAP_SIZE ((size_t)(486 * 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 f5e2396

Please sign in to comment.