Replies: 3 comments 1 reply
-
The PSRAM ID error is new to me but sure does sound like a config/setup issue of some kind. Make sure you DO have PSRAM on that board!
Not sure if this will help, I’m on vacation and away from the code, but here’s an S3 config with PSRAM I just used. Perhaps useful….
Most of the defines are for the screen on this unit and will need to be removed or updated to reflect the pinout of the display. But maybe between these two you’ll spot it.
[env:ledstrip_feather]
board = adafruit_feather_esp32s3_tft
monitor_speed = 1500000
upload_speed = 1500000
upload_port = 192.168.8.160
monitor_port = /dev/cu.usbmodem8411101
build_flags = -DLEDSTRIP=1
-DUSE_SCREEN=1
-DUSE_TFTSPI=1
-DUSER_SETUP_LOADED
-DTOUCH_CS=0
-DST7789_2_DRIVER
-DTFT_WIDTH=135 ; Define the TFT screen setup
-DTFT_HEIGHT=240
-DTFT_BL=45
-DTFT_BACKLIGHT_ON=HIGH
-DTFT_RGB_ORDER=TFT_RGB ; Fix color order being swapped
-DTFT_CS=7 ; CS, DC, RST
-DTFT_DC=39
-DTFT_RST=40
-DTFT_MOSI=35 ; MOSI, MISO, CLK
-DTFT_MISO=37
-DTFT_SCLK=36
-DLOAD_GLCD=1 ; Font info
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_FONT8N=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=27000000
-DESP32FEATHERTFT=1 ; This board has a TFT that is supported by TFT_eSPI
-DTOGGLE_BUTTON_1=0 ; Use GPIO0 button as the info toggle
-DNUM_INFO_PAGES=2
-std=gnu++17
-DUSE_PSRAM=1
-DBOARD_HAS_PSRAM=1
-mfix-esp32-psram-cache-issue
-DUNITY_INCLUDE_DOUBLE
-DUNITY_DOUBLE_PRECISION=1e-12 ; Make doubles real 8 byte doubles
-Dregister= ; Sinister: redefined 'register' so FastLED can use that keyword under C++17
-Os
lib_deps = ${common.lib_deps}
TFT_eSPI
[env:panlee]
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
board_build.f_cpu = 240000000L
upload_speed = 1000000
monitor_speed = 115200
;upload_port = /dev/tty.usbmodem84201
monitor_port = /dev/cu.usbmodem84401
build_flags = -DLEDSTRIP=1
-DUSE_SCREEN=1
-DUSE_TFTSPI=1
-DUSER_SETUP_LOADED=1
-DST7796_DRIVER=1
-DTFT_WIDTH=480
-DTFT_HEIGHT=320
-DUSE_HSPI_PORT=1
-DPIN_SDA=38
-DPIN_SCL=19
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=39
-DTFT_CS=15
-DTFT_DC=21
-DTFT_RST=22
-DTFT_BL=48
-DLOAD_GLCD
-DLOAD_FONT2
-DLOAD_FONT4
-DLOAD_FONT6
-DLOAD_FONT7
-DLOAD_FONT8
-DLOAD_GFXFF
-DSPI_FREQUENCY=27000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
-DSMOOTH_FONT
-DNUM_INFO_PAGES=1
-DPANLEE=1
-DUSE_PSRAM=1
-DBOARD_HAS_PSRAM=1
-mfix-esp32-psram-cache-issue
-D_IR_ENABLE_DEFAULT_=false ; don't automatically include every remote control decoder
-DDECODE_NEC=true ; enable whichever you need for your remote. Try not disabling above to figure out which it is.
-Dregister= ; Sinister: redefine 'register' so FastLED can use that keyword under C++17
-std=gnu++17
-O
lib_deps = ${common.lib_deps}
TFT_eSPI
… On Dec 20, 2022, at 7:04 PM, David Pugmire ***@***.***> wrote:
Has anyone tried this with the LilyGo T-Display-S3?
I made a new section in platformio.ini for this board (very similar to env:ledstrip_feather):
[env:ttgo-display-s3]
board = esp32-s3-devkitc-1
monitor_speed = 1000000
upload_speed = 115200
build_flags = -DLEDSTRIP=1
-DUSE_SCREEN=1
-DUSE_TFTSPI=1
-DUSER_SETUP_LOADED
-DTOUCH_CS=0
-DST7789_2_DRIVER
-DTFT_WIDTH=170 ; 135 ; Define the TFT screen setup
-DTFT_HEIGHT=320 ; 240
-DTFT_BL=38
-DTFT_BACKLIGHT_ON=HIGH
-DTFT_RGB_ORDER=TFT_RGB ; Fix color order being swapped
-DTFT_CS=6 ; CS, DC, RST
-DTFT_DC=7
-DTFT_RST=5
-DTFT_MOSI=11 ; SPI_D ; MOSI, MISO, CLK
-DTFT_MISO=13 ; SPI_Q
-DTFT_SCLK=12 ; SPI_CLK
-DLOAD_GLCD=1 ; Font info
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_FONT8N=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=27000000
-DESP32FEATHERTFT=1 ; This board has a TFT that is supported by TFT_eSPI
-DNUM_INFO_PAGES=2
-std=gnu++17
-DUSE_PSRAM=1
-DBOARD_HAS_PSRAM=1
-mfix-esp32-psram-cache-issue
-DUNITY_INCLUDE_DOUBLE
-DUNITY_DOUBLE_PRECISION=1e-12 ; Make doubles real 8 byte doubles
-Dregister= ; Sinister: redefined 'register' so FastLED can use that keyword under C++17
-Os
lib_deps = ${common.lib_deps}
TFT_eSPI
Note the correct board as esp32-s3-devkitc-1. All pins are configured for this board according to the spec sheet. Note that it actually uses LEDSTRIP, and in globals.h, and I set LED_PIN0 = 1 (GPIO1 for this board, as Pin 5 is not available for IO)
I also added this in order to enable this board:
; Libs needed to link with a TTGO T-Display-S3 Module
[ttgo-display-s3]
lib_deps = ${common.lib_deps}
https://github.com/Xinyuan-LilyGO/T-Display-S3
TFT_eSPI
Compiles great, writes to device, but does not succeed to run. I see this in the Serial Monitor terminal:
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40381ff1
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x43c
load:0x403c9700,len:0xbec
load:0x403cc700,len:0x2a3c
entry 0x403c98d8
E (219) psram: PSRAM ID read error: 0x00ffffff
I'm sure it's a config or something I missed somewhere. I've never used this board before but it is very similar to the Adafruit ESP32-S3 TFT, which Dave made official support/config for. Many thanks to anyone with ideas of what to check (or experience with NightDriver on this particular board)
—
Reply to this email directly, view it on GitHub <#180>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA4HCF7AICZN5KSXSHK5KI3WOJQS3ANCNFSM6AAAAAATFDXHJY>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
-
For anyone following this... I got NightDriver to load and run LOCAL effects successfully on the LilyGo T-Display-S3, HOWEVER, I cannot get the TFT display or Webserver to run, and I do not know why. Here is everything I know. Why try and get this working on LilyGo T-Display-S3?
For Local EffectsUsing this config, I can get local effects running:
IMPORTANT: you also need to set NOTE: this fixes the issue mentioned in my original post (PSRAM ID read error), and gets PSRAM working. The main diff between this and the Adafruit Feather config, for example, is the need to specify For TFT DisplayAccording to the developer of t-display-s3, they do NOT actually use SPI when using the TFT_eSPI library (which NightDriver uses for display). They actually MODIFIED that library to run it in parallel mode. This is supposed to be a good thing, as it means much better hardware perf (not relying as much on software). BUT... it is problematic when trying to be compatible with NightDriver and pretty much any project out there relying on TFT_eSPI. Details are outlined here: Some disucssion about how LVGL and i8080 parallel is 30%? faster than TFT_eSPI I tried running this mod (a few source and config files get tweaked for the t-display-s3) and I had NO success. I would get this error: All my pins are CORRECT for this board, double checked, and also verified with direct samples from the t-display-s3 developer. Here is what I used for reference (which results in that invalid pin error I cannot seem to shake!)
For Wifi and WebServer
For me, so far, it seems to do literally... nothing. No errors or logs or activity in the serial monitor, etc. Just simply, nothing. With the TFT unavailable, I cannot see my IP like I can with my Heltec. Router doesnt show any new devices joined the network. It's just running my local demo effect (operational but antisocial). Not sure what the deal is. No web server or wifi makes me sad. I can live without the TFT display, but sending data to the device is a MUST! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone tried this with the LilyGo T-Display-S3?
I made a new section in platformio.ini for this board (very similar to env:ledstrip_feather):
Note the correct board as esp32-s3-devkitc-1. All pins are configured for this board according to the spec sheet. Note that it actually uses LEDSTRIP, and in globals.h, and I set LED_PIN0 = 1 (GPIO1 for this board, as Pin 5 is not available for IO)
I also added this in order to enable this board:
Compiles great, writes to device, but does not succeed to run. I see this in the Serial Monitor terminal:
I'm sure it's a config or something I missed somewhere. I've never used this board before but it is very similar to the Adafruit ESP32-S3 TFT, which Dave made official support/config for. Many thanks to anyone with ideas of what to check (or experience with NightDriver on this particular board)
Beta Was this translation helpful? Give feedback.
All reactions