geeksville / TenDollarWebcam

A small example app for ESP32 + Micro-RTSP
MIT License
389 stars 59 forks source link

issues loading bootloader #15

Open spattinson opened 4 years ago

spattinson commented 4 years ago

I was getting this error:

rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
entry 0x400806a8
ets Jun  8 2016 00:22:57

I changed some platformio options:

[env:esp32cam]
platform = espressif32
board = esp32cam
framework = arduino
upload_port = /dev/ttyUSB2
upload_speed = 460800
monitor_port = /dev/ttyUSB2
monitor_speed = 115200
board_build.flash_mode = qio
build_flags =
    -DCORE_DEBUG_LEVEL=0
    -DBOARD_HAS_PSRAM
    -mfix-esp32-psram-cache-issue
board_build.partitions = huge_app.csv

lib_deps =
  ;file:///home/kevinh/development/devcam/Micro-RTSP
  Micro-RTSP@>=0.1.6
  https://github.com/geeksville/AutoWifi.git

These were basically copied from a pio build of the espressif camera code. I just wanted to see if pio could build a working camera from anything. IDK if the changes to flash mode, build flags, or partitions is what fixed it. The board name "esp32cam" is the correct one for the AIthinker version, but I dont think it makes much difference. From what I understand this project may not be using psram, which is why the size is limited to svga. I am using 1.9.0 framework. Now I just need to get smartconfig working to test it further.

Edit: I think it may be flash mode that fix it. Though it could be something wrong with my hardware or environment because I try to flash esphome cam firmware and that failed in same way. Anyhow I don't have time to test further right now, going on holiday. Just put this up in case it helps someone.