Closed PureTek-Innovations closed 6 months ago
Please can you also explain why line 115 of the default platformio.ini has been included?
; ESP32-WROVER-E + RTL8201 FLASH:16MB PSRAM:8MB
[env:T-ETH-Lite-ESP32]
board = esp32dev
build_flags =
${env.build_flags}
-DBOARD_HAS_PSRAM
-DLILYGO_T_ETH_LITE_ESP32
-DUSER_SETUP_LOADED
-include lib/TFT_eSPI/User_Setups/Setup216_LilyGo_ETH_Lite_ESP32.h
This board does not have a TFT screen, does it need it for the SPI settings at the bottom of Setup216_LilyGo_ETH_Lite_ESP32.h?
115 is prepared for the TFT_ILI9341_Shield example. It does not affect other examples. Why do you use libdeps? Have you checked the README on how to use platformio?
Line 115 is in the T-ETH-Lite-ESP32 environment section of https://github.com/Xinyuan-LilyGO/LilyGO-T-ETH-Series/blob/master/platformio.ini
My question exactly, why are you using libdeps for a screen on a board that doesn't have a screen?
T-ETH-Lite-ESP32 supports TFT screen extension. The TFT_ILI9341_Shield example requires it. If you don’t use the screen, you can delete it. I will provide it to those who need it.
In your platformio.ini file:
I have changed the default environment to "default_envs = T-ETH-Lite-ESP32" and commented out any others.
I have uncommented "src_dir = examples/ETHOTA" and ensured that all the others are commented out.
I still get this error:
PLATFORM: Espressif 32 (2023.10.6+sha.8529a77) > Espressif ESP32 Dev Module HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:
Are you using a different version of ETHClass.cpp?
Please try compiling with a fresh unmodified download from github.
Try changing to the fixed version here
PACKAGES:
That didn't work
T-ETH-Lite-ESP32 supports TFT screen extension. The TFT_ILI9341_Shield example requires it. If you don’t use the screen, you can delete it. I will provide it to those who need it.
I can't find a TFT screen extension in the Lilygo shop, please can you let me have a link?
Can you provide AnyDesk for me to check?
T-ETH-Lite-ESP32 supports TFT screen extension. The TFT_ILI9341_Shield example requires it. If you don’t use the screen, you can delete it. I will provide it to those who need it.
I can't find a TFT screen extension in the Lilygo shop, please can you let me have a link?
Can you provide AnyDesk for me to check?
NO
T-ETH-Lite-ESP32 supports TFT screen extension. The TFT_ILI9341_Shield example requires it. If you don’t use the screen, you can delete it. I will provide it to those who need it.
I can't find a TFT screen extension in the Lilygo shop, please can you let me have a link?
That's a code example, not a product.
Then I have no choice. I suspect there is a problem with your platformio. I am creating a new github action to detect it.
Then I have no choice. I suspect there is a problem with your platformio. I am creating a new github action to detect it.
Or, more likely, a problem with your code.
In fact, I fixed this days ago, I just wondered if the development team had any idea what they were doing. It seems not.
Simply comment out line 15 in the example
//#include
And uncomment line 14
Then the code compiles and works properly.
You can now see the results. https://github.com/Xinyuan-LilyGO/LilyGO-T-ETH-Series/actions/runs/8246524546/job/22552731609
I just did a fresh download from github. It still only compiles with the ETH.h library.
PLATFORM: Espressif 32 (2023.10.6+sha.8529a77) > Espressif ESP32 Dev Module HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:
I'm not sure what's causing this, but you're not the first one using T-ETH-Lite-ESP32, no one else has reported this bug to me, and currently all the checks are passing and I can't to more .
It may be something to do with Windows 11.
I also use Win11
I'm using platformio, it is installed properly as I use it all the time for ESP32s.
I just want to get an ethernet connection up and running, so am trying to use the ETHOTA example.
I've tried using the default platform.ini with the correct board and sketch uncommented but I get this error:
cc1plus.exe: fatal error: examples/ETHOTA/ETHOTA.ino.cpp: No such file or directory
I've tried building my own sketch based on the example but the I get a bunch of errors from the ETHClass.cpp file:
These are quite strange as I have declared the correct ethernet type and it is not W5500:
#define ETH_TYPE ETH_PHY_RTL8201
Are you able to provide a basic working platformio sketch and ini file, please?