Skip to content

Stuck on Initial Setup - Steps 2-7 Not Loading #3611

@nicmela

Description

@nicmela

The Problem

Hi,

I recently flashed the stable version of AI-on-the-edge-device onto a brand-new ESP32-CAM using the web installer. After setting up the SSID and password, the device successfully connects to Wi-Fi, obtains an IP address, and I can access it via the browser.

Upon first access, I reach the Initial Setup page. When I click "Next step", Step 1/7 loads correctly, the LED turns on, and I can see the live stream from the camera.

However, from this point onwards, clicking any button (Next step, Abort setup, or Restart) always redirects me back to the welcome page with the full list of setup steps. The progress bar increases until it turns fully blue, but nothing actually happens—steps 2 to 7 do not load, and the setup process cannot be completed. Even clicking "Abort Setup Mode" does not move past step 7.

I've attached the device log from startup.

Does anyone have an idea why this might be happening?

Thanks!

Version

15.7.0

Logfile

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_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:0x3fff0030,len:7664
load:0x40078000,len:15360
load:0x40080400,len:3744
entry 0x4008067c
I (27) boot: ESP-IDF 4.3.2 2nd stage bootloader
I (27) boot: compile time 20:02:47
I (27) boot: chip revision: 1
I (30) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (37) boot.esp32: SPI Speed      : 40MHz
I (41) boot.esp32: SPI Mode       : DIO
I (46) boot.esp32: SPI Flash Size : 4MB
I (51) boot: Enabling RNG early entropy source...
I (56) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (67) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (74) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (82) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (89) boot:  3 ota_0            OTA app          00 10 00010000 001db000
I (97) boot:  4 ota_1            OTA app          00 11 001f0000 001db000
I (104) boot: End of partition table
I (109) boot_comm: chip revision: 1, min. application chip revision: 0
I (116) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=40014h (262164) map
I (225) esp_image: segment 1: paddr=0005003c vaddr=3ffb0000 size=040e8h ( 16616) load
I (232) esp_image: segment 2: paddr=0005412c vaddr=40080000 size=0beech ( 48876) load
I (253) esp_image: segment 3: paddr=00060020 vaddr=400d0020 size=1100f4h (1114356) map
I (680) esp_image: segment 4: paddr=0017011c vaddr=4008beec size=0e354h ( 58196) load
I (718) boot: Loaded app from partition at offset 0x10000
I (718) boot: Disabling RNG early entropy source...
I (730) cpu_start: Multicore app
I (730) quad_psram: This chip is ESP32-D0WD
I (730) esp_psram: Found 8MB PSRAM device
I (730) esp_psram: Speed: 40MHz
I (734) esp_psram: PSRAM initialized, cache is in low/high (2-core) mode.
W (741) esp_psram: Virtual address not enough for PSRAM, map as much as we can. 4MB is mapped
I (749) cpu_start: Pro cpu up.
I (752) cpu_start: Starting app cpu, entry point is 0x40082e0c
I (0) cpu_start: App cpu up.
I (1633) esp_psram: SPI SRAM memory test OK
I (1642) cpu_start: Pro cpu start user code
I (1642) cpu_start: cpu freq: 160000000 Hz
I (1642) cpu_start: Application information:
I (1643) cpu_start: Project name:     AI-on-the-edge
I (1647) cpu_start: App version:      v15.7.0
I (1651) cpu_start: Compile time:     Feb 17 2024 00:03:24
I (1657) cpu_start: ELF file SHA256:  71b36fda6e4066fa...
I (1662) cpu_start: ESP-IDF:          5.1.2
I (1666) cpu_start: Min chip rev:     v0.0
I (1669) cpu_start: Max chip rev:     v3.99 
I (1673) cpu_start: Chip rev:         v1.0
I (1678) heap_init: Initializing. RAM available for dynamic allocation:
I (1684) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (1689) heap_init: At 3FFBC688 len 00023978 (142 KiB): DRAM
I (1694) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1700) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1705) heap_init: At 4009A240 len 00005DC0 (23 KiB): IRAM
I (1711) esp_psram: Adding pool of 4082K of PSRAM memory to heap allocator
I (1719) spi_flash: detected chip: generic
I (1721) spi_flash: flash io: dio
I (1736) app_start: Starting scheduler on CPU0
I (1736) app_start: Starting scheduler on CPU1
I (1736) main_task: Started on CPU0
I (1746) esp_psram: Reserving pool of 40K of internal memory for DMA/internal allocations
I (1746) main_task: Calling app_main()
I (1746) MAIN: 



