Attempting to add support for Elecrow WZ8048C070 #559
Replies: 8 comments 9 replies
-
Quick update. A few log_e statements later, it was obvious that it the issue was related to an uninitialised DNS server call that was being called from below, which I commented out (dnsServer.processNextRequest()) ) and the error has gone, but the functionality of the device via the HTTP server, seems to be working.
Now I just have to work out my I don't have anything displayed on the touch screen. |
Beta Was this translation helpful? Give feedback.
-
After a lot of trail and error, I believe I found a solution and I now have both the panel and touch screen working on the Elecrow 7inch 800x480 TFT (WZ8048C070). So the custom ini file that is working (both display & touch) is 👍 [elecrow-esp32-s3-tft] build_flags = ;region -- ArduinoGFX build options ------------------------ lib_deps = board_build.partitions = huge_app.csv [elecrow-tft-common-pins]
-D TFT_B0=15 -D TFT_G0=9 -D TFT_R0=14 ; -D TFT_D0=15 ; -D TFT_D5=9 ; -D TFT_D11=14
[env:elecrow-s3-8048C070_4MB] build_flags =
lib_deps = |
Beta Was this translation helpful? Give feedback.
-
@DaveDuncanson In the meantime I bought a Sunton ESP32-8048S050C, but it has WiFi problems which is not stable, as you had during your tests with the Elecrow. |
Beta Was this translation helpful? Give feedback.
-
I just wanted to thank you @DaveDuncanson ... I picked up a couple of the Elecrow 7" (WZ8048C070) to play around with and I managed to get OpenHASP working, both touch and the screen seem to be doing what they are supposed to do. I tried out a couple of examples and it all works. Thank you for this! |
Beta Was this translation helpful? Give feedback.
-
Has anyone had an issue where you have to turn the upload speed down to 115200? It takes forever to download at that speed! I'm on macOS 14.2.1 if that matters. Thanks @DaveDuncanson for the parameters! Saved me a bunch of time trying to figure it out. |
Beta Was this translation helpful? Give feedback.
-
@DaveDuncanson Is this still working well for you? I'm finding that my device freezes at startup and sometimes freezes and won't respond to touch and won't update. |
Beta Was this translation helpful? Give feedback.
-
This board has now been added to https://nightly.openhasp.com/ |
Beta Was this translation helpful? Give feedback.
-
Hi
Attempting to add support to the following Elecrow Touch screen.
https://www.elecrow.com/esp32-display-7-inch-hmi-display-rgb-tft-lcd-touch-screen-support-lvgl.html
The build and load seems to be successful 👍
Verbose mode can be enabled via
-v, --verbose
optionCommit Hash: 1b24478
ESP Flash Size: 4
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitc-1.html
PLATFORM: Espressif 32 (2023.7.0) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM)
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) On-board (esp-builtin) 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:
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 52 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ArduinoJson @ 6.21.3
|-- lvgl @ 7.11.1+sha.156561b
|-- lv_lib_png @ 0.0.0+20231015184047.sha.d42282b
|-- lv_lib_bmp @ 0.0.0+20231015184049.sha.b6ca85d
|-- lv_lib_gif @ 0.0.0+20231015184050.sha.afdc2d6
|-- ConsoleInput @ 0.0.3+sha.79180a9
|-- AceButton @ 1.10.1
|-- StreamUtils @ 1.7.3
|-- GFX Library for Arduino @ 1.3.8+sha.fa25b19
|-- Arduino_RPi_DPI_RGBPanel_mod
|-- arduino-goodix @ 0.0.0+20231015184056.sha.d5f9824
|-- WiFi @ 2.0.0
|-- ArduinoLog
|-- Wire @ 2.0.0
|-- FT6336U CTP Controller @ 1.0.2
|-- SPI @ 2.0.0
|-- Preferences @ 2.0.0
|-- EEPROM @ 2.0.0
|-- lv_fs_if @ 0.0.0+20220202035348
|-- HTTPClient @ 2.0.0
|-- CharStream
|-- StringStream
|-- freetype @ 2.10.4
|-- lv_lib_freetype
|-- FS @ 2.0.0
|-- lv_lib_qrcode
|-- WiFiClientSecure @ 2.0.0
|-- SimpleFTPServer @ 2.1.5
|-- Update @ 2.0.0
|-- DNSServer @ 2.0.0
|-- WebServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- ArduinoOTA @ 2.0.0
|-- HTTPUpdate @ 2.0.0
|-- Ethernet @ 2.0.0
|-- ETHSPI
|-- SPIFFS @ 2.0.0
|-- LittleFS @ 2.0.0
Building in release mode
=====================================
Converting .pio/build/elecrow-800x480_4MB/edit.htm.gz.txt.o
Converting .pio/build/elecrow-800x480_4MB/style.css.gz.txt.o
Converting .pio/build/elecrow-800x480_4MB/script.js.gz.txt.o
Converting .pio/build/elecrow-800x480_4MB/main.js.gz.txt.o
Converting .pio/build/elecrow-800x480_4MB/en.json.gz.txt.o
Linking .pio/build/elecrow-800x480_4MB/firmware.elf
Retrieving maximum program size .pio/build/elecrow-800x480_4MB/firmware.elf
Checking size .pio/build/elecrow-800x480_4MB/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [=== ] 34.3% (used 112308 bytes from 327680 bytes)
Flash: [==========] 95.6% (used 1692441 bytes from 1769472 bytes)
get_fw_version([".pio/build/elecrow-800x480_4MB/firmware.bin"], [".pio/build/elecrow-800x480_4MB/firmware.elf"])
Building .pio/build/elecrow-800x480_4MB/firmware.bin
esptool.py v4.6.2
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
copy_merge_bins([".pio/build/elecrow-800x480_4MB/firmware.bin"], [".pio/build/elecrow-800x480_4MB/firmware.elf"])
Commit Hash: 1b24478
.pio/build/elecrow-800x480_4MB/bootloader.bin
/home/dave/VisualStudio/openHASP/.pio/build/elecrow-800x480_4MB/partitions.bin
/home/dave/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
.pio/build/elecrow-800x480_4MB/firmware.bin
build_output/firmware/elecrow-800x480_full_4MB_v0.7.0-rc8_1b24478.bin
4MB
80m
80000000L
qio
/home/dave/.platformio/packages/tool-esptoolpy/esptool.py
esptool.py v4.6.2
Wrote 0x1ad470 bytes to file build_output/firmware/elecrow-800x480_full_4MB_v0.7.0-rc8_1b24478.bin, ready to flash to offset 0x0
and the initial startup seems to be working (noting nothing showing on screen), but then I get a constant flow of these in the log :
0446][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30452][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30458][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30464][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30470][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30477][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30483][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30489][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30495][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30501][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30507][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30514][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30520][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30526][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30532][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30538][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30544][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30551][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30557][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30563][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30569][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30575][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30581][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
[ 30588][E][WiFiUdp.cpp:301] parsePacket(): could not receive data: 9
The library involved is being linked in via : (WiFiUdp.cpp.o:)
~/VisualStudio/openHASP/.pio$ nm -D ./build/elecrow-800x480_4MB/libc95/libWiFi.a
WiFi.cpp.o:
nm: WiFi.cpp.o: no symbols
WiFiAP.cpp.o:
nm: WiFiAP.cpp.o: no symbols
WiFiClient.cpp.o:
nm: WiFiClient.cpp.o: no symbols
WiFiGeneric.cpp.o:
nm: WiFiGeneric.cpp.o: no symbols
WiFiMulti.cpp.o:
nm: WiFiMulti.cpp.o: no symbols
WiFiSTA.cpp.o:
nm: WiFiSTA.cpp.o: no symbols
WiFiScan.cpp.o:
nm: WiFiScan.cpp.o: no symbols
WiFiServer.cpp.o:
nm: WiFiServer.cpp.o: no symbols
WiFiUdp.cpp.o:
nm: WiFiUdp.cpp.o: no symbols
Any suggestions on how I could link in the actual source files, so I could add a few printf to determine whats going in.
Worth noting that I'm getting exactly the same error, when I did my own config for a Sutton ESP32-4827S043R so I suspect that the issue is in my VisualStudio / PlatformIO configuration some where (ie wrong library versions).
So any suggestions on where I should be looking ?
Rgs
Dave Duncanson
Beta Was this translation helpful? Give feedback.
All reactions