Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6717

SDK • Re: Proper way to get Heap size

$
0
0
Well I've built the test code and ran it on an RP2040

Code:

ReadyStack limit         : 20040000Stack One Top       : 20042000Stack Top           : 20041000Stack One Bottom    : 20042000Stack Bottom        : 20040800Heap top            : 2003C800Heap limit          : 20040000Heap_size           : 240256__bss_end__         : 20001D80__end__             : 20001D80>> MAIN LOOP HAS ENDED PLEASE RESET! <<
If I set __end__ as the start address of heap and the size to Heap_size this follows the same logic we talked about the code then stops working as soon as the memory is initialised.

Statistics: Posted by DarkElvenAngel — Sat Dec 21, 2024 5:17 pm



Viewing all articles
Browse latest Browse all 6717

Trending Articles