Created
November 20, 2019 05:50
-
-
Save master-q/192d516ea670b5b6ec6d8635b0b30953 to your computer and use it in GitHub Desktop.
Why we can't change size of malloc heap for PSoC 6?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vi libs/TARGET_CY8CPROTO-062-4343W/startup/TOOLCHAIN_GCC_ARM/startup_psoc6_02_cm4.S | |
--snip-- | |
__StackTop: | |
.size __StackTop, . - __StackTop | |
.section .heap | |
.align 3 | |
.equ Heap_Size, 0x00000100 | |
.globl __HeapBase | |
.globl __HeapLimit | |
__HeapBase: | |
.if Heap_Size | |
.space Heap_Size | |
.endif | |
.size __HeapBase, . - __HeapBase | |
--snip-- | |
$ make clean | |
$ make build | |
--snip-- | |
Calculating memory consumption: CY8C624ABZI-D44 GCC_ARM -Og | |
-------------------------------------------------- | |
| Section Name | Address | Size | | |
-------------------------------------------------- | |
| .cy_m0p_image | 0x10000000 | 5068 | | |
| .text | 0x10002000 | 41060 | | |
| .ARM.exidx | 0x1000c064 | 8 | | |
| .copy.table | 0x1000c06c | 24 | | |
| .zero.table | 0x1000c084 | 8 | | |
| .data | 0x080022e0 | 1912 | | |
| .cy_sharedmem | 0x08002a58 | 8 | | |
| .noinit | 0x08002a60 | 148 | | |
| .bss | 0x08002af4 | 836 | | |
| .heap | 0x08002e38 | 1030600 | | |
-------------------------------------------------- | |
Total Internal Flash (Available) 2097152 | |
Total Internal Flash (Utilized) 51220 | |
Total Internal SRAM (Available) 1046528 | |
Total Internal SRAM (Utilized) 1033504 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment