1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00
M Hightower d3eddeb501
Ensure xPortGetFreeHeapSize reports DRAM (#8680)
Create dedicated function for xPortGetFreeHeapSize() that only reports on DRAM.
NONOS SDK API system_get_free_heap_size() relies on xPortGetFreeHeapSize() for the free Heap size.

Possible breaking change for multiple Heap Sketches calling system_get_free_heap_size(); it will now always report free DRAM Heap size.

Update and export umm_free_heap_size_lw() to report the free Heap size of the current Heap.
Updated ESP.getFreeHeap() to use umm_free_heap_size_lw().

Updated build options to supply exported umm_free_heap_size_lw() via either UMM_STATS or UMM_INFO.

Improved build option support via the SketchName.ino.globals.h method for Heap options: UMM_INFO, UMM_INLINE_METRICS, UMM_STATS, UMM_STATS_FULL, UMM_BEST_FIT, and UMM_FIRST_FIT. While uncommon to change from the defaults, you can review umm_malloc_cfgport.h for more details, which may help reduce your Sketch's size in dire situations. Assuming you are willing to give up some functionality.
For debugging UMM_STATS_FULL can offer additional stats, like Heap low water mark (umm_free_heap_size_min()).
2022-10-11 14:52:39 +03:00
..
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2021-03-14 17:36:20 -07:00
2022-06-02 23:48:28 +02:00
2022-05-29 08:20:13 +03:00
2021-03-14 17:36:20 -07:00
2022-02-10 18:25:18 +01:00
2020-04-23 12:15:21 -04:00
2022-02-10 18:25:18 +01:00
2021-03-14 17:36:20 -07:00
2021-03-14 17:36:20 -07:00
2022-06-08 23:19:59 +02:00
2019-05-14 00:09:54 +02:00
2021-07-26 22:27:44 +02:00
2021-03-14 17:36:20 -07:00
2019-05-14 00:09:54 +02:00
2019-11-04 23:14:35 -03:00
2020-04-23 12:15:21 -04:00
2021-03-14 17:36:20 -07:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2021-07-26 22:27:44 +02:00
2022-06-14 18:33:09 +03:00
2020-07-09 09:59:49 -07:00
2014-12-01 00:34:28 +03:00