1. Purpose
- Reference manual for using mros2-esp32 in a wired LAN environment.
- How to configure settings in idf.py menuconfig for Ethernet connection.
- Introduce echoback_string as an example.
2. Hardware
The hardware that was actually tested is as follows.
2.1 W5500
- Connect to the ESP32 via SPI.
- The W5500 is integrated into the WIZ850io.
- The power supply to the WIZ850io was provided from a separate source, not from the ESP32.
2.2 ESP32-S3
- ESP32-S3-DevKitC-1 with ESP32-S3-WROOM-1
2. software
- Espressif/esp-idf/Ehernet sample compatible with mros2-esp32. PR#27
- Switching between Wi-Fi and Ethernet, and configuring SPI connection in idf.py menuconfig.
3. Ethernet configuration
- use idf.py menuconfig.
- Select Wi-Fi or Ethernet.
- SPI connection.
3.1 Execute idf.py menuconfig
$ cd mros2-esp32/workspace/echoback_string
$ . $HOME/esp/esp-idf/export.sh
$ idf.py menuconfig
3.2 Select Ethernet
- select mros2-esp32 network interface -> EnterKey -> EnterKey -> select Ethernet-SP -> EnterKey
- Selected Ethernet
3.3 Setting SPI connection
3.3.1 Enable SPI Ethernet
3.3.3 Enable SPI Ethernet
- Change PHY reset control GPIO.
- select PHY Reset GPIO number of SPI Ethernet Module -> enter
- input 9 -> enter . Align with the pin assignments on the test board.
#3.4 save configuration
q -> y
4. build & monitor log
# pip install -U Jinja2
$ idf.py build
$ sudo chmod 666 /dev/ttyACM0
$ idf.py -p /dev/ttyACM0 flash
$ idf.py -p /dev/ttyACM0 monitor