Skip to content

Commit

Permalink
Use RTC memory as heap in unicore mode and readme fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Patil <[email protected]>
  • Loading branch information
shubhamdp committed Sep 9, 2021
1 parent 741ab0a commit 0b4b013
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/temperature-measurement-app/esp32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,13 @@ Optimization related to WiFi, BLuetooth, Asserts etc are the part of this
example by default. To enable this option set is_debug=false from command-line.

```
idf.py -p /dev/tty.SLAB_USBtoUART -Dis_debug=false build flash monitor
# Reconfigure the project for additional optimizations
rm sdkconfig
idf.py -Dis_debug=false reconfigure
# Set additional configurations if required
idf.py menuconfig
# Build, flash, and monitor the device
idf.py -p /dev/tty.SLAB_USBtoUART build flash monitor
```
3 changes: 3 additions & 0 deletions examples/temperature-measurement-app/esp32/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16
# FreeRTOS
CONFIG_FREERTOS_UNICORE=y

# Add RTC memory to system heap
CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP=y

# LWIP
CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16
# FreeRTOS
CONFIG_FREERTOS_UNICORE=y

# Add RTC memory to system heap
CONFIG_ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP=y

# Log output
CONFIG_LOG_DEFAULT_LEVEL_NONE=y

Expand Down

0 comments on commit 0b4b013

Please sign in to comment.