Skip to content

Commit

Permalink
Merge pull request #2063 from geky/fix-heap
Browse files Browse the repository at this point in the history
Removed heap region from ARM sct file on K devices
  • Loading branch information
sg- authored Jun 29, 2016
2 parents f7b295a + 1bf641d commit 737a780
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
*/
#define __ram_vector_table__ 1

/* Heap 1/4 of ram and stack 1/8 */
#define __stack_size__ 0x4000
#define __heap_size__ 0x8000

#if (defined(__ram_vector_table__))
#define __ram_vector_table_size__ 0x00000400
#else
Expand All @@ -78,18 +74,6 @@
#define m_data_2_start 0x20000000
#define m_data_2_size 0x00010000

/* Sizes */
#if (defined(__stack_size__))
#define Stack_Size __stack_size__
#else
#define Stack_Size 0x0400
#endif

#if (defined(__heap_size__))
#define Heap_Size __heap_size__
#else
#define Heap_Size 0x0400
#endif

LR_m_text m_interrupts_start m_text_size+m_interrupts_size+m_flash_config_size { ; load region size_region
VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
Expand All @@ -105,11 +89,9 @@ LR_m_text m_interrupts_start m_text_size+m_interrupts_size+m_flash_config_size {
RW_m_data m_data_start m_data_size { ; RW data
.ANY (+RW +ZI)
}
RW_m_data_2 m_data_2_start m_data_2_size-Stack_Size-Heap_Size { ; RW data
RW_IRAM1 m_data_2_start m_data_2_size { ; RW data
.ANY (+RW +ZI)
}
RW_IRAM1 ((ImageLimit(RW_m_data_2) == m_data_2_start) ? ImageLimit(RW_m_data) : +0) EMPTY Heap_Size { ; Heap region growing up
}
VECTOR_RAM m_interrupts_ram_start EMPTY m_interrupts_ram_size {
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@
*/
#define __ram_vector_table__ 1

/* Heap 1/4 of ram and stack 1/8 */
#define __stack_size__ 0x8000
#define __heap_size__ 0x10000

#if (defined(__ram_vector_table__))
#define __ram_vector_table_size__ 0x00000400
#else
Expand All @@ -77,18 +73,6 @@
#define m_data_2_start 0x20000000
#define m_data_2_size 0x00030000

/* Sizes */
#if (defined(__stack_size__))
#define Stack_Size __stack_size__
#else
#define Stack_Size 0x0400
#endif

#if (defined(__heap_size__))
#define Heap_Size __heap_size__
#else
#define Heap_Size 0x0400
#endif

LR_m_text m_interrupts_start m_text_size+m_interrupts_size+m_flash_config_size { ; load region size_region
VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
Expand All @@ -104,11 +88,9 @@ LR_m_text m_interrupts_start m_text_size+m_interrupts_size+m_flash_config_size {
RW_m_data m_data_start m_data_size { ; RW data
.ANY (+RW +ZI)
}
RW_m_data_2 m_data_2_start m_data_2_size-Stack_Size-Heap_Size { ; RW data
RW_IRAM1 m_data_2_start m_data_2_size { ; RW data
.ANY (+RW +ZI)
}
RW_IRAM1 ((ImageLimit(RW_m_data_2) == m_data_2_start) ? ImageLimit(RW_m_data) : +0) EMPTY Heap_Size { ; Heap region growing up
}
VECTOR_RAM m_interrupts_ram_start EMPTY m_interrupts_ram_size {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
*/
#define __ram_vector_table__ 1

/* Heap 1/4 of ram and stack 1/8 */
#define __stack_size__ 0x800
#define __heap_size__ 0x1000

#if (defined(__ram_vector_table__))
#define __ram_vector_table_size__ 0x00000200
#else
Expand All @@ -75,18 +71,6 @@
#define m_data_start (m_interrupts_ram_start + m_interrupts_ram_size)
#define m_data_size (0x00004000 - m_interrupts_ram_size)

/* Sizes */
#if (defined(__stack_size__))
#define Stack_Size __stack_size__
#else
#define Stack_Size 0x0400
#endif

#if (defined(__heap_size__))
#define Heap_Size __heap_size__
#else
#define Heap_Size 0x0400
#endif

LR_m_text m_interrupts_start 0x10000 { ; load region size_region
VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
Expand All @@ -101,10 +85,8 @@ LR_m_text m_interrupts_start 0x10000 { ; load region size_region
}
VECTOR_RAM m_interrupts_ram_start EMPTY m_interrupts_ram_size {
}
RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
RW_IRAM1 m_data_start m_data_size { ; RW data
.ANY (+RW +ZI)
}
RW_IRAM1 +0 EMPTY Heap_Size { ; Heap region growing up
}
}

0 comments on commit 737a780

Please sign in to comment.