Ver Fonte

example: set default SPI flash mode to 40Mhz for iperf example

Set default SPI flash frequency to 40Mhz for iperf example to avoid random crash for ESP32-WROVER-KIT (v3).
Liu Zhi Fu há 8 anos atrás
pai
commit
b4ca03c48b
2 ficheiros alterados com 7 adições e 1 exclusões
  1. 6 0
      examples/wifi/iperf/README.md
  2. 1 1
      examples/wifi/iperf/sdkconfig.defaults

+ 6 - 0
examples/wifi/iperf/README.md

@@ -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
 

+ 1 - 1
examples/wifi/iperf/sdkconfig.defaults

@@ -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