Round Screen examples not working on ESP32-C3 (and othjer boards)

Hi,

I’m coming to the forum after hours of frustration of following the Getting Started guide to the letter to make my newly received XIAO ESP32-C3 with the Round Display, but with absolutely no success.

After playing around with libraries and board managers version I can compile the sketch, but when uploading the HardwareTest, nothing happens on screen, and the serial output seem to show the board crashing and boot looping with this message:

I am using the Arduino IDE version 2.3.2
esp32 board library 2.0.17
TFT-eSPI version here: GitHub - Maxwelltoo/TFT_eSPI: Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
lvgl 8.3.5
And the guide provided here: Getting Started with Seeed Studio Round Display for XIAO | Seeed Studio Wiki

09:50:25.361 -> 
09:50:25.361 -> 
09:50:25.361 -> ELF file SHA256: 0129fc723aa534b3
09:50:25.361 -> 
09:50:25.361 -> Rebooting...
09:50:25.361 -> ESP-ROM:esp32c3-api1-20210207
09:50:25.361 -> Build:Feb  7 2021
09:50:25.361 -> rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
09:50:25.361 -> Saved PC:0x40381cc8
09:50:25.361 -> SPIWP:0xee
09:50:25.361 -> mode:DIO, clock div:1
09:50:25.361 -> load:0x3fcd5810,len:0x438
09:50:25.361 -> load:0x403cc710,len:0x90c
09:50:25.361 -> load:0x403ce710,len:0x2624
09:50:25.361 -> entry 0x403cc710
09:50:25.445 -> XIAO round screen - LVGL_Arduino
09:50:25.807 -> Guru Meditation Error: Core  0 panic'ed (Store access fault). Exception was unhandled.
09:50:25.807 -> 
09:50:25.807 -> Core  0 register dump:
09:50:25.807 -> MEPC    : 0x4202bd74  RA      : 0x4202bd66  SP      : 0x3fca3280  GP      : 0x3fc8c200  
09:50:25.807 -> TP      : 0x3fc8f5ec  T0      : 0xffffffff  T1      : 0xffc3ffff  T2      : 0x00000001  
09:50:25.807 -> S0/FP   : 0x60004000  S1      : 0x3fc8eb4c  A0      : 0x00000001  A1      : 0xffffffff  
09:50:25.807 -> A2      : 0x00000000  A3      : 0xfdffffff  A4      : 0x08000000  A5      : 0x00000010  
09:50:25.807 -> A6      : 0x00000000  A7      : 0x04c4b400  S2      : 0x00000001  S3      : 0x00000000  
09:50:25.807 -> S4      : 0x00000000  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000  
09:50:25.807 -> S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
09:50:25.807 -> T3      : 0x00000000  T4      : 0x0000000f  T5      : 0x003c0000  T6      : 0x00000003  
09:50:25.807 -> MSTATUS : 0x00001881  MTVEC   : 0x40380001  MCAUSE  : 0x00000007  MTVAL   : 0x00000010  
09:50:25.807 -> MHARTID : 0x00000000  
09:50:25.807 -> 
09:50:25.807 -> Stack memory:
09:50:25.807 -> 3fca3280: 0x00000003 0x00000000 0x02625a00 0x00000001 0x00000001 0x3fc9b000 0x3fc8eb4c 0x4202c0bc
09:50:25.807 -> 3fca32a0: 0x00000000 0x3fc9c000 0x00000000 0x00000000 0x00000000 0x3fc9c000 0x3fc8f000 0x4200017c
09:50:25.807 -> 3fca32c0: 0x00000000 0x00000000 0x3fc9b000 0x420001a8 0x00000000 0x3fc9c000 0x3fc9b000 0x42000656
09:50:25.807 -> 3fca32e0: 0x00000000 0x00000000 0x00000000 0x42032246 0x00000000 0x00000000 0x00000000 0x403879f4
09:50:25.807 -> 3fca3300: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
09:50:25.807 -> 3fca3320: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x00000160 0xabba1234 0x00000154
09:50:25.807 -> 3fca3340: 0x3fca3210 0x25dfb0a2 0x3fc9badc 0x3fc9badc 0x3fca3340 0x3fc9bad4 0x00000018 0x11b91c7f
09:50:25.807 -> 3fca3360: 0xb83c0cec 0x3fca3340 0x00000000 0x00000001 0x3fca1330 0x706f6f6c 0x6b736154 0x2b3f1600
09:50:25.807 -> 3fca3380: 0x00ad4841 0x00000000 0x3fca3320 0x00000001 0x00000002 0x00000000 0x00000000 0x00000000
09:50:25.807 -> 3fca33a0: 0x3fc9d1e4 0x3fc9d24c 0x3fc9d2b4 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000
09:50:25.807 -> 3fca33c0: 0x00000000 0x4204dfa6 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
09:50:25.807 -> 3fca33e0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
09:50:25.807 -> 3fca3400: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
09:50:25.807 -> 3fca3420: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
09:50:25.807 -> 3fca3440: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
09:50:25.807 -> 3fca3460: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
09:50:25.807 -> 3fca3480: 0x00000000 0x00000000 0x00000000 0x00000000 0x2f000000 0xbaad5678 0x00000060 0xabba1234
09:50:25.807 -> 3fca34a0: 0x00000054 0x00000000 0x3fca34a4 0x00000000 0x00000000 0x00000000 0x3fca34bc 0xffffffff
09:50:25.807 -> 3fca34c0: 0x3fca34bc 0x3fca34bc 0x00000000 0x3fca34d0 0xffffffff 0x3fca34d0 0x3fca34d0 0x00000001
09:50:25.807 -> 3fca34e0: 0x00000001 0x00000000 0xef00ffff 0x00000000 0xb33fffff 0x00000000 0xbaad5678 0x00000160
09:50:25.807 -> 3fca3500: 0xabba1234 0x00000154 0x3fca355c 0x3fca355c 0x3fca365c 0x3fca365b 0x00000000 0x3fca3520
09:50:25.807 -> 3fca3520: 0xffffffff 0x3fca3520 0x3fca3520 0x00000000 0x3fca3534 0xffffffff 0x3fca3534 0x3fca3534
09:50:25.807 -> 3fca3540: 0x00000000 0x00000100 0x00000001 0x2d00ffff 0x00000000 0xb33fffff 0x00000000 0x55de3a41
09:50:25.807 -> 3fca3560: 0xe6b01801 0x682284b9 0x9172baf3 0x4b211f41 0x47ccb8fd 0xc837c527 0x7f267610 0x143f4481
09:50:25.807 -> 3fca3580: 0x22b1eecc 0x55ccd3b3 0x6b0bfead 0xeb80efc1 0xb12abfaf 0xad6b752a 0x20ce3134 0x6c7520e5
09:50:25.807 -> 3fca35a0: 0x7234d74b 0xbe2ffb4f 0x21b2335f 0x720f7365 0x60e93664 0x8cb5af2f 0xcc202c39 0x476174fb
09:50:25.807 -> 3fca35c0: 0x8892c408 0x2b26d364 0x16b4f104 0x3130cf13 0xe7ee1952 0x64937092 0x86154085 0x2d42d593
09:50:25.807 -> 3fca35e0: 0x007aec05 0x843fced8 0xff5303aa 0x46759aaf 0x2ae4a52e 0xa8a875e3 0xa9b9703d 0xc72f2bc3
09:50:25.807 -> 3fca3600: 0x96ac791f 0x7478e680 0x9c3b0692 0x170ead95 0xd12f7419 0xd64ca566 0x5fcc8794 0x97a13b28
09:50:25.807 -> 3fca3620: 0xa8c589ff 0x639a8e93 0x46e4e1db 0x3d00137c 0x1bfe0d8e 0x8784f2db 0x5ba91c5e 0x06545ec7
09:50:25.807 -> 3fca3640: 0x4cc39720 0x60db0f9c 0xb61292cd 0xefbfdbe0 0xd2fbdd1f 0xcd3571ca 0x936f82ec 0xbaad5678
09:50:25.807 -> 3fca3660: 0x000000f8 0xabba1234 0x000000ec 0x00000100 0x00000100 0x00000002 0x40384c4a 0x40384740

Any idea what’s happening here?

Hi there,
Use BSP 2.0.8 and it should work.
Check your compiler output and compare with the threads on here, yesterday the same questiion and solution came up.
HTH
GL :slight_smile: PJ
:v:

1 Like

Welcome… PJ is typing now!

do you think ylu could check with seeed or whatever and be able to fix this problem for good? it is redicuious

Yea, like big bold letters that it requires the 2.0.8 BSP to go… LOL
Documentation is key …
:v:
GL :slight_smile: PJ :+1:

If you can point me to the big letters that suggest I’ll gladly admit the mistake.
But so far, I’ve read 2.0.3 or a screenshot and 2.0.X (so no specific version) on another document.

The documentation is confusing, unclear, and the fast I need to rely on forum posts to make the basic example code work is a problem.

1 Like

Hi there,
Well I must say it sounds like the right words, but did you scroll right in the compiler window?
Here it is again, but you need to scroll to see it. There are NO big letters on the info but using the compiler output as a tool to show you what you gave the MCU was good or Garbage.
Almost always the later I find with this stuff.
Do you know how to roll back the BSP that is currently loaded?
(boards tab, pull down the current version and pick the 2.0.8 ) recompile and look at your output did it build with the right one? if so Flash and test.
:v:

The issue is these demo’s are made and the backward compatibility of the NEWER libraries and newer BSP packages sometimes don’t follow that spirit and break stuff. I always make a recommendation to use a BSP closest to the date of the Library’s dev date.

FQBN: esp32:esp32:XIAO_ESP32S3
Using board 'XIAO_ESP32S3' from platform in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8
Using core 'esp32' from platform in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8
Using library TFT_eSPI at version 2.5.23 in folder: D:\Arduino_projects\libraries\TFT_eSPI 
Using library SPI at version 2.0.0 in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8\libraries\SPI 
Using library FS at version 2.0.0 in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8\libraries\FS 
Using library SPIFFS at version 2.0.0 in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8\libraries\SPIFFS 
Using library Wire at version 2.0.0 in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8\libraries\Wire 
Using library RTClib at version 2.1.3 in folder: D:\Arduino_projects\libraries\RTClib 
Using library Adafruit BusIO at version 1.15.0 in folder: D:\Arduino_projects\libraries\Adafruit_BusIO 
Using library WiFi at version 2.0.0 in folder: C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8\libraries\WiFi 
Using library I2C BM8563 RTC at version 1.0.4 in folder: D:\Arduino_projects\libraries\I2C_BM8563_RTC 
"C:\\Users\\Dude\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32s3-elf-gcc\\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32s3-elf-size" -A "C:\\Users\\Dude\\AppData\\Local\\Temp\\arduino\\sketches\\20A0B1C3DA8FE222E73EFD3C122C752F/sketch_feb18a.ino.elf"
Sketch uses 767261 bytes (22%) of program storage space. Maximum is 3342336 bytes.
Global variables use 45156 bytes (13%) of dynamic memory, leaving 282524 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1/esptool.exe" --chip esp32s3 --port "COM23" --baud 921600  --before default_reset --after hard_reset write_flash  -z --flash_mode dio --flash_freq 80m --flash_size 8MB 0x0 "C:\Users\Dude\AppData\Local\Temp\arduino\sketches\20A0B1C3DA8FE222E73EFD3C122C752F/sketch_feb18a.ino.bootloader.bin" 0x8000 "C:\Users\Dude\AppData\Local\Temp\arduino\sketches\20A0B1C3DA8FE222E73EFD3C122C752F/sketch_feb18a.ino.partitions.bin" 0xe000 "C:\Users\Dude\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.8/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\Dude\AppData\Local\Temp\arduino\sketches\20A0B1C3DA8FE222E73EFD3C122C752F/sketch_feb18a.ino.bin" 
esptool.py v4.5.1
Serial port COM23
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 84:fc:e6:6a:d0:f0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000cbfff...
Compressed 15040 bytes to 10333...
Writing at 0x00000000... (100 %)
Wrote 15040 bytes (10333 compressed) at 0x00000000 in 0.2 seconds (effective 491.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 566.0 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 792.0 kbit/s)...
Hash of data verified.
Compressed 767632 bytes to 497696...
Writing at 0x00010000... (3 %)
Writing at 0x000194dd... (6 %)
Writing at 0x00024b70... (9 %)
Writing at 0x00031004... (12 %)
Writing at 0x000368ff... (16 %)
Writing at 0x0003bf39... (19 %)
Writing at 0x00041b0b... (22 %)
Writing at 0x000470bd... (25 %)
Writing at 0x0004c47a... (29 %)
Writing at 0x00051568... (32 %)
Writing at 0x00056356... (35 %)
Writing at 0x0005b29a... (38 %)
Writing at 0x000600e4... (41 %)
Writing at 0x00065220... (45 %)
Writing at 0x0006a22e... (48 %)
Writing at 0x0006f7a9... (51 %)
Writing at 0x00075247... (54 %)
Writing at 0x00079fcb... (58 %)
Writing at 0x0007f0fd... (61 %)
Writing at 0x00083ff5... (64 %)
Writing at 0x0008949f... (67 %)
Writing at 0x0008e9c1... (70 %)
Writing at 0x000945a9... (74 %)
Writing at 0x00099c83... (77 %)
Writing at 0x0009f2f3... (80 %)
Writing at 0x000a77b9... (83 %)
Writing at 0x000afe79... (87 %)
Writing at 0x000b5548... (90 %)
Writing at 0x000bdf3a... (93 %)
Writing at 0x000c378c... (96 %)
Writing at 0x000c9258... (100 %)
Wrote 767632 bytes (497696 compressed) at 0x00010000 in 5.6 seconds (effective 1102.2 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

it’s the second two lines in the output , After Board and Core.
GL :slight_smile: PJ
:+1:

And did you know?
what are the results (output to serial port) of the edits you made to the eTFT.spi configuration files.
if they are correct or if you even did the edit?
The author thought of that and included. “READ_USER_SETUP.ino”
You run this and it tells you what it thinks you set it for. Couldn’t be easier to diagnose.

HTH
GL :slight_smile: PJ :v: