summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/scripts/_boot.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-06-05 13:01:16 +0100
committerDamien George <damien.p.george@gmail.com>2016-06-28 11:28:53 +0100
commit469c623bb8e504ca78f1964508579ecefec76a98 (patch)
tree3347d3eb3aee396c37fe5069fb028801064366d6 /esp8266/scripts/_boot.py
parente098eac19552a5a399ffbfae44e4b329ca623d0d (diff)
downloadmicropython-469c623bb8e504ca78f1964508579ecefec76a98.tar.gz
micropython-469c623bb8e504ca78f1964508579ecefec76a98.zip
cc3200: Shrink the FreeRTOS heap and place TCB+stack in freed location.
The 16k FreeRTOS heap originally had all TCBs and stacks dynamically allocated within it (plus semaphores and some other things). Now that xTaskCreateStatic is used instead of xTaskCreate, the TCBs and stacks are allocated statically and no longer use any of the FreeRTOS heap. Therefore, the FreeRTOS stack can be shrunk by the amount that has been made static. Furthermore, the TCBs and stack that are now static should be placed in the .rtos_heaps section of RAM because this RAM is treated specially by the bootloader (the bootloader executes from the first 16k of RAM and loads the firmware into the section starting after the 16k). After this patch the FreeRTOS heap (ucHeap) is 7200 bytes. The memory available for the MicroPython heap is 54936 bytes (including GC overhead).
Diffstat (limited to 'esp8266/scripts/_boot.py')
0 files changed, 0 insertions, 0 deletions