================ Start app_main =================
I (1866) MAIN: =================================================
I (1876) MAIN: ==================== Start ======================
I (1886) MAIN: =================================================
I (1886) MAIN: PSRAM size: 8388608 byte (8MB / 64MBit)
I (1896) MAIN: Total heap: 4380199 byte
I (1896) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (3906) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2 
I (3906) cam_hal: cam init ok
I (3906) sccb: pin_sda 26 pin_scl 27
I (3906) sccb: sccb_i2c_port=1
I (3906) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (3946) camera: Detected camera at address=0x30
I (3946) camera: Detected OV2640 camera
I (3946) camera: Camera PID=0x26 VER=0x42 MIDL=0x7f MIDH=0xa2
I (4026) cam_hal: buffer_size: 32768, half_buffer_size: 4096, node_buffer_size: 2048, node_cnt: 16, total_cnt: 15
I (4026) cam_hal: Allocating 61440 Byte frame buffer in PSRAM
I (4036) cam_hal: cam config ok
I (4036) ov2640: Set PLL: clk_2x: 0, clk_div: 0, pclk_auto: 0, pclk_div: 8
I (6116) MAIN: Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
I (6116) SDCARD: Basic R/W check started...
I (6136) SDCARD: Basic R/W check successful
I (6186) SNTP: TimeServer not defined, using default: pool.ntp.org
I (6186) SNTP: Configuring NTP Client...
I (6196) SNTP: Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
I (6206) SNTP: time zone: +0100 Delta to UTC: 3600 seconds
I (6206) SNTP: The local time is unknown, starting with 1970-01-01 01:00:04
I (6216) SNTP: Once the NTP server provides a time, we will switch to that one
I (6236) MAIN: CPU frequency: 160 MHz
I (6246) OTA: Start CheckOTAUpdateCheck...
I (6256) OTA: SHA-256 for the partition table: : 9d4a2809ae90fb20709a8ca3dd3ac3462e1e73286bcd31b689060c91de06fa3a
I (6276) OTA: SHA-256 for bootloader: : 4a9573dafac5d5c79c43e5a356568332da3a99dd2e220da6ceeadc96d32708a2
I (6666) OTA: SHA-256 for current firmware: : 9a05b58889422bcde87ba674b3146abea61153f01a9043d02ab6712d64cd4a6f
I (6696) SDCARD: Folder/file presence check started...
I (6716) SDCARD: Folder/file presence check successful
I (6736) MAIN: Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018+), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018+)
I (6746) MAIN: Reset reason: Power-on event (or reset button)
I (6756) WLANINI: SSID: TortaDiMele
I (6766) WLANINI: Password: XXXXXXXX
I (6776) WLANINI: RSSIThreshold: -75
I (6786) MAIN: WLAN config loaded, init WIFI...
I (6796) WIFI: Automatic interface config --> Use DHCP service
I (6806) wifi:wifi driver task: 3ffcfe98, prio:23, stack:6144, core=0
I (6816) wifi:wifi firmware version: 91b9630
I (6816) wifi:wifi certification version: v7.0
I (6816) wifi:config NVS flash: enabled
I (6826) wifi:config nano formating: enabled
I (6826) wifi:Init data frame dynamic rx buffer num: 16
I (6826) wifi:Init static rx mgmt buffer num: 5
I (6836) wifi:Init management short buffer num: 32
I (6836) wifi:Init static tx buffer num: 16
I (6846) wifi:Init tx cache buffer num: 16
I (6846) wifi:Init static rx buffer size: 1600
I (6846) wifi:Init static rx buffer num: 16
I (6856) wifi:Init dynamic rx buffer num: 16
I (6856) wifi_init: rx ba win: 16
I (6866) wifi_init: tcpip mbox: 32
I (6866) wifi_init: udp mbox: 6
I (6866) wifi_init: tcp mbox: 6
I (6866) wifi_init: tcp tx win: 5744
I (6876) wifi_init: tcp rx win: 5744
I (6876) wifi_init: tcp mss: 1440
I (6876) wifi_init: WiFi/LWIP prefer SPIRAM
I (6886) wifi_init: WiFi IRAM OP enabled
I (6886) wifi_init: WiFi RX IRAM OP enabled
I (6896) phy_init: phy_version 4780,16b31a7,Sep 22 2023,20:42:16
I (6976) wifi:mode : sta (3c:61:05:24:54:bc)
I (6976) wifi:enable tsf
I (6986) WIFI: Set hostname to: watermeter
I (6986) WIFI: Init successful
I (9396) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (9396) wifi:state: init -> auth (b0)
I (9456) wifi:state: auth -> assoc (0)
I (9536) wifi:state: assoc -> run (10)
W (9536) wifi:[ADDBA]rx delba, code:39, delete tid:0
I (9816) wifi:connected with TortaDiMele, aid = 5, channel 6, BW20, bssid = d0:21:f9:e5:57:e9
I (9816) wifi:security: WPA2-PSK, phy: bgn, rssi: -81
I (9826) wifi:pm start, type: 1

