Skip to content

ESP32 SPI DMA not enabled when using TFT_eSPI with Arduino as a component in ESP-IDF #1304

Discussion options

You must be logged in to vote

Bodmer came through with the solution here: #1301

When using TFT_eSPI with Arduino as a component under ESP-IDF in PlatformIO, you need to add:
-DESP32=1
under build_flags in order for the ESP32 optimized SPI code to be compiled.

For my ESP-IDF example above, the complete correct build_flags section looks like:

build_flags =
    ; TFT_eSPI settings begin
    -DUSER_SETUP_LOADED=1
    -DRPI_DISPLAY_TYPE=1
    -DRPI_ILI9486_DRIVER=1
    -DTFT_CS=5
    -DTFT_DC=4
    -DTFT_MOSI=23
    -DTFT_SCLK=18
    -DTFT_RST=27
    -DTFT_BL=-1
    -DTOUCH_CS=-1
    -DLOAD_GLCD=1
    -DLOAD_FONT2=1
    -DLOAD_FONT4=1
    -DLOAD_FONT6=1
    -DLOAD_FONT7=1
    -DLOAD_FONT8=1
    -DLOAD_GFXFF=1
    -DSMOOTH_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by caiser01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant