-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Documentation of heap_caps_malloc is incorrect (IDFGH-5971) #7659
Comments
Thanks for pointing this out @jgamble-simple, the function description of what The actual behavior of
I think the description of that function predates these additional configuration options, and was never updated. Since these options are documented in detail in https://docs.espressif.com/projects/esp-idf/en/release-v4.3/esp32/api-guides/external-ram.html#configuring-external-ram, I think the easiest option is to remove the phrase |
…ps_malloc(p, MALLOC_CAP_8BIT) The actual memory allocated for malloc() depends on a lot of factors, see heap_caps_malloc_default() Closes #7659
* timer: propagate isr register failure Closes espressif#9651 * mcpwm: fix multiplication overflow in converting us to compare ticks Closes espressif#9648 * heap: remove misleading info about malloc being equivalent to heap_caps_malloc(p, MALLOC_CAP_8BIT) The actual memory allocated for malloc() depends on a lot of factors, see heap_caps_malloc_default() Closes espressif#7659 * esp-rom: fixed error in miniz header documention for tdefl_init Closes espressif#8435 * temperature_sensor: Fix issue that value is not accurate on ESP32-S3 * esp_https_ota: fix bug where `http_client_init_cb` is called after `esp_http_client_perform()` instead of before. Closes espressif#9581 * Tasmota changes * Fix linker error for C3 * Avoid bootloop if chip is unknown In case the PSIRAM chip is unknown, return an error and disable PSRAM instead of calling abort() and causing a bootloop * Support for xiaomi single core ESP32 * Fix linker error for rom_temp_to_power * fix linker error r_lld_ext_adv_dynamic_aux_pti_process * Hide download percent when not interactive * list(APPEND esptool_elf2image_args --dont-append-digest) * Use native Apple ARM toolchains * add package.json * add submodules * 8575d75 Co-authored-by: morris <[email protected]> Co-authored-by: Marius Vikhammer <[email protected]> Co-authored-by: Cao Sen Miao <[email protected]> Co-authored-by: Harshit Malpani <[email protected]> Co-authored-by: Mahavir Jain <[email protected]>
* timer: propagate isr register failure Closes espressif#9651 * mcpwm: fix multiplication overflow in converting us to compare ticks Closes espressif#9648 * heap: remove misleading info about malloc being equivalent to heap_caps_malloc(p, MALLOC_CAP_8BIT) The actual memory allocated for malloc() depends on a lot of factors, see heap_caps_malloc_default() Closes espressif#7659 * esp-rom: fixed error in miniz header documention for tdefl_init Closes espressif#8435 * temperature_sensor: Fix issue that value is not accurate on ESP32-S3 * esp_https_ota: fix bug where `http_client_init_cb` is called after `esp_http_client_perform()` instead of before. Closes espressif#9581 * Tasmota changes * Fix linker error for C3 * Avoid bootloop if chip is unknown In case the PSIRAM chip is unknown, return an error and disable PSRAM instead of calling abort() and causing a bootloop * Support for xiaomi single core ESP32 * Fix linker error for rom_temp_to_power * fix linker error r_lld_ext_adv_dynamic_aux_pti_process * Hide download percent when not interactive * list(APPEND esptool_elf2image_args --dont-append-digest) * Use native Apple ARM toolchains * add package.json * add submodules * 8575d75 * Arduino tinyusb v0.14.0 stripped Co-authored-by: morris <[email protected]> Co-authored-by: Marius Vikhammer <[email protected]> Co-authored-by: Cao Sen Miao <[email protected]> Co-authored-by: Harshit Malpani <[email protected]> Co-authored-by: Mahavir Jain <[email protected]>
…ps_malloc(p, MALLOC_CAP_8BIT) The actual memory allocated for malloc() depends on a lot of factors, see heap_caps_malloc_default() Closes #7659
According to the documentation:
https://docs.espressif.com/projects/esp-idf/en/release-v3.3/api-reference/system/mem_alloc.html#_CPPv416heap_caps_malloc6size_t8uint32_t
malloc is equivalent to heap_caps_malloc(size, MALLOC_CAP_8BIT).
I have a small piece of code that demonstrates that this is not true:
This is the tail end of the resulting log:
I am using platformio, which I believe is using esp-idf version 3.3
The text was updated successfully, but these errors were encountered: