File tree Expand file tree Collapse file tree 7 files changed +24
-8
lines changed Expand file tree Collapse file tree 7 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 44
55/* top end of the stack */
66_estack = ORIGIN (RAM) + LENGTH (RAM);
7- _sstack = _estack - _stack_size;
87
98/* define output sections */
109SECTIONS
@@ -81,7 +80,8 @@ SECTIONS
8180 .stack :
8281 {
8382 . = ALIGN (4 );
84- . = . + _stack_size; /* will cause linker error if there is not enough space for stack. */
83+ _sstack = .;
84+ . = . + _minimal_stack_size; /* will cause linker error if there is not enough space for stack. */
8585 . = ALIGN (4 );
8686 } >RAM
8787
Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ MEMORY
2323}
2424
2525" MAGIC_OFFSET" = 0x100 ;
26- _stack_size = 4K;
26+
27+ /* Minimal stack size to allow the build to proceed. The actual stack size is whatever is left after
28+ statically allocated memory. It can be tuned by setting PBSYS_CONFIG_PROGRAM_LOAD_RAM_SIZE. */
29+ _minimal_stack_size = 4K;
2730
2831/* Start of data storage. */
2932_pbdrv_block_device_storage_start = ORIGIN (FLASH_USER_0);
Original file line number Diff line number Diff line change 99 RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 128K
1010}
1111
12- _stack_size = 8K;
12+ /* Minimal stack size to allow the build to proceed. The actual stack size is whatever is left after
13+ statically allocated memory. It can be tuned by setting PBSYS_CONFIG_PROGRAM_LOAD_RAM_SIZE. */
14+ _minimal_stack_size = 8K;
Original file line number Diff line number Diff line change 1818}
1919
2020" FW_INFO_OFFSET" = 0x200 ;
21- _stack_size = 16K;
21+
22+ /* Minimal stack size to allow the build to proceed. The actual stack size is whatever is left after
23+ statically allocated memory. It can be tuned by setting PBSYS_CONFIG_PROGRAM_LOAD_RAM_SIZE. */
24+ _minimal_stack_size = 12K;
Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ MEMORY
2323}
2424
2525" MAGIC_OFFSET" = 0x100 ;
26- _stack_size = 3K;
26+
27+ /* Minimal stack size to allow the build to proceed. The actual stack size is whatever is left after
28+ statically allocated memory. It can be tuned by setting PBSYS_CONFIG_PROGRAM_LOAD_RAM_SIZE. */
29+ _minimal_stack_size = 3K;
2730
2831/* Start of data storage. */
2932_pbdrv_block_device_storage_start = ORIGIN (FLASH_USER_0);
Original file line number Diff line number Diff line change 1717 RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 320K
1818}
1919
20- _stack_size = 16K;
20+ /* Minimal stack size to allow the build to proceed. The actual stack size is whatever is left after
21+ statically allocated memory. It can be tuned by setting PBSYS_CONFIG_PROGRAM_LOAD_RAM_SIZE. */
22+ _minimal_stack_size = 16K;
Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ MEMORY
2323}
2424
2525" MAGIC_OFFSET" = 0x200 ;
26- _stack_size = 8K;
26+
27+ /* Minimal stack size to allow the build to proceed. The actual stack size is whatever is left after
28+ statically allocated memory. It can be tuned by setting PBSYS_CONFIG_PROGRAM_LOAD_RAM_SIZE. */
29+ _minimal_stack_size = 8K;
2730
2831/* Start of data storage. */
2932_pbdrv_block_device_storage_start = ORIGIN (FLASH_USER_0);
You can’t perform that action at this time.
0 commit comments