Xinyuan-LilyGO / LilyGo-Camera-Series

🔰 Compatible with all TTGO camera products
MIT License
154 stars 54 forks source link

Errors after uploading sketch to T-SIMCAM module #6

Closed fewi closed 1 year ago

fewi commented 1 year ago

Hello I bought a Lilygo T-SIMCAM module and wanted to start with the example sketch pic2cloud without mPCIE card mounted.

After uploading the sketch the ESP throws errors in a loop. I also tried with a simplified class, see below.

I use the platformio.ini from the example:

[platformio]
src_dir = .

[env]
platform = espressif32
framework = arduino
platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3

[env:t-camera-sim]
extends = env
board = esp32s3box
upload_port = COM3
monitor_port = COM3
monitor_speed = 115200
build_flags = -D BOARD_HAS_PSRAM
              -D CAMERA_MODEL_TTGO_T_CAM_SIM
              -D CORE_DEBUG_LEVEL=3
              -D TINY_GSM_MODEM_SIM7600
              -D ARDUINO_USB_MODE=1
              -D ARDUINO_USB_CDC_ON_BOOT=1
              -D LOGGING

lib_deps = https://github.com/vshymanskyy/TinyGSM.git
           https://github.com/bblanchon/ArduinoJson.git
           arduino-libraries/ArduinoHttpClient @ 0.4.0
           https://github.com/knolleary/pubsubclient.git

; board_build.partitions=default_8MB.csv
board_build.partitions=default_8MB.csv
board_build.f_cpu = 240000000L
board_build.arduino.memory_type = qspi_opi
board_build.flash_freq=80m
board_build.flash_size =16MB
board_build.flash_mode = dio
board_build.boot=qio
board_build.flash_type = qspi
board_build.psram_type = opi
board_build.memory_type = qspi_opi
board_build.boot_freq = 80m

And this simple main class:

#include <Arduino.h>

void setup() {
    Serial.begin(115200);
}

void loop() {
    Serial.println("In Loop");
    delay(10000);
}

Errors are following:

Building in release mode
Retrieving maximum program size .pio\build\t-camera-sim\firmware.elf
Checking size .pio\build\t-camera-sim\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   4.0% (used 13060 bytes from 327680 bytes)
Flash: [=         ]   6.4% (used 215217 bytes from 3342336 bytes)
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Using manually specified: COM3
Uploading .pio\build\t-camera-sim\firmware.bin
esptool.py v4.2.1
Serial port COM3
Connecting...
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 68:b6:b3:20:a6:70
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 0x00044fff...
Warning: Image file at 0x0 is protected with a hash checksum, so not changing the flash size setting. Use the --flash_size=keep option instead of --flash_size=16MB in order to remove this warning, or use the --dont-append-digest option for the elf2image command in order to generate an image file without a hash checksum
Compressed 13824 bytes to 9619...
Writing at 0x00000000... (100 %)
Wrote 13824 bytes (9619 compressed) at 0x00000000 in 0.3 seconds (effective 349.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.1 seconds (effective 345.4 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 484.3 kbit/s)...
Hash of data verified.
Compressed 215600 bytes to 118587...
Writing at 0x00010000... (12 %)
Writing at 0x0001cd66... (25 %)
Writing at 0x000224ff... (37 %)
Writing at 0x000279c5... (50 %)
Writing at 0x0002cebd... (62 %)
Writing at 0x00035769... (75 %)
Writing at 0x0003d7b2... (87 %)
Writing at 0x0004318e... (100 %)
Wrote 215600 bytes (118587 compressed) at 0x00010000 in 2.4 seconds (effective 712.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
======================================================================================================================================= [SUCCESS] Took 6.49 seconds =======================================================================================================================================
--- Terminal on COM3 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x403bb0ce
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x39c
load:0x403b6000,len:0x9a4
load:0x403ba000,len:0x2868
entry 0x403b61c0
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x2a (SPI_FAST_FLASH_BOOT)
Saved PC:0x403bb0ce
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x39c
load:0x403b6000,len:0x9a4
load:0x403ba000,len:0x2868
entry 0x403b61c0
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x2a (SPI_FAST_FLASH_BOOT)

Can someone help? I've never worked with an ESP32-S3

Thank you very much!

lbuque commented 1 year ago
[platformio]
src_dir = .

[env]
platform = espressif32
framework = arduino
platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3

[env:t-camera-sim]
extends = env
board = esp32s3box
upload_port = COM3
monitor_port = COM3
monitor_speed = 115200
build_flags = -D BOARD_HAS_PSRAM
              -D CAMERA_MODEL_TTGO_T_CAM_SIM
              -D CORE_DEBUG_LEVEL=3
              -D TINY_GSM_MODEM_SIM7600
              -D ARDUINO_USB_MODE=1
              -D ARDUINO_USB_CDC_ON_BOOT=1
              -D LOGGING

lib_deps = https://github.com/vshymanskyy/TinyGSM.git
           https://github.com/bblanchon/ArduinoJson.git
           arduino-libraries/ArduinoHttpClient @ 0.4.0
           https://github.com/knolleary/pubsubclient.git

board_build.arduino.memory_type = qspi_opi
fewi commented 1 year ago

thx