From ab2bc5950161e52ddd422bdef0f06883eb465c7c Mon Sep 17 00:00:00 2001 From: Ondrej Kosta Date: Wed, 23 Mar 2022 13:12:19 +0100 Subject: [PATCH] Eth iperf default sdkconfig: Enable lwIP IRAM optimization --- examples/ethernet/iperf/README.md | 2 +- examples/ethernet/iperf/sdkconfig.defaults | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/ethernet/iperf/README.md b/examples/ethernet/iperf/README.md index 3d8bf3149d..af90abfe4b 100644 --- a/examples/ethernet/iperf/README.md +++ b/examples/ethernet/iperf/README.md @@ -146,7 +146,7 @@ I (2534456) iperf: want recv=16384 ## Suggestions of getting higher bandwidth 1. Higher MCU working frequency will get higher bandwidth. -2. Put frequency invoked function into IRAM via macro `IRAM_ATTR` in code. +2. Put frequently invoked functions into IRAM via macro `IRAM_ATTR` in code. Note that the lwIP IRAM optimization is already enabled by default. 3. Priority of iperf task may also have effect. ## Troubleshooting diff --git a/examples/ethernet/iperf/sdkconfig.defaults b/examples/ethernet/iperf/sdkconfig.defaults index 40045791b0..9377df864b 100644 --- a/examples/ethernet/iperf/sdkconfig.defaults +++ b/examples/ethernet/iperf/sdkconfig.defaults @@ -18,3 +18,6 @@ CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y # Disable watch dog CONFIG_ESP_INT_WDT=n CONFIG_ESP_TASK_WDT=n + +# Enable lwIP IRAM optimization +CONFIG_LWIP_IRAM_OPTIMIZATION=y