I (9826) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (9836) WIFI: Connected to: TortaDiMele, RSSI: -61
I (12956) wifi:<ba-add>idx:0 (ifx:0, d0:21:f9:e5:57:e9), tid:0, ssn:1, winSize:64
I (13336) esp_netif_handlers: sta ip: 192.168.0.60, mask: 255.255.255.0, gw: 192.168.0.1
I (13336) WIFI: Assigned IP: 192.168.0.60
I (26996) MAIN: Device info: CPU cores: 2, Chip revision: 100
I (26996) MAIN: SD card info: Name: asdfg, Capacity: 3840MB, Free: 3706MB
I (29006) MAIN SERVER: Starting server on port: '80'
I (29006) MAIN SERVER: Registering URI handlers
I (29006) MAINCTRL: server_main_flow_task - Registering URI handlers
I (29006) OTA: Registering URI handlers
I (29006) GPIO: start GpioHandler
I (29016) GPIO: register GPIO Uri
I (29016) GPIO: server_GPIO - Registering URI handlers
I (29016) MAIN: Initialization completed successfully
I (29036) main_task: Returned from app_main()
I (29066) ov2640: Set PLL: clk_2x: 0, clk_div: 0, pclk_auto: 0, pclk_div: 8
I (31056) LOGFILE: Set log level to ERROR
I (31066) GPIO: read GPIO config and init GPIO
I (31076) GPIO: GPIO init completed, handler is disabled
I (31086) MAINCTRL: We are in Setup Mode -> Not starting Auto Flow!
I (40666) MAINCTRL: Autostart is not enabled -> Not starting Flow
I (49236) SNTP: =================================================
I (49236) SNTP: ==================== Start ======================
I (49236) SNTP: == Logs before time sync -> log_1970-01-01.txt ==
I (49246) SNTP: Time is synced with NTP Server pool.ntp.org: 2025-03-05 22:56:46
W (62596) httpd_txrx: httpd_sock_err: error in recv : 104
I (100826) CAM: Live stream started

Expected Behavior

No response

Screenshots

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions