Skip to content

Commit

Permalink
[esp32 m5-stack light] move freertos functions to flash instead of ir…
Browse files Browse the repository at this point in the history
…am (#28455)

* Move freertos functions out if iram.

This is because linkage fails with out of IRAM.

Following https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/performance/ram-usage.html#optimizing-iram-usage

* Add newline at the end of the file

---------

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 23, 2023
1 parent 58e524c commit 1082812
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/lighting-app/esp32/sdkconfig_m5stack.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ CONFIG_RMT_SUPPRESS_DEPRECATE_WARN=y

# Enable HKDF in mbedtls
CONFIG_MBEDTLS_HKDF_C=y

# Optimize IRAM
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y

0 comments on commit 1082812

Please sign in to comment.