Skip to content

[STM32L4XX] Fix heap size for RTOS on uARM #1889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
AREA STACK, NOINIT, READWRITE, ALIGN=3
EXPORT __initial_sp

__initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standby
__initial_sp EQU 0x20018000 ; Top of RAM, L4-ECC-SRAM2 retained in standby

; <h> Heap Configuration
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>

Heap_Size EQU 0x18000 ; 96KB
Heap_Size EQU 0x17800 ; 94KB (96KB, -2*1KB for main thread and scheduler)

AREA HEAP, NOINIT, READWRITE, ALIGN=3
EXPORT __heap_base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ LR_IROM1 0x08000000 0x100000 { ; load region size_region
.ANY (+RO)
}

; Total: 98 vectors = 392 bytes (0x188) to be reserved in RAM
RW_IRAM1 (0x10000000+0x188) (0x08000-0x188) { ; RW data 32k L4-ECC-SRAM2 retained in standby
RW_IRAM1 0x20000000 0x00018000 { ; RW data 96k L4-SRAM1
.ANY (+RW +ZI)
}

RW_IRAM2 0x20000000 0x00018000 { ; RW data 96k L4-SRAM1
; Total: 98 vectors = 392 bytes (0x188) to be reserved in RAM
RW_IRAM2 (0x10000000+0x188) (0x08000-0x188) { ; RW data 32k L4-ECC-SRAM2 retained in standby
.ANY (+RW +ZI)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ __initial_sp EQU 0x20018000 ; Top of RAM, L4-ECC-SRAM2 retained in standb
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>

Heap_Size EQU 0x18000 ; 96KB
Heap_Size EQU 0x17800 ; 94KB (96KB, -2*1KB for main thread and scheduler)

AREA HEAP, NOINIT, READWRITE, ALIGN=3
EXPORT __heap_base
Expand Down