LilyGO T-Camera S3

I can’t find this board here: Boards — PlatformIO latest documentation
Does anyone know what is the correct board to put in the platformio.ini?

Thanks

The link leads to the list of all available boards.
Which board do you mean exactly?

My fault, I didn’t see the title on my phone… :man_facepalming:

This board is based on an ESP32-S3 N16R8
So these settings should match the board:

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino

board_build.arduino.memory_type = qio_opi
board_build.flash_mode = qio
board_build.psram_type = opi
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_build.partitions = default_16MB.csv
board_build.extra_flags = 
  -DBOARD_HAS_PSRAM
1 Like

this is my platformio.ini
[env:lilygo-t-camera-s3_app]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
upload_speed = 921600
monitor_speed = 115200
lib_deps =
bblanchon/ArduinoJson
board_build.arduino.memory_type = qio_opi
board_build.flash_mode = qio
board_build.psram_type = opi
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_build.partitions = default_16MB.csv
board_build.extra_flags =
board_build.embed_txtfiles = sdkconfig.defaults
build_flags =
-D CORE_DEBUG_LEVEL=5
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
-I include
-I lib/QRCodeReaderMM
-D BOARD_HAS_PSRAM

when i run app that use quirc to decode qrcodes i’ve this crash:
ERROR A stack overflow in task loopTask has been detected.

Backtrace: 0x40377ea2:0x3fce8660 0x4037d401:0x3fce8680 0x40380852:0x3fce86a0 0x4037f054:0x3fce8720 0x4037d4b8:0x3fce8750 0x4037d4ae:0x00000000 |<-CORRUPTED

Some help ? :slight_smile:

How about a simple “Hello world” sketch?
Does it crash, too?

My project works perfectly, it starts by connecting to wifi, gets an ip from my dhcp, connects to my backend and registers the device, opens the camera and acquires frames, then when it passes them to the quirc library for QR-Code decoding it crashes.
I’m trying to modify the quirc library with ChatGPT but so far without results

Other people with same issue: Stack overflow error on ESP32 · Issue #131 · dlbeer/quirc · GitHub

The quirc library was not made specifically for ESP32.

Try the ESP32QRCodeReader library instead:

Also with alvarowolfx/ESP32QRCodeReader i’ve same crash :anguished:
Also the this example crash on my two boards: PlatformIO Registry
I’m looking for a debug solution but i don’t understand which drive i’ve to use on my Mac and this T-Camera S3 device…

It looks like that mhaberler knows more about the internals of the library and the stack issue. He also mentioned that he will provide a pull request on that issue - Stack overflow error on ESP32 · Issue #131 · dlbeer/quirc · GitHub

Yes i’ve read it and also tested his pr code but it does’nt works for me
Do you know how to debug in my case ?

To debug I would suggest to use the ESP32 Exeception decoder. So you should get a trace where the error occurs.

monitor_filters = esp32_exception_decoder

You could also use the ESP32-S3 built-in JTAG debugger - See How to use JTAG built-in debugger of the ESP32-S3 in PLATFORMIO