1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SPI-Ethernet Module W5500 Usage Manual for mros2-esp32 準備中

Last updated at Posted at 2024-11-08

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

2. software

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
    image.png
    image.png
    image.png
    image.png
  • Selected Ethernet
    image.png

3.3 Setting SPI connection

3.3.1 Enable SPI Ethernet

  • Select Example Ethernet Configuration -> SPI Ethernet -> Enter
    image.png
    image.png
    image.png

3.3.3 Enable SPI Ethernet

  • Change PHY reset control GPIO.
  • select PHY Reset GPIO number of SPI Ethernet Module -> enter
    image.png
  • input 9 -> enter . Align with the pin assignments on the test board.
    image.png
    image.png

#3.4 save configuration
q -> y
image.png

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

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?