]> granicus.if.org Git - esp-idf/commitdiff
example: set default SPI flash mode to 40Mhz for iperf example
authorLiu Zhi Fu <liuzhifu@espressif.com>
Thu, 8 Feb 2018 07:25:34 +0000 (15:25 +0800)
committerLiu Zhi Fu <liuzhifu@espressif.com>
Thu, 3 May 2018 02:42:34 +0000 (10:42 +0800)
Set default SPI flash frequency to 40Mhz for iperf example to avoid random crash for ESP32-WROVER-KIT (v3).

examples/wifi/iperf/README.md
examples/wifi/iperf/sdkconfig.defaults

index c5fd968fceb3516e77c7aa92a1d7ca0ff0863c4c..18f94f9a6e17044bd269b0bed7a1a0b027feecb3 100644 (file)
@@ -1,5 +1,11 @@
 # Iperf Example
 
+## Note about 80Mhz flash frequency
+The iperf can get better throughput if the SPI flash frequency is set to 80Mhz, but the system may crash in 80Mhz mode for ESP-WROVER-KIT V3. 
+Removing R140~R145 from the board can fix this issue. Currently the default SPI frequency is set to 40Mhz, if you want to change the SPI flash 
+frequency to 80Mhz, please make sure R140~R145 are removed from ESP-WROVER-KIT V3 or use ESP32 DevKitC.
+
+## Introduction
 This example implements the protocol used by the common performance measurement tool [iPerf](https://iperf.fr/). 
 Performance can be measured between two ESP32s running this example, or between a single ESP32 and a computer running the iPerf tool
 
index 52b0cbaef6414c18efdd0d40e38b2862474770d6..9c03a72861ff0eef4c1dfccdb59368007251422a 100644 (file)
@@ -24,6 +24,6 @@ CONFIG_TCPIP_RECVMBOX_SIZE=64
 CONFIG_LWIP_ETHARP_TRUST_IP_MAC=
 
 CONFIG_FLASHMODE_QIO=y
-CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
+CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
 CONFIG_LWIP_IRAM_OPTIMIZATION=y