Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: nedoskiv on January 16, 2024, 03:52:09 PM

Title: ESP32-EVB-IND ETHERNET on MicroPyhon problem
Post by: nedoskiv on January 16, 2024, 03:52:09 PM
Hello,

we buy 10 x ESP32-EVB-IND, now we decide to use them with micropython, can you provide some assistance (example) how to initialize LAN8720 on Micropython. Standart ways produce an error.

Can you provide a working example for any of the standart micropython build?


Title: Re: ESP32-EVB-IND ETHERNET on MicroPyhon problem
Post by: LubOlimex on January 16, 2024, 04:38:29 PM
We provide demos only for ESP-IDF and Arduino for ESP32. These can be found at our GitHub and used as basis.

Make sure that your config fits ESP32-EVB (it is different than ESP32-POE, ESP32-GATEWAY, and so on). It has Ethernet clock on GPIO0. Meaning config before compiling firmware should be something like:

CONFIG_ETH_PHY_INTERFACE_RMII=y
CONFIG_ETH_RMII_CLK_OUT_GPIO=0
CONFIG_LWIP_LOCAL_HOSTNAME="ESP32_EVB"

Microphyton community is familiar with Olimex boards:

https://github.com/micropython/micropython/issues/4502