Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp-idf 4.3 + latest code(56ee43e) constantly reboot #16

Closed
lida2003 opened this issue Jan 20, 2023 · 14 comments
Closed

esp-idf 4.3 + latest code(56ee43e) constantly reboot #16

lida2003 opened this issue Jan 20, 2023 · 14 comments

Comments

@lida2003
Copy link
Contributor

lida2003 commented Jan 20, 2023

I use AI-Thinker module with 2MB PSRAM(which should be causion). The code constantly rebooted, any clues?

$ git log -n 1
commit 56ee43ec5ea813809fc1a9da1cc644559b4ea975 (HEAD -> release/v4.3, origin/release/v4.3)
Merge: 0d48889e81 b44da528db
Author: Jiang Jiang Jian <[email protected]>
Date:   Tue Jan 17 19:56:03 2023 +0800

    Merge branch 'bugfix/sta_add_config_for_wpa3_transition_disable_v4.3' into 'release/v4.3'

    esp_wifi:Add wifi station config for enabling transition_disbale feature

    See merge request espressif/esp-idf!21332

$ git log -n 1
commit 9610792f8544361bac21f774c7700551f9bcfc6e (HEAD -> main, origin/main, origin/HEAD)
Author: jeanlemotan <[email protected]>
Date:   Thu Apr 29 20:40:40 2021 +0200

    Update README.md

Just flash and monitor the logs:

$ idf.py -p /dev/ttyUSB0 flash monitor
Executing action: flash
Running ninja in directory /home/daniel/Work/esp32-cam-fpv/air_firmware/build
Executing "ninja flash"...
[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cd /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esptool_py && /usr/bin/.../home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esptool_py/run_serial_tool.cmake
esptool.py esp32 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 air_firmware.bin
esptool.py v3.3.2-dev
Serial port /dev/ttyUSB0


Connecting....
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: e0:5a:1b:6b:d5:74
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x000adfff...
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 231.8 kbit/s)...
Hash of data verified.
Compressed 26192 bytes to 16369...
Writing at 0x00001000... (100 %)
Wrote 26192 bytes (16369 compressed) at 0x00001000 in 1.2 seconds (effective 172.4 kbit/s)...
Hash of data verified.
Compressed 646352 bytes to 422177...
Writing at 0x00010000... (3 %)
Writing at 0x0001ac67... (7 %)
Writing at 0x00026bac... (11 %)
Writing at 0x0002c454... (15 %)
Writing at 0x000319f2... (19 %)
Writing at 0x00037198... (23 %)
Writing at 0x0003c3fa... (26 %)
Writing at 0x0004198c... (30 %)
Writing at 0x00046e7d... (34 %)
Writing at 0x0004c4bd... (38 %)
Writing at 0x00051874... (42 %)
Writing at 0x00056bb1... (46 %)
Writing at 0x0005bcf3... (50 %)
Writing at 0x00061478... (53 %)
Writing at 0x00066c07... (57 %)
Writing at 0x0006c845... (61 %)
Writing at 0x0007234f... (65 %)
Writing at 0x00077844... (69 %)
Writing at 0x0007cb82... (73 %)
Writing at 0x00081f68... (76 %)
Writing at 0x000872b1... (80 %)
Writing at 0x0009020c... (84 %)
Writing at 0x00098fc0... (88 %)
Writing at 0x0009eaee... (92 %)
Writing at 0x000a44df... (96 %)
Writing at 0x000a9a54... (100 %)
Wrote 646352 bytes (422177 compressed) at 0x00010000 in 10.2 seconds (effective 508.5 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Executing action: monitor
Running idf_monitor in directory /home/daniel/Work/esp32-cam-fpv/air_firmware
Executing "/home/daniel/.espressif/python_env/idf4.3_py3.8_env/bin/python /home/daniel/Work/esp-sdk/esp-idf-v4.3/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- /home/daniel/Work/esp32-cam-fpv/air_firmware/build/air_firmware.elf -m '/home/daniel/.espressif/python_env/idf4.3_py3.8_env/bin/python' '/home/daniel/Work/esp-sdk/esp-idf-v4.3/tools/idf.py' '-p' '/dev/ttyUSB0'"...
/home/daniel/Work/esp-sdk/esp-idf-v4.3/tools/idf_monitor.py:518: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
  if StrictVersion(serial.VERSION) < StrictVersion('3.3.0'):
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒x▒▒xxxx▒x▒xxx▒▒▒▒x▒x▒x▒▒xets Jul 29 2019 12:21:46

rst:ets Jul 29 2019 12:21:46

rst:ets Jul 29 2019 12:21:46

rst:ets Jul 29 2019 12:21:46

rst:ets Jul 29 2019 12:21:46

rst:ets Jul 29 2019 12:21:46

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:1
load:0x3fff0030,len:6532
load:0x40078000,len:15292
load:0x40080400,len:4276
0x40080400: _init at ??:?

entry 0x4008067c
I (27) boot: ESP-IDF v4.3.4-332-g56ee43ec5e 2nd stage bootloader
I (27) boot: compile time 17:28:14
I (27) boot: chip revision: 3
I (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (39) qio_mode: Enabling default flash chip QIO
E (44) qio_mode: Failed to set QIE bit, not enabling QIO mode
I (50) boot.esp32: SPI Speed      : 80MHz
I (55) boot.esp32: SPI Mode       : DIO
I (59) boot.esp32: SPI Flash Size : 2MB
I (64) boot: Enabling RNG early entropy source...
I (69) boot: Partition Table:
I (73) boot: ## Label            Usage          Type ST Offset   Length
I (80) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (88) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (95) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (107) boot_comm: chip revision: 3, min. application chip revision: 0
I (114) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=114d4h ( 70868) map
I (144) esp_image: segment 1: paddr=000214fc vaddr=3ffb0000 size=03b10h ( 15120) load
I (149) esp_image: segment 2: paddr=00025014 vaddr=40080000 size=0b004h ( 45060) load
I (165) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=6c850h (444496) map
I (298) esp_image: segment 4: paddr=0009c878 vaddr=4008b004 size=11434h ( 70708) load
I (337) boot: Loaded app from partition at offset 0x10000
I (337) boot: Disabling RNG early entropy source...
I (348) psram: This chip is ESP32-D0WD
I (349) spiram: Found 16MBit SPI RAM device
I (349) spiram: SPI RAM mode: flash 80m sram 80m
I (354) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (361) cpu_start: Pro cpu up.
I (365) cpu_start: Starting app cpu, entry point is 0x4008134c
0x4008134c: call_start_cpu1 at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/port/cpu_start.c:150

I (0) cpu_start: App cpu up.
I (623) spiram: SPI SRAM memory test OK
I (630) cpu_start: Pro cpu start user code
I (630) cpu_start: cpu freq: 240000000
I (630) cpu_start: Application information:
I (633) cpu_start: Project name:     air_firmware
I (639) cpu_start: App version:      9610792-dirty
I (644) cpu_start: Compile time:     Jan 20 2023 17:28:02
I (650) cpu_start: ELF file SHA256:  8bacc37f0d04e4bf...
I (656) cpu_start: ESP-IDF:          v4.3.4-332-g56ee43ec5e
I (663) heap_init: Initializing. RAM available for dynamic allocation:
I (670) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (676) heap_init: At 3FFB83C8 len 00027C38 (159 KiB): DRAM
I (682) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (688) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (695) heap_init: At 4009C438 len 00003BC8 (14 KiB): IRAM
I (701) spiram: Adding pool of 2048K of external SPI memory to heap allocator
I (709) spi_flash: detected chip: gd
I (713) spi_flash: flash io: qio
I (718) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Initializing...
MEMORY at start:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2094999 allocated 0 min_free 2094999
    largest_free_block 2064384 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 131040 allocated 29560 min_free 130104
    largest_free_block 129024 alloc_blocks 30 free_blocks 1 total_blocks 31
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2350651 allocated 33692 min_free 2349715 largest_free_block 2064384
I (925) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
MEMORY after fec:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 41000 allocated 119412 min_free 41000
    largest_free_block 40960 alloc_blocks 77 free_blocks 1 total_blocks 78
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2194051 allocated 189080 min_free 2194051 largest_free_block 1998848
W (999) wifi:wifi osi_nvs_open fail ret=4353

I (1003) wifi_init: tcpip mbox: 32
I (1007) wifi_init: udp mbox: 6
I (1011) wifi_init: tcp mbox: 6
I (1015) wifi_init: tcp tx win: 5744
I (1019) wifi_init: tcp rx win: 5744
I (1023) wifi_init: tcp mss: 1440
I (1027) wifi_init: WiFi IRAM OP enabled
I (1032) wifi_init: WiFi RX IRAM OP enabled
I (1037) wifi_init: WiFi SLP IRAM OP enabled
MEMORY After WIFI:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 36852 allocated 123528 min_free 36772
    largest_free_block 35840 alloc_blocks 85 free_blocks 2 total_blocks 87
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2189903 allocated 193196 min_free 2189823 largest_free_block 1998848
Initialized
I (1118) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1128) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1137) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1146) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1156) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1165) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1174) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1184) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1193) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1203) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1212) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1222) sccb: pin_sda 26 pin_scl 27

I (1226) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1368) camera: Detected OV2640 camera
I (1369) camera: Line width (for DMA): 6400 bytes
I (1369) camera: DMA buffer size: 3200, DMA buffers per line: 2
I (1374) camera: DMA buffer count: 8
I (1378) camera: DMA buffer total: 25600 bytes
I (1383) camera: Allocating DMA buffer #0, size=3200
I (1389) camera: Allocating DMA buffer #1, size=3200
I (1394) camera: Allocating DMA buffer #2, size=3200
I (1400) camera: Allocating DMA buffer #3, size=3200
I (1406) camera: Allocating DMA buffer #4, size=3200
I (1411) camera: Allocating DMA buffer #5, size=3200
I (1417) camera: Allocating DMA buffer #6, size=3200
I (1423) camera: Allocating DMA buffer #7, size=3200
MEMORY Before Loop:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 860 allocated 159388 min_free 844
    largest_free_block 592 alloc_blocks 118 free_blocks 3 total_blocks 121
  At 0x3ffe0440 len 15072 free 7792 allocated 5120 min_free 7792
E (1590) wifi:    largest_free_block 7680 alloc_blocks 2 free_blocks 1 total_blocks 3
  At 0x3ffe4350 len 113840 free 103492 allocated 8192 min_free 103492
    largest_free_block 102400 alloc_blocks 1 free_blocks 1 total_blocks 2
invalid interface 0
  Totals:
E (1647) wifi:invalid interface 0
    free 2140587 allocated 242368 min_free 2140571 largest_free_block 1998848
E (WL1AN 65S: 01), R: 0, E : 2, D: 0, % : 99 || FwifPS: 3, D:i:invalid  235089 || D:i 0, E: 0
nterface 0
E (1668) wifi:invalid interface 0
E (1671) wifi:invalid interface 0
E (1674) wifi:invalid interface 0
E (1677) wifi:invalid interface 0
E (1680) wifi:invalid interface 0
E (1683) wifi:invalid interface 0
E (1686) wifi:invalid interface 0
E (1689) wifi:invalid interface 0
E (1692) wifi:invalid interface 0
E (1695) wifi:invalid interface 0
E (1698) wifi:invalid interface 0
E (1701) wifi:invalid interface 0
E (1704) wifi:invalid interface 0
E (1707) wifi:invalid interface 0
E (1710) wifi:invalid interface 0
E (1713) wifi:invalid interface 0
E (1716) wifi:invalid interface 0
E (1719) wifi:invalid interface 0
E (1722) wifi:invalid interface 0
E (1725) wifi:invalid interface 0
E (1728) wifi:invalid interface 0
E (1731) wifi:invalid interface 0
E (1734) wifi:invalid interface 0
E (1737) wifi:invalid interface 0
E (1740) wifi:invalid interface 0
E (1744) wifi:invalid interface 0
E (1747) wifi:invalid interface 0
E (1750) wifi:invalid interface 0
E (1753) wifi:invalid interface 0
E (1756) wifi:invalid interface 0
E (1759) wifi:invalid interface 0
E (1762) wifi:invalid interface 0
E (1765) wifi:invalid interface 0
E (1768) wifi:invalid interface 0
E (1771) wifi:invalid interface 0
E (1774) wifi:invalid interface 0
E (1777) wifi:invalid interface 0
E (1780) wifi:invalid interface 0
E (1783) wifi:invalid interface 0
E (1786) wifi:invalid interface 0
E (1789) wifi:invalid interface 0
E (1792) wifi:invalid interface 0
E (1795) wifi:invalid interface 0
E (1798) wifi:invalid interface 0
E (1801) wifi:invalid interface 0
E (1804) wifi:invalid interface 0
E (1807) wifi:invalid interface 0
E (1810) wifi:invalid interface 0
E (1813) wifi:invalid interface 0
E (1816) wifi:invalid interface 0
E (1819) wifi:invalid interface 0
E (1823) wifi:invalid interface 0
E (1826) wifi:invalid interface 0
E (1829) wifi:invalid interface 0
E (1832) wifi:invalid interface 0
E (1835) wifi:invalid interface 0
E (1838) wifi:invalid interface 0
E (1841) wifi:invalid interface 0
E (1844) wifi:invalid interface 0
E (1847) wifi:invalid interface 0
E (1850) wifi:invalid interface 0
E (1853) wifi:invalid interface 0
E (1856) wifi:invalid interface 0
E (1859) wifi:invalid interface 0
E (1862) wifi:invalid interface 0
E (1865) wifi:invalid interface 0
E (1868) wifi:invalid interface 0
E (1871) wifi:invalid interface 0
E (1874) wifi:invalid interface 0
E (1877) wifi:invalid interface 0
E (1880) wifi:invalid interface 0
E (1883) wifi:invalid interface 0
E (1886) wifi:invalid interface 0
E (1889) wifi:invalid interface 0
E (1892) wifi:invalid interface 0
E (1895) wifi:invalid interface 0
E (1898) wifi:invalid interface 0

***ERROR*** A stack overflow in task Wifi TX has been detected.

Backtrace:0x400819a5:0x3ffde740 0x4008e905:0x3ffde760 0x40091915:0x3ffde780 0x400901c9:0x3ffde800 0x4008ec2c:0x3ffde830 0x4008ebde:0x00000000 |<-CORRUPTED
0x400819a5: panic_abort at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/panic.c:404

0x4008e905: esp_system_abort at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/system_api.c:112

0x40091915: vApplicationStackOverflowHook at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/freertos/port/xtensa/port.c:490

0x400901c9: vTaskSwitchContext at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/freertos/tasks.c:3370

0x4008ec2c: _frxt_dispatch at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/freertos/port/xtensa/portasm.S:432

0x4008ebde: _frxt_int_exit at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/freertos/port/xtensa/portasm.S:231



ELF file SHA256: 8bacc37f0d04e4bf

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:1
load:0x3fff0030,len:6532
load:0x40078000,len:15292
load:0x40080400,len:4276
0x40080400: _init at ??:?

entry 0x4008067c
I (27) boot: ESP-IDF v4.3.4-332-g56ee43ec5e 2nd stage bootloader
I (27) boot: compile time 17:28:14
I (27) boot: chip revision: 3
I (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (41) qio_mode: Enabling default flash chip QIO
E (44) qio_mode: Failed to set QIE bit, not enabling QIO mode
I (50) boot.esp32: SPI Speed      : 80MHz
I (55) boot.esp32: SPI Mode       : DIO
I (59) boot.esp32: SPI Flash Size : 2MB
I (64) boot: Enabling RNG early entropy source...
I (69) boot: Partition Table:
I (73) boot: ## Label            Usage          Type ST Offset   Length
I (80) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (88) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (95) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (107) boot_comm: chip revision: 3, min. application chip revision: 0
I (114) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=114d4h ( 70868) map
I (144) esp_image: segment 1: paddr=000214fc vaddr=3ffb0000 size=03b10h ( 15120) load
I (149) esp_image: segment 2: paddr=00025014 vaddr=40080000 size=0b004h ( 45060) load
I (165) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=6c850h (444496) map
I (298) esp_image: segment 4: paddr=0009c878 vaddr=4008b004 size=11434h ( 70708) load
I (337) boot: Loaded app from partition at offset 0x10000
I (337) boot: Disabling RNG early entropy source...
I (348) psram: This chip is ESP32-D0WD
I (349) spiram: Found 16MBit SPI RAM device
I (349) spiram: SPI RAM mode: flash 80m sram 80m
I (354) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (361) cpu_start: Pro cpu up.
I (365) cpu_start: Starting app cpu, entry point is 0x4008134c
0x4008134c: call_start_cpu1 at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/port/cpu_start.c:150

I (358) cpu_start: App cpu up.
I (622) spiram: SPI SRAM memory test OK
I (630) cpu_start: Pro cpu start user code
I (630) cpu_start: cpu freq: 240000000
I (630) cpu_start: Application information:
I (633) cpu_start: Project name:     air_firmware
I (638) cpu_start: App version:      9610792-dirty
I (644) cpu_start: Compile time:     Jan 20 2023 17:28:02
I (650) cpu_start: ELF file SHA256:  8bacc37f0d04e4bf...
I (656) cpu_start: ESP-IDF:          v4.3.4-332-g56ee43ec5e
I (662) heap_init: Initializing. RAM available for dynamic allocation:
I (669) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (675) heap_init: At 3FFB83C8 len 00027C38 (159 KiB): DRAM
I (682) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (688) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (694) heap_init: At 4009C438 len 00003BC8 (14 KiB): IRAM
I (701) spiram: Adding pool of 2048K of external SPI memory to heap allocator
I (709) spi_flash: detected chip: gd
I (713) spi_flash: flash io: qio
I (718) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Initializing...
MEMORY at start:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2094999 allocated 0 min_free 2094999
    largest_free_block 2064384 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 131040 allocated 29560 min_free 130104
    largest_free_block 129024 alloc_blocks 30 free_blocks 1 total_blocks 31
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2350651 allocated 33692 min_free 2349715 largest_free_block 2064384
I (924) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
MEMORY after fec:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 41000 allocated 119412 min_free 41000
    largest_free_block 40960 alloc_blocks 77 free_blocks 1 total_blocks 78
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2194051 allocated 189080 min_free 2194051 largest_free_block 1998848
W (998) wifi:wifi osi_nvs_open fail ret=4353

I (1002) wifi_init: tcpip mbox: 32
I (1006) wifi_init: udp mbox: 6
I (1010) wifi_init: tcp mbox: 6
I (1014) wifi_init: tcp tx win: 5744
I (1018) wifi_init: tcp rx win: 5744
I (1022) wifi_init: tcp mss: 1440
I (1026) wifi_init: WiFi IRAM OP enabled
I (1031) wifi_init: WiFi RX IRAM OP enabled
I (1036) wifi_init: WiFi SLP IRAM OP enabled
MEMORY After WIFI:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 36852 allocated 123528 min_free 36772
    largest_free_block 35840 alloc_blocks 85 free_blocks 2 total_blocks 87
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2189903 allocated 193196 min_free 2189823 largest_free_block 1998848
Initialized
I (1117) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1127) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1136) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1145) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1155) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1164) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1173) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1183) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1192) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1202) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1211) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1221) sccb: pin_sda 26 pin_scl 27

I (1225) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1367) camera: Detected OV2640 camera
I (1368) camera: Line width (for DMA): 6400 bytes
I (1368) camera: DMA buffer size: 3200, DMA buffers per line: 2
I (1373) camera: DMA buffer count: 8
I (1377) camera: DMA buffer total: 25600 bytes
I (1382) camera: Allocating DMA buffer #0, size=3200
I (1388) camera: Allocating DMA buffer #1, size=3200
I (1393) camera: Allocating DMA buffer #2, size=3200
I (1399) camera: Allocating DMA buffer #3, size=3200
I (1405) camera: Allocating DMA buffer #4, size=3200
I (1410) camera: Allocating DMA buffer #5, size=3200
I (1416) camera: Allocating DMA buffer #6, size=3200
I (1422) camera: Allocating DMA buffer #7, size=3200
MEMORY Before Loop:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
E (1590) wifi:invalid interface 0
E (1598) wifi:  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 860 allocated 159388 min_free 844
invalid interface 0
E (1618) wifi:invalid interface 0
    largest_free_block 592 alloc_blocks 118 free_blocks 3 total_blocks 121
E (1621) wifi:invalid interface 0
  At 0x3ffe0440 len 15072 free 7792 allocated 5120 min_free 7792
    largest_free_block 7680 alloc_blocks 2 free_blocks 1 total_blocks 3
  At 0x3ffe4350 len 113840 free 103492 allocated 8192 min_free 103492
E (1631) wifi:invalid interface 0
    largest_free_block 102400 alloc_blocks 1 free_blocks 1 total_blocks 2
  Totals:
E (1652) wifi:invalid interface 0
    free 2140587 allocated 242368 min_free 2140571 largest_free_block 1998848
E WLAN S: 0, R: 0, E: 6, D: 0(16, % : 99 |62)| FP wiS: 4, D: 146371 fi:|| D: 0, E: inv0
alid interface 0
E (1679) wifi:invalid interface 0
E (1682) wifi:invalid interface 0
E (1685) wifi:invalid interface 0
E (1688) wifi:invalid interface 0
E (1691) wifi:invalid interface 0
E (1694) wifi:invalid interface 0
E (1697) wifi:invalid interface 0
E (1700) wifi:invalid interface 0
E (1703) wifi:invalid interface 0
E (1706) wifi:invalid interface 0
E (1709) wifi:invalid interface 0
E (1712) wifi:invalid interface 0
E (1715) wifi:invalid interface 0
E (1718) wifi:invalid interface 0
E (1721) wifi:invalid interface 0
E (1724) wifi:invalid interface 0
E (1727) wifi:invalid interface 0
E (1730) wifi:invalid interface 0
E (1733) wifi:invalid interface 0
E (1736) wifi:invalid interface 0
E (1739) wifi:invalid interface 0
E (1742) wifi:invalid interface 0
E (1745) wifi:invalid interface 0
E (1748) wifi:invalid interface 0
E (1751) wifi:invalid interface 0
E (1755) wifi:invalid interface 0
E (1758) wifi:invalid interface 0
E (1761) wifi:invalid interface 0
E (1764) wifi:invalid interface 0
E (1767) wifi:invalid interface 0
E (1770) wifi:invalid interface 0
E (1773) wifi:invalid interface 0
E (1776) wifi:invalid interface 0
E (1779) wifi:invalid interface 0
E (1782) wifi:invalid interface 0
E (1785) wifi:invalid interface 0
E (1788) wifi:invalid interface 0
E (1791) wifi:invalid interface 0
E (1794) wifi:invalid interface 0
E (1797) wifi:invalid interface 0
E (1800) wifi:invalid interface 0
E (1803) wifi:invalid interface 0
E (1806) wifi:invalid interface 0
E (1809) wifi:invalid interface 0
E (1812) wifi:invalid interface 0
E (1815) wifi:invalid interface 0
E (1818) wifi:invalid interface 0
E (1821) wifi:invalid interface 0
E (1824) wifi:invalid interface 0
E (1827) wifi:invalid interface 0
E (1830) wifi:invalid interface 0
E (1834) wifi:invalid interface 0
E (1837) wifi:invalid interface 0
E (1840) wifi:invalid interface 0
E (1843) wifi:invalid interface 0
E (1846) wifi:invalid interface 0
E (1849) wifi:invalid interface 0
E (1852) wifi:invalid interface 0
E (1855) wifi:invalid interface 0
E (1858) wifi:invalid interface 0
E (1861) wifi:invalid interface 0
E (1864) wifi:invalid interface 0
E (1867) wifi:invalid interface 0
E (1870) wifi:invalid interface 0
E (1873) wifi:invalid interface 0
E (1876) wifi:invalid interface 0
E (1879) wifi:invalid interface 0
E (1882) wifi:invalid interface 0
E (1885) wifi:invalid interface 0
E (1888) wifi:invalid interface 0
E (1891) wifi:invalid interface 0
E (1894) wifi:invalid interface 0
E (1897) wifi:invalid interface 0
E (1900) wifi:invalid interface 0
E (1903) wifi:invalid interface 0
E (1906) wifi:invalid interface 0
E (1909) wifi:invalid interface 0

***ERROR*** A stack overflow in task Wifi TX has been detected.

Backtrace:0x400819a5:0x3ffde740 0x4008e905:0x3ffde760 0x40091915:0x3ffde780 0x400901c9:0x3ffde800 0x4008ec2c:0x3ffde830 0x4008ebde:0x00000000 |<-CORRUPTED
0x400819a5: panic_abort at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/panic.c:404

0x4008e905: esp_system_abort at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/system_api.c:112

0x40091915: vApplicationStackOverflowHook at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/freertos/port/xtensa/port.c:490

0x400901c9: vTaskSwitchContext at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/freertos/tasks.c:3370

0x4008ec2c: _frxt_dispatch at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/freertos/port/xtensa/portasm.S:432

0x4008ebde: _frxt_int_exit at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/freertos/port/xtensa/portasm.S:231



ELF file SHA256: 8bacc37f0d04e4bf

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:1
load:0x3fff0030,len:6532
load:0x40078000,len:15292
load:0x40080400,len:4276
0x40080400: _init at ??:?

entry 0x4008067c
I (27) boot: ESP-IDF v4.3.4-332-g56ee43ec5e 2nd stage bootloader
I (27) boot: compile time 17:28:14
I (27) boot: chip revision: 3
I (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (41) qio_mode: Enabling default flash chip QIO
E (44) qio_mode: Failed to set QIE bit, not enabling QIO mode
I (50) boot.esp32: SPI Speed      : 80MHz
I (55) boot.esp32: SPI Mode       : DIO
I (59) boot.esp32: SPI Flash Size : 2MB
I (64) boot: Enabling RNG early entropy source...
I (69) boot: Partition Table:
I (73) boot: ## Label            Usage          Type ST Offset   Length
I (80) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (88) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (95) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (107) boot_comm: chip revision: 3, min. application chip revision: 0
I (114) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=114d4h ( 70868) map
I (144) esp_image: segment 1: paddr=000214fc vaddr=3ffb0000 size=03b10h ( 15120) load
I (149) esp_image: segment 2: paddr=00025014 vaddr=40080000 size=0b004h ( 45060) load
I (165) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=6c850h (444496) map
I (298) esp_image: segment 4: paddr=0009c878 vaddr=4008b004 size=11434h ( 70708) load
I (337) boot: Loaded app from partition at offset 0x10000
I (337) boot: Disabling RNG early entropy source...
I (348) psram: This chip is ESP32-D0WD
I (349) spiram: Found 16MBit SPI RAM device
I (349) spiram: SPI RAM mode: flash 80m sram 80m
I (354) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (361) cpu_start: Pro cpu up.
I (365) cpu_start: Starting app cpu, entry point is 0x4008134c
0x4008134c: call_start_cpu1 at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/port/cpu_start.c:150

I (358) cpu_start: App cpu up.
I (622) spiram: SPI SRAM memory test OK
I (630) cpu_start: Pro cpu start user code
I (630) cpu_start: cpu freq: 240000000
I (630) cpu_start: Application information:
I (633) cpu_start: Project name:     air_firmware
I (638) cpu_start: App version:      9610792-dirty
I (644) cpu_start: Compile time:     Jan 20 2023 17:28:02
I (650) cpu_start: ELF file SHA256:  8bacc37f0d04e4bf...
I (656) cpu_start: ESP-IDF:          v4.3.4-332-g56ee43ec5e
I (662) heap_init: Initializing. RAM available for dynamic allocation:
I (669) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (675) heap_init: At 3FFB83C8 len 00027C38 (159 KiB): DRAM
I (682) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (688) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (694) heap_init: At 4009C438 len 00003BC8 (14 KiB): IRAM
I (701) spiram: Adding pool of 2048K of external SPI memory to heap allocator
I (709) spi_flash: detected chip: gd
I (713) spi_flash: flash io: qio
I (718) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Initializing...
MEMORY at start:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2094999 allocated 0 min_free 2094999
    largest_free_block 2064384 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 131040 allocated 29560 min_free 130104
    largest_free_block 129024 alloc_blocks 30 free_blocks 1 total_blocks 31
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2350651 allocated 33692 min_free 2349715 largest_free_block 2064384
I (924) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
MEMORY after fec:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 41000 allocated 119412 min_free 41000
    largest_free_block 40960 alloc_blocks 77 free_blocks 1 total_blocks 78
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2194051 allocated 189080 min_free 2194051 largest_free_block 1998848
W (998) wifi:wifi osi_nvs_open fail ret=4353

I (1002) wifi_init: tcpip mbox: 32
I (1006) wifi_init: udp mbox: 6
I (1010) wifi_init: tcp mbox: 6
I (1014) wifi_init: tcp tx win: 5744
I (1018) wifi_init: tcp rx win: 5744
I (1022) wifi_init: tcp mss: 1440
I (1026) wifi_init: WiFi IRAM OP enabled
I (1031) wifi_init: WiFi RX IRAM OP enabled
I (1036) wifi_init: WiFi SLP IRAM OP enabled
MEMORY After WIFI:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 36852 allocated 123528 min_free 36772
    largest_free_block 35840 alloc_blocks 85 free_blocks 2 total_blocks 87
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2189903 allocated 193196 min_free 2189823 largest_free_block 1998848
Initialized
I (1117) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1127) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1136) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1145) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1155) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1164) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1173) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1183) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1192) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1202) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1211) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1221) sccb: pin_sda 26 pin_scl 27

I (1225) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0

ESP_IDF 4.3 and esp32-cam-fpvn(latest), which might be a little bit different from esp-idf-v4.3-beta1.

And the default build sdkconfig is quite different with repo's sdkconfig(which should be used with esp-idf-v4.3-beta1 , see
sdkconfig_with_default_build.patch

@jeanlemotan
Copy link
Owner

I didn't test with the latest version, but the stack overflow indicates that the stack size has to be increased for the Wifi TX task. Probably some internals have changed in the latest IDF and more stack is being used. Try to add 512 bytes.

There is another error in the log: wifi:invalid interface 0
Not sure what could be causing this though.

@lida2003
Copy link
Contributor Author

lida2003 commented Jan 22, 2023

Hummm... Tx stack overflow is OK.

I think wifi:invalid interface 0 might be also comes from esp-idf 4.3 esp_wifi_80211_tx.

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:1
load:0x3fff0030,len:6532
load:0x40078000,len:15292
load:0x40080400,len:4276
0x40080400: _init at ??:?

entry 0x4008067c
I (27) boot: ESP-IDF v4.3.4-332-g56ee43ec5e 2nd stage bootloader
I (27) boot: compile time 12:59:25
I (27) boot: chip revision: 3
I (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (39) qio_mode: Enabling default flash chip QIO
E (44) qio_mode: Failed to set QIE bit, not enabling QIO mode
I (50) boot.esp32: SPI Speed      : 80MHz
I (55) boot.esp32: SPI Mode       : DIO
I (59) boot.esp32: SPI Flash Size : 2MB
I (64) boot: Enabling RNG early entropy source...
I (69) boot: Partition Table:
I (73) boot: ## Label            Usage          Type ST Offset   Length
I (80) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (88) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (95) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (107) boot_comm: chip revision: 3, min. application chip revision: 0
I (114) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=114d4h ( 70868) map
I (144) esp_image: segment 1: paddr=000214fc vaddr=3ffb0000 size=03b10h ( 15120) load
I (149) esp_image: segment 2: paddr=00025014 vaddr=40080000 size=0b004h ( 45060) load
I (165) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=6c844h (444484) map
I (298) esp_image: segment 4: paddr=0009c86c vaddr=4008b004 size=11434h ( 70708) load
I (337) boot: Loaded app from partition at offset 0x10000
I (337) boot: Disabling RNG early entropy source...
I (348) psram: This chip is ESP32-D0WD
I (349) spiram: Found 16MBit SPI RAM device
I (349) spiram: SPI RAM mode: flash 80m sram 80m
I (354) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (361) cpu_start: Pro cpu up.
I (365) cpu_start: Starting app cpu, entry point is 0x4008134c
0x4008134c: call_start_cpu1 at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/port/cpu_start.c:150

I (0) cpu_start: App cpu up.
I (623) spiram: SPI SRAM memory test OK
I (630) cpu_start: Pro cpu start user code
I (630) cpu_start: cpu freq: 240000000
I (630) cpu_start: Application information:
I (633) cpu_start: Project name:     air_firmware
I (639) cpu_start: App version:      47ba7e7-dirty
I (644) cpu_start: Compile time:     Jan 21 2023 13:16:47
I (650) cpu_start: ELF file SHA256:  849688d28797ba90...
I (656) cpu_start: ESP-IDF:          v4.3.4-332-g56ee43ec5e
I (663) heap_init: Initializing. RAM available for dynamic allocation:
I (670) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (676) heap_init: At 3FFB83C8 len 00027C38 (159 KiB): DRAM
I (682) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (688) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (695) heap_init: At 4009C438 len 00003BC8 (14 KiB): IRAM
I (701) spiram: Adding pool of 2048K of external SPI memory to heap allocator
I (709) spi_flash: detected chip: gd
I (713) spi_flash: flash io: qio
I (718) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Initializing...
MEMORY at start:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2094999 allocated 0 min_free 2094999
    largest_free_block 2064384 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 131040 allocated 29560 min_free 130104
    largest_free_block 129024 alloc_blocks 30 free_blocks 1 total_blocks 31
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2350651 allocated 33692 min_free 2349715 largest_free_block 2064384
I (925) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
MEMORY after fec:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 41000 allocated 119412 min_free 41000
    largest_free_block 40960 alloc_blocks 77 free_blocks 1 total_blocks 78
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2194051 allocated 189080 min_free 2194051 largest_free_block 1998848
W (999) wifi:wifi osi_nvs_open fail ret=4353

I (1003) wifi_init: tcpip mbox: 32
I (1007) wifi_init: udp mbox: 6
I (1011) wifi_init: tcp mbox: 6
I (1015) wifi_init: tcp tx win: 5744
I (1019) wifi_init: tcp rx win: 5744
I (1023) wifi_init: tcp mss: 1440
I (1027) wifi_init: WiFi IRAM OP enabled
I (1032) wifi_init: WiFi RX IRAM OP enabled
I (1037) wifi_init: WiFi SLP IRAM OP enabled
MEMORY After WIFI:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83c8 len 162872 free 36852 allocated 123528 min_free 36772
    largest_free_block 35840 alloc_blocks 85 free_blocks 2 total_blocks 87
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2189903 allocated 193196 min_free 2189823 largest_free_block 1998848
Initialized
I (1118) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1128) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1137) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1146) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1156) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1165) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1174) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1184) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1193) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1203) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1212) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1222) sccb: pin_sda 26 pin_scl 27

I (1226) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1368) camera: Detected OV2640 camera
I (1369) camera: Line width (for DMA): 6400 bytes
I (1369) camera: DMA buffer size: 3200, DMA buffers per line: 2
I (1374) camera: DMA buffer count: 8
I (1378) camera: DMA buffer total: 25600 bytes
I (1383) camera: Allocating DMA buffer #0, size=3200
I (1389) camera: Allocating DMA buffer #1, size=3200
I (1394) camera: Allocating DMA buffer #2, size=3200
I (1400) camera: Allocating DMA buffer #3, size=3200
I (1406) camera: Allocating DMA buffer #4, size=3200
I (1411) camera: Allocating DMA buffer #5, size=3200
I (1417) camera: Allocating DMA buffer #6, size=3200
I (1423) camera: Allocating DMA buffer #7, size=3200
MEMORY Before Loop:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
E (1593) wifi:invalid interface 0
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
E (1607) wifi:invalid interface 0
  At 0x3ffb83c8 len 162872 free 348 allocated 159900 min_free 332
    largest_free_block 264 alloc_blocks 118 free_blocks 3 total_blocks 121
  At 0x3ffe0440 len 15072 free 7792 allocated 5120 min_free 7792
E (1616) wifi:    largest_free_block 7680 alloc_blocks 2 free_blocks 1 total_blocks 3
  At 0x3ffe4350 len 113840 free 103492 allocated 8192 min_free 103492
    largest_free_block 102400 alloc_blocks 1 free_blocks 1 total_blocks 2
invalid interface 0
  Totals:
E (1657) wifi:invalid interface 0
    free 2140075 allocated 242880 min_free 2140059 largest_free_block 1998848
WLAN S: E (0, R: 016, E6: 4,1)  D: 0, wi% :f 9i9 :|| FPS:in v3, alD: i22824d i5 || D: nt0, E: erfa0
ce 0
E (1677) wifi:invalid interface 0
E (1680) wifi:invalid interface 0
E (1683) wifi:invalid interface 0
E (1686) wifi:invalid interface 0
E (1689) wifi:invalid interface 0
E (1692) wifi:invalid interface 0
E (1695) wifi:invalid interface 0
E (1698) wifi:invalid interface 0
E (1701) wifi:invalid interface 0
E (1704) wifi:invalid interface 0
E (1707) wifi:invalid interface 0

@lida2003
Copy link
Contributor Author

lida2003 commented Jan 22, 2023

It seems ok {WiFi mode(STA=1), interface(STA=0), package buffer length(1500)}, BUT failed with wifi:invalid interface 0, esp_wifi_80211_tx if 0 size 1500 err 0x3004

  • ESP-IDF v4.3.4-332-g56ee43ec5e
  • latest esp32-cam-fpv

I found W (998) wifi:wifi osi_nvs_open fail ret=4353 , but I'm NOT sure what's this all about. Is it possbile for u to paste an entire log, which is OK.

rst:0x1 (POWERON_RESET),boot:0x12 (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:1
load:0x3fff0030,len:6532
load:0x40078000,len:15292
load:0x40080400,len:4276
0x40080400: _init at ??:?

entry 0x4008067c
I (27) boot: ESP-IDF v4.3.4-332-g56ee43ec5e 2nd stage bootloader
I (27) boot: compile time 16:41:29
I (27) boot: chip revision: 3
I (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (41) qio_mode: Enabling default flash chip QIO
E (44) qio_mode: Failed to set QIE bit, not enabling QIO mode
I (50) boot.esp32: SPI Speed      : 80MHz
I (55) boot.esp32: SPI Mode       : DIO
I (59) boot.esp32: SPI Flash Size : 4MB
I (64) boot: Enabling RNG early entropy source...
I (69) boot: Partition Table:
I (73) boot: ## Label            Usage          Type ST Offset   Length
I (80) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (88) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (95) boot:  2 factory          factory app      00 00 00010000 00100000
I (103) boot: End of partition table
I (107) boot_comm: chip revision: 3, min. application chip revision: 0
I (114) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=113b8h ( 70584) map
I (144) esp_image: segment 1: paddr=000213e0 vaddr=3ffb0000 size=03b44h ( 15172) load
I (149) esp_image: segment 2: paddr=00024f2c vaddr=40080000 size=0b0ech ( 45292) load
I (165) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=6bab4h (441012) map
I (297) esp_image: segment 4: paddr=0009badc vaddr=4008b0ec size=11428h ( 70696) load
I (336) boot: Loaded app from partition at offset 0x10000
I (336) boot: Disabling RNG early entropy source...
I (347) psram: This chip is ESP32-D0WD
I (348) spiram: Found 16MBit SPI RAM device
I (348) spiram: SPI RAM mode: flash 80m sram 80m
I (353) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (360) cpu_start: Pro cpu up.
I (364) cpu_start: Starting app cpu, entry point is 0x4008135c
0x4008135c: call_start_cpu1 at /home/daniel/Work/esp-sdk/esp-idf-v4.3/components/esp_system/port/cpu_start.c:150

I (0) cpu_start: App cpu up.
I (622) spiram: SPI SRAM memory test OK
I (629) cpu_start: Pro cpu start user code
I (629) cpu_start: cpu freq: 240000000
I (629) cpu_start: Application information:
I (632) cpu_start: Project name:     air_firmware
I (638) cpu_start: App version:      47ba7e7-dirty
I (643) cpu_start: Compile time:     Jan 22 2023 16:41:20
I (649) cpu_start: ELF file SHA256:  ea575a4ef9e405ef...
I (655) cpu_start: ESP-IDF:          v4.3.4-332-g56ee43ec5e
I (662) heap_init: Initializing. RAM available for dynamic allocation:
I (669) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (675) heap_init: At 3FFB83D0 len 00027C30 (159 KiB): DRAM
I (681) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (687) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (694) heap_init: At 4009C514 len 00003AEC (14 KiB): IRAM
I (700) spiram: Adding pool of 2048K of external SPI memory to heap allocator
I (708) spi_flash: detected chip: gd
I (712) spi_flash: flash io: qio
I (717) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Initializing...
MEMORY at start:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2094999 allocated 0 min_free 2094999
    largest_free_block 2064384 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83d0 len 162864 free 131032 allocated 29560 min_free 130096
    largest_free_block 129024 alloc_blocks 30 free_blocks 1 total_blocks 31
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2350643 allocated 33692 min_free 2349707 largest_free_block 2064384
I (924) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
MEMORY after fec:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83d0 len 162864 free 40992 allocated 119412 min_free 40992
    largest_free_block 40960 alloc_blocks 77 free_blocks 1 total_blocks 78
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2194043 allocated 189080 min_free 2194043 largest_free_block 1998848
W (998) wifi:wifi osi_nvs_open fail ret=4353

I (1002) wifi_init: tcpip mbox: 32
I (1006) wifi_init: udp mbox: 6
I (1010) wifi_init: tcp mbox: 6
I (1014) wifi_init: tcp tx win: 5744
I (1018) wifi_init: tcp rx win: 5744
I (1022) wifi_init: tcp mss: 1440
I (1026) wifi_init: WiFi IRAM OP enabled
I (1031) wifi_init: WiFi RX IRAM OP enabled
I (1036) wifi_init: WiFi SLP IRAM OP enabled
MEMORY After WIFI:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
  At 0x3ffb83d0 len 162864 free 36844 allocated 123528 min_free 36764
    largest_free_block 35840 alloc_blocks 85 free_blocks 2 total_blocks 87
  At 0x3ffe0440 len 15072 free 12920 allocated 0 min_free 12920
    largest_free_block 12800 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 111688 allocated 0 min_free 111688
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 2189895 allocated 193196 min_free 2189815 largest_free_block 1998848
Initialized WiFi mode(1), if(0)
I (1119) gpio: GPIO[5]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1128) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1138) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1147) gpio: GPIO[21]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1156) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1166) gpio: GPIO[23]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1175) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1185) gpio: GPIO[34]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1194) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1203) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1213) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1222) sccb: pin_sda 26 pin_scl 27

I (1227) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1369) camera: Detected OV2640 camera
I (1370) camera: Line width (for DMA): 6400 bytes
I (1370) camera: DMA buffer size: 3200, DMA buffers per line: 2
I (1375) camera: DMA buffer count: 8
I (1379) camera: DMA buffer total: 25600 bytes
I (1384) camera: Allocating DMA buffer #0, size=3200
I (1390) camera: Allocating DMA buffer #1, size=3200
I (1395) camera: Allocating DMA buffer #2, size=3200
I (1401) camera: Allocating DMA buffer #3, size=3200
I (1407) camera: Allocating DMA buffer #4, size=3200
I (1412) camera: Allocating DMA buffer #5, size=3200
I (1418) camera: Allocating DMA buffer #6, size=3200
I (1424) camera: Allocating DMA buffer #7, size=3200
MEMORY Before Loop:
Heap summary for capabilities 0x00000004:
  At 0x3f800000 len 2097151 free 2028439 allocated 65536 min_free 2028439
    largest_free_block 1998848 alloc_blocks 256 free_blocks 1 total_blocks 257
E (1593) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
  At 0x3ffae6e0 len 6432 free 4 allocated 4132 min_free 4
    largest_free_block 0 alloc_blocks 36 free_blocks 0 total_blocks 36
E (1605) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
  At 0x3ffb83d0 len 162864 free 340 allocated 159900 min_free 324
E (1624) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
    largest_free_block 264 alloc_blocks 118 free_blocks 3 total_blocks 121
  At 0x3ffe0440 len 15072 free 7792 allocated 5120 min_free 7792
    largest_free_block 7680 alloc_blocks 2 free_blocks 1 total_blocks 3
  At 0x3ffe4350 len 113840 free 103492 allocated 8192 min_free 103492
    largest_free_block 102400 alloc_blocks 1 free_blocks 1 total_blocks 2
E (1636) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
  Totals:
E (1675) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
    free 2140067 allocated 242880 min_free 2140051 largest_free_block 1998848
E (1683) wWLAN S: 0i, fR: 0, E: 5,i: D: 0, % i: 99 || FPSnva: 4, D: l261010 || Did : 0, E: i0
nterface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1703) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1710) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1717) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1724) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1730) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1737) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1744) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1751) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1758) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1765) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1772) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1779) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004
E (1786) wifi:invalid interface 0
esp_wifi_80211_tx if 0 size 1500 err 0x3004

@lida2003
Copy link
Contributor Author

lida2003 commented Jan 23, 2023

a) Initialized WiFi mode(1), if(0) /esp_wifi_80211_tx if 0 size 1500 err 0x3004 shows wifi mode STA(1), IF STA(0) , packet size(1500)
b) Currently, it responds ESP_ERR_WIFI_IF(0x3004), it might be wifi_interface_t ifx error.
c) Since esp_wifi_80211_tx is a library (maybe from libnet80211.a), I didn't know much about internal mechanism.

/**
  * @brief     Send raw ieee80211 data
  *
  * @attention Currently only support for sending beacon/probe request/probe response/action and non-QoS
  *            data frame
  *
  * @param     ifx interface if the Wi-Fi mode is Station, the ifx should be WIFI_IF_STA. If the Wi-Fi
  *            mode is SoftAP, the ifx should be WIFI_IF_AP. If the Wi-Fi mode is Station+SoftAP, the
  *            ifx should be WIFI_IF_STA or WIFI_IF_AP. If the ifx is wrong, the API returns ESP_ERR_WIFI_IF.
  * @param     buffer raw ieee80211 buffer
  * @param     len the length of raw buffer, the len must be <= 1500 Bytes and >= 24 Bytes
  * @param     en_sys_seq indicate whether use the internal sequence number. If en_sys_seq is false, the
  *            sequence in raw buffer is unchanged, otherwise it will be overwritten by WiFi driver with
  *            the system sequence number.
  *            Generally, if esp_wifi_80211_tx is called before the Wi-Fi connection has been set up, both
  *            en_sys_seq==true and en_sys_seq==false are fine. However, if the API is called after the Wi-Fi
  *            connection has been set up, en_sys_seq must be true, otherwise ESP_ERR_WIFI_ARG is returned.
  *
  * @return
  *    - ESP_OK: success
  *    - ESP_ERR_WIFI_IF: Invalid interface
  *    - ESP_ERR_INVALID_ARG: Invalid parameter
  *    - ESP_ERR_WIFI_NO_MEM: out of memory
  */

esp_err_t esp_wifi_80211_tx(wifi_interface_t ifx, const void *buffer, int len, bool en_sys_seq);

@JulesThuillier
Copy link
Contributor

Are you using the same esp-idf version as described in the README ? I had issue with that and now I am using release/v4.3 branch (commit 389a848a6a7b11cfd2e33bf34752483906bc9237 from December 29 09:42) of ESP IDF and it works.

I also had to change line 693 of main.cpp for the following line :
esp_err_t err = esp_wifi_config_80211_tx_rate(ESP_WIFI_IF, (wifi_phy_rate_t)rates[(int)value]);

@rottaran
Copy link

Do you get the 802.11n modes (MCS0 to MCS7) working? For me, esp_wifi_config_80211_tx_rate with these rates never sent anything in my test programs on IDF 4.4 and 5.0. Today I got it working by setting the bandwidth, the channel, and then the rate:

ESP_ERROR_CHECK(esp_wifi_set_bandwidth(ESP_WIFI_IF, WIFI_BW_HT20));
ESP_ERROR_CHECK(esp_wifi_set_channel(11, WIFI_SECOND_CHAN_NONE));
ESP_ERROR_CHECK(esp_wifi_config_80211_tx_rate(ESP_WIFI_IF, WIFI_PHY_RATE_MCS1_LGI));

Also got 40MHz rates working:

ESP_ERROR_CHECK(esp_wifi_set_bandwidth(ESP_WIFI_IF, WIFI_BW_HT40));
ESP_ERROR_CHECK(esp_wifi_set_channel(9, WIFI_SECOND_CHAN_ABOVE));
ESP_ERROR_CHECK(esp_wifi_config_80211_tx_rate(ESP_WIFI_IF, WIFI_PHY_RATE_MCS1_LGI));

Without setting the bandwidth, it did not work. Maybe because the default is HT40 or maybe it is initializing something internally.

@lida2003
Copy link
Contributor Author

@JulesThuillier @rottaran
IDF 4.3 4.4 latest code is OK for sending packet out, with esp_err_t err = esp_wifi_config_80211_tx_rate(ESP_WIFI_IF, (wifi_phy_rate_t)rates[(int)value]); properly set.

BUT no video on RPI 3B+ nor Ubuntu laptop. please see latest code(9610792) no video on RPI Window #22

@jeanlemotan Do you have an suggestion on this?

@lida2003
Copy link
Contributor Author

lida2003 commented Jan 25, 2023

@rottaran I have got IDF 4.4 (latest) working (I mean compile and log shows working). And I found there are a lot of changes if IDF 5.0 used. Do you have the patches for 5.0?

@JulesThuillier I just changed code your suggested and some debug issues.

@jeanlemotan This is my PR: Fix no WiFi RF packet send issue and upgrade to IDF v4.4(latest) #23 . If you can see the video on gs. Then I think it's OK to merge.

BTW: Please let usknow:

  1. If this PR works
  2. Please try latest gs code
  3. are you using Pi 4 hardware? (as you said in readme"The receiver is a Raspberry PI 4 with 2 wifi adapters in monitor mode (TL-WN722N). ")

PS: I wanna know why my gs is not working :(

@jeanlemotan
Copy link
Owner

I'll try this weekend to check the stuff above.
I am using a Pi 4 indeed, but I have a Pi 3 as well and I'll try with it to see what happens.

@lida2003
Copy link
Contributor Author

I'll try this weekend to check the stuff above.
I am using a Pi 4 indeed, but I have a Pi 3 as well and I'll try with it to see what happens.

Thanks. that's really helps.

@JulesThuillier
Copy link
Contributor

@lida2003 Sorry no I don't have patches for 5.0, currently I'm still trying to figure out how to make it work completely (I still just have a black screen pop up with a crash soon after on my RPi 4), before upgrading the soft.

@lida2003
Copy link
Contributor Author

I still just have a black screen pop up with a crash soon after on my RPi 4

@JulesThuillier Hummm.... RPI 4, now we are on the same starting line.

It seems that RPI 3B+/4/Ubuntu 20.04 have the black screen with latest gs code. Maybe we have to dig a little bit deeper.

Good news is @jeanlemotan will take a look when he has time.

@jeanlemotan
Copy link
Owner

The air firmware should now work with IDF4.4.4. But pls use the committed sdkconfig, it's critical for memory reasons.
I just tested now and video is send at high FPS.

@lida2003
Copy link
Contributor Author

lida2003 commented Feb 6, 2023

fresh build, reboot issue something to do with "esp_wifi_internal_set_fix_rate"

$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/daniel/Work/esp32-cam-fpv-main/air_firmware"...
-- Found Git: /usr/bin/git (found version "2.25.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
Solving dependencies requirements
Updating lock file at /home/daniel/Work/esp32-cam-fpv-main/air_firmware/dependencies.lock
Processing 1 dependencies:
[1/1] idf (4.4.4)
-- DEBUG: Use esp-modbus component folder: /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freemodbus.
-- Project sdkconfig file /home/daniel/Work/esp32-cam-fpv-main/air_firmware/sdkconfig
-- Found Python3: /home/daniel/.espressif/python_env/idf4.4_py3.8_env/bin/python3.8 (found version "3.8.10") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "air_firmware" version: df74c7b
-- Adding linker script /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/soc/esp32/ld/esp32.peripherals.ld
-- DEBUG: Use esp-modbus component folder: /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freemodbus.
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap common console cxx driver efuse esp-tls esp32 esp32-camera esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/app_trace /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/app_update /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/asio /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bootloader /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bootloader_support /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bt /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/cbor /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/cmock /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/coap /home/daniel/Work/esp32-cam-fpv-main/components/common /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/console /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/cxx /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/driver /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/efuse /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp-tls /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp32 /home/daniel/Work/esp32-cam-fpv-main/air_firmware/components/esp32-camera /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_adc_cal /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_common /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_eth /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_event /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_gdbstub /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_hid /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_http_client /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_http_server /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_https_ota /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_https_server /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_hw_support /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_ipc /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_lcd /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_local_ctrl /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_netif /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_phy /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_pm /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_ringbuf /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_serial_slave_link /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_timer /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_websocket_client /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_wifi /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/espcoredump /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esptool_py /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/expat /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/fatfs /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freemodbus /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freertos /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/hal /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/heap /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/idf_test /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/ieee802154 /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/jsmn /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/json /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/libsodium /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/log /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/lwip /home/daniel/Work/esp32-cam-fpv-main/air_firmware/main /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/mbedtls /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/mdns /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/mqtt /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/newlib /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/nghttp /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/nvs_flash /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/openssl /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/openthread /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/partition_table /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/perfmon /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/protobuf-c /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/protocomm /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/pthread /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/sdmmc /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/soc /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/spi_flash /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/spiffs /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/tcp_transport /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/tcpip_adapter /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/tinyusb /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/ulp /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/unity /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/usb /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/vfs /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/wear_levelling /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/wifi_provisioning /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/wpa_supplicant /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build
Running ninja in directory /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build
Executing "ninja all"...
[4/1067] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[161/1067] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.25.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/daniel/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- DEBUG: Use esp-modbus component folder: /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freemodbus.
-- Project sdkconfig file /home/daniel/Work/esp32-cam-fpv-main/air_firmware/sdkconfig
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/soc/esp32/ld/esp32.peripherals.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bootloader /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bootloader_support /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/efuse /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp32 /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_common /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_hw_support /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_rom /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esptool_py /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freertos /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/hal /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/log /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bootloader/subproject/main /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/bootloader/subproject/components/micro-ecc /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/newlib /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/partition_table /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/soc /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/spi_flash /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/bootloader
[171/1067] Performing build step for 'bootloader'
[1/100] Generating project_elf_src_esp32.c
[2/100] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32.c.obj
[3/100] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[4/100] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cpu_hal.c.obj
[5/100] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/efuse_hal.c.obj
[6/100] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/esp32/efuse_hal.c.obj
[7/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
[8/100] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[9/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[10/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/adc_periph.c.obj
[11/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dac_periph.c.obj
[12/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2c_periph.c.obj
[13/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj
[14/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/interrupts.c.obj
[15/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2s_periph.c.obj
[16/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/lcd_periph.c.obj
[17/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/ledc_periph.c.obj
[18/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/mcpwm_periph.c.obj
[19/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/pcnt_periph.c.obj
[20/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_io_periph.c.obj
[21/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rmt_periph.c.obj
[22/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj
[23/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sigmadelta_periph.c.obj
[24/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/uart_periph.c.obj
[25/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj
[26/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/timer_periph.c.obj
[27/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj
[28/100] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/touch_sensor_periph.c.obj
[29/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_wdt.c.obj
[30/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[31/100] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32/spi_flash_rom_patch.c.obj
[32/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[33/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[34/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[35/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[36/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[37/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32.c.obj
[38/100] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[39/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[40/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[41/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[42/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[43/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[44/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[45/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32.c.obj
[46/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse.c.obj
[47/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[48/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[49/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[50/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[51/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_soc.c.obj
[52/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[53/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj
[54/100] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_fields.c.obj
[55/100] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj
[56/100] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj
[57/100] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[58/100] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_utility.c.obj
[59/100] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[60/100] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[61/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj
[62/100] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api_key_esp32.c.obj
[63/100] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[64/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/chip_info.c.obj
[65/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj
[66/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk_init.c.obj
[67/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_pm.c.obj
[68/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_init.c.obj
[69/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_sleep.c.obj
[70/100] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj
[71/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk.c.obj
[72/100] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj
[73/100] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[74/100] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_time.c.obj
[75/100] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[76/100] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj
[77/100] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[78/100] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_efuse.c.obj
[79/100] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[80/100] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[81/100] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[82/100] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[83/100] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[84/100] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[85/100] Linking C static library esp-idf/log/liblog.a
[86/100] Linking C static library esp-idf/esp_rom/libesp_rom.a
[87/100] Linking C static library esp-idf/esp_common/libesp_common.a
[88/100] Linking C static library esp-idf/xtensa/libxtensa.a
[89/100] Linking C static library esp-idf/esp_hw_support/libesp_hw_support.a
[90/100] Linking C static library esp-idf/esp_system/libesp_system.a
[91/100] Linking C static library esp-idf/efuse/libefuse.a
[92/100] Linking C static library esp-idf/bootloader_support/libbootloader_support.a
[93/100] Linking C static library esp-idf/spi_flash/libspi_flash.a
[94/100] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a
[95/100] Linking C static library esp-idf/soc/libsoc.a
[96/100] Linking C static library esp-idf/hal/libhal.a
[97/100] Linking C static library esp-idf/main/libmain.a
[98/100] Linking C executable bootloader.elf
[99/100] Generating binary image from built executable
esptool.py v3.3.2
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Generated /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/bootloader/bootloader.bin
[100/100] cd /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/bootloader/esp-idf/esptool_py && /home/daniel/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/bootloader/bootloader.bin
Bootloader binary size 0x63b0 bytes. 0xc50 bytes (11%) free.
[1049/1067] Building CXX object esp-idf/common/CMakeFiles/__idf_common.dir/crc.cpp.obj
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp: In function 'uint8_t crc8(uint8_t, const void*, size_t)':
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:25:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             crc = s_crc8_table[crc ^ (*c++)];
             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:26:9: note: here
         case 7:
         ^~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:27:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             crc = s_crc8_table[crc ^ (*c++)];
             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:28:9: note: here
         case 6:
         ^~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:29:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             crc = s_crc8_table[crc ^ (*c++)];
             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:30:9: note: here
         case 5:
         ^~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:31:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             crc = s_crc8_table[crc ^ (*c++)];
             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:32:9: note: here
         case 4:
         ^~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:33:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             crc = s_crc8_table[crc ^ (*c++)];
             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:34:9: note: here
         case 3:
         ^~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:35:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             crc = s_crc8_table[crc ^ (*c++)];
             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:36:9: note: here
         case 2:
         ^~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:37:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
             crc = s_crc8_table[crc ^ (*c++)];
             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/daniel/Work/esp32-cam-fpv-main/components/common/crc.cpp:38:9: note: here
         case 1:
         ^~~~
[1052/1067] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj
../main/main.cpp: In function 'void wifi_rx_proc(void*)':
../main/main.cpp:1035:21: warning: unused variable 'rssi' [-Wunused-variable]
             int16_t rssi = s_wlan_incoming_rssi;
                     ^~~~
[1053/1067] Building CXX object esp-idf/common/CMakeFiles/__idf_common.dir/fec_codec.cpp.obj
/home/daniel/Work/esp32-cam-fpv-main/components/common/fec_codec.cpp: In member function 'void Fec_Codec::encoder_task_proc()':
/home/daniel/Work/esp32-cam-fpv-main/components/common/fec_codec.cpp:398:26: warning: unused variable 'start' [-Wunused-variable]
                 uint64_t start = esp_timer_get_time();
                          ^~~~~
[1055/1067] Building C object esp-idf/esp32-camera/CMakeFiles/__idf_esp32-camera.dir/driver/camera.c.obj
../components/esp32-camera/driver/camera.c:490:23: warning: 'i2s_stop_bus' defined but not used [-Wunused-function]
 static void IRAM_ATTR i2s_stop_bus()
                       ^~~~~~~~~~~~
../components/esp32-camera/driver/camera.c:85:20: warning: 'CAMERA_PIXFORMAT_NVS_KEY' defined but not used [-Wunused-variable]
 static const char* CAMERA_PIXFORMAT_NVS_KEY = "pixformat";
                    ^~~~~~~~~~~~~~~~~~~~~~~~
../components/esp32-camera/driver/camera.c:84:20: warning: 'CAMERA_SENSOR_NVS_KEY' defined but not used [-Wunused-variable]
 static const char* CAMERA_SENSOR_NVS_KEY = "sensor";
                    ^~~~~~~~~~~~~~~~~~~~~
[1066/1067] Generating binary image from built executable
esptool.py v3.3.2
Creating esp32 image...
Merged 25 ELF sections
Successfully created esp32 image.
Generated /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/air_firmware.bin
[1067/1067] cd /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/esp-idf/esp...table.bin /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/air_firmware.bin
air_firmware.bin binary size 0xb90e0 bytes. Smallest app partition is 0x100000 bytes. 0x46f20 bytes (28%) free.

Project build complete. To flash, run this command:
/home/daniel/.espressif/python_env/idf4.4_py3.8_env/bin/python ../../esp-sdk/esp-idf-v4.4.4/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/air_firmware.bin
or run 'idf.py -p (PORT) flash'
daniel@daniel-ThinkPad-SL410:~/Work/esp32-cam-fpv-main/air_firmware$ idf.py -p /dev/ttyUSB0 flash monitor
Executing action: flash
Running ninja in directory /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build
Executing "ninja flash"...
[1/5] cd /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/esp-idf/esptool_p...table.bin /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/air_firmware.bin
air_firmware.bin binary size 0xb90e0 bytes. Smallest app partition is 0x100000 bytes. 0x46f20 bytes (28%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cd /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/bootloader/esp-idf/esptool_py && /home/daniel/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/bootloader/bootloader.bin
Bootloader binary size 0x63b0 bytes. 0xc50 bytes (11%) free.
[2/3] cd /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esptool_py && /usr/bi...ome/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esptool_py/run_serial_tool.cmake
esptool.py esp32 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000 bootloader/bootloader.bin 0x10000 air_firmware.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.3.2
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: e0:5a:1b:6b:d5:74
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x000c9fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 25520 bytes to 15999...
Writing at 0x00001000... (100 %)
Wrote 25520 bytes (15999 compressed) at 0x00001000 in 1.2 seconds (effective 168.2 kbit/s)...
Hash of data verified.
Compressed 757984 bytes to 474400...
Writing at 0x00010000... (3 %)
Writing at 0x0001c108... (6 %)
Writing at 0x00027617... (10 %)
Writing at 0x00032012... (13 %)
Writing at 0x000376ab... (17 %)
Writing at 0x0003d87e... (20 %)
Writing at 0x00043437... (24 %)
Writing at 0x0004923f... (27 %)
Writing at 0x0004ebfa... (31 %)
Writing at 0x00054824... (34 %)
Writing at 0x00059e7d... (37 %)
Writing at 0x0005f140... (41 %)
Writing at 0x00064524... (44 %)
Writing at 0x000698e9... (48 %)
Writing at 0x0006ef05... (51 %)
Writing at 0x00074840... (55 %)
Writing at 0x0007a76e... (58 %)
Writing at 0x000801ba... (62 %)
Writing at 0x00085a0f... (65 %)
Writing at 0x0008b15c... (68 %)
Writing at 0x00090813... (72 %)
Writing at 0x00096c8e... (75 %)
Writing at 0x0009c6dc... (79 %)
Writing at 0x000a46cb... (82 %)
Writing at 0x000ad2f5... (86 %)
Writing at 0x000b302f... (89 %)
Writing at 0x000b87c1... (93 %)
Writing at 0x000be1c3... (96 %)
Writing at 0x000c3d12... (100 %)
Wrote 757984 bytes (474400 compressed) at 0x00010000 in 11.6 seconds (effective 524.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 221.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Executing action: monitor
Running idf_monitor in directory /home/daniel/Work/esp32-cam-fpv-main/air_firmware
Executing "/home/daniel/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/air_firmware.elf -m '/home/daniel/.espressif/python_env/idf4.4_py3.8_env/bin/python' '/home/daniel/Work/esp-sdk/esp-idf-v4.4.4/tools/idf.py' '-p' '/dev/ttyUSB0'"...
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
▒x▒xxx▒▒▒x▒x▒x▒▒x▒x▒xxx▒▒▒x▒x▒x▒▒x▒x▒xxx▒▒▒x▒x▒x▒▒x▒x▒xxx▒▒▒x▒x▒x▒▒x▒x▒xxx▒▒▒x▒x▒x▒▒x▒x▒xxx▒▒▒x▒x▒x▒▒x▒x▒xxx▒▒▒x▒x▒x▒▒x▒x▒xxx▒▒▒x▒x▒x▒▒xets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul▒ets Jul 29 2019 12:21:46

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:6664
load:0x40078000,len:14944
load:0x40080400,len:3816
0x40080400: _init at ??:?

entry 0x40080698
I (27) boot: ESP-IDF v4.4.4 2nd stage bootloader
I (27) boot: compile time 13:42:11
I (27) boot: chip revision: v3.0
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (37) boot.esp32: SPI Speed      : 40MHz
I (42) boot.esp32: SPI Mode       : DIO
I (47) boot.esp32: SPI Flash Size : 2MB
I (51) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (67) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (75) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (82) boot:  2 factory          factory app      00 00 00010000 00100000
I (90) boot: End of partition table
I (94) boot_comm: chip revision: 3, min. application chip revision: 0
I (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1b4cch (111820) map
I (150) esp_image: segment 1: paddr=0002b4f4 vaddr=3ffb0000 size=043fch ( 17404) load
I (157) esp_image: segment 2: paddr=0002f8f8 vaddr=40080000 size=00720h (  1824) load
I (158) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=80b48h (527176) map
I (355) esp_image: segment 4: paddr=000b0b70 vaddr=40080720 size=18548h ( 99656) load
I (408) boot: Loaded app from partition at offset 0x10000
I (409) boot: Disabling RNG early entropy source...
I (420) cpu_start: Pro cpu up.
I (420) cpu_start: Starting app cpu, entry point is 0x40081550
0x40081550: call_start_cpu1 at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/port/cpu_start.c:148

I (0) cpu_start: App cpu up.
I (437) cpu_start: Pro cpu start user code
I (437) cpu_start: cpu freq: 160000000
I (437) cpu_start: Application information:
I (441) cpu_start: Project name:     air_firmware
I (447) cpu_start: App version:      df74c7b
I (452) cpu_start: Compile time:     Feb  6 2023 13:41:46
I (458) cpu_start: ELF file SHA256:  8930ab875089e010...
I (464) cpu_start: ESP-IDF:          v4.4.4
I (469) heap_init: Initializing. RAM available for dynamic allocation:
I (476) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (482) heap_init: At 3FFB8A38 len 000275C8 (157 KiB): DRAM
I (488) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (494) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (501) heap_init: At 40098C68 len 00007398 (28 KiB): IRAM
I (508) spi_flash: detected chip: gd
I (511) spi_flash: flash io: dio
W (515) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (530) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Initializing...
MEMORY at start:
Heap summary for capabilities 0x00000004:
  At 0x3ffae6e0 len 6432 free 4 allocated 5912 min_free 4
    largest_free_block 0 alloc_blocks 34 free_blocks 0 total_blocks 34
  At 0x3ffb8a38 len 161224 free 136396 allocated 23780 min_free 136396
    largest_free_block 131072 alloc_blocks 27 free_blocks 1 total_blocks 28
  At 0x3ffe0440 len 15072 free 14656 allocated 0 min_free 14656
    largest_free_block 14336 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 112968 allocated 0 min_free 112968
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 264024 allocated 29692 min_free 264024 largest_free_block 131072
I (803) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
MEMORY after fec:
Heap summary for capabilities 0x00000004:
  At 0x3ffae6e0 len 6432 free 4 allocated 5912 min_free 4
    largest_free_block 0 alloc_blocks 34 free_blocks 0 total_blocks 34
  At 0x3ffb8a38 len 161224 free 4 allocated 159092 min_free 4
    largest_free_block 0 alloc_blocks 297 free_blocks 0 total_blocks 297
  At 0x3ffe0440 len 15072 free 1348 allocated 13140 min_free 1348
    largest_free_block 1280 alloc_blocks 42 free_blocks 1 total_blocks 43
  At 0x3ffe4350 len 113840 free 104768 allocated 8192 min_free 104768
    largest_free_block 102400 alloc_blocks 2 free_blocks 1 total_blocks 3
  Totals:
    free 106124 allocated 186336 min_free 106124 largest_free_block 102400
I (883) wifi:wifi driver task: 3ffe9364, prio:23, stack:6656, core=0
I (883) system_api: Base MAC address is not set
I (883) system_api: read default base MAC address from EFUSE
I (913) wifi:wifi firmware version: 6567a16
I (913) wifi:wifi certification version: v7.0
I (913) wifi:config NVS flash: enabled
I (913) wifi:config nano formating: disabled
I (913) wifi:Init data frame dynamic rx buffer num: 32
I (913) wifi:Init management frame dynamic rx buffer num: 32
I (923) wifi:Init management short buffer num: 32
I (923) wifi:Init dynamic tx buffer num: 32
I (933) wifi:Init static rx buffer size: 1600
I (933) wifi:Init static rx buffer num: 10
I (943) wifi:Init dynamic rx buffer num: 32
I (943) wifi_init: rx ba win: 6
I (943) wifi_init: tcpip mbox: 32
I (953) wifi_init: udp mbox: 6
I (953) wifi_init: tcp mbox: 6
I (963) wifi_init: tcp tx win: 5744
I (963) wifi_init: tcp rx win: 5744
I (963) wifi_init: tcp mss: 1440
I (973) wifi_init: WiFi IRAM OP enabled
I (973) wifi_init: WiFi RX IRAM OP enabled
I (983) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (1083) wifi:mode : sta (e0:5a:1b:6b:d5:74)
I (1083) wifi:enable tsf
I (1083) wifi:Set ps type: 0

E (1093) wifi:can't set fix rate when tx ampdu is enabled
ESP_ERROR_CHECK failed: esp_err_t 0x106 (ESP_ERR_NOT_SUPPORTED) at 0x4008b6d4
0x4008b6d4: _esp_error_check_failed at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/esp_err.c:42

file: "../main/main.cpp" line 1154
func: void setup_wifi()
expression: set_wifi_fixed_rate(s_ground2air_config_packet.wifi_rate)

abort() was called at PC 0x4008b6d7 on core 0
0x4008b6d7: _esp_error_check_failed at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/esp_err.c:43



Backtrace: 0x40081e26:0x3ffbd780 0x4008b6e1:0x3ffbd7a0 0x4009345a:0x3ffbd7c0 0x4008b6d7:0x3ffbd830 0x400d7537:0x3ffbd850 0x400d768c:0x3ffbd950 0x4014f338:0x3ffbd9a0 0x4008eb69:0x3ffbd9c0
0x40081e26: panic_abort at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/panic.c:408

0x4008b6e1: esp_system_abort at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/esp_system.c:137

0x4009345a: abort at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/newlib/abort.c:46

0x4008b6d7: _esp_error_check_failed at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/esp_err.c:43

0x400d7537: setup_wifi() at /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/../main/main.cpp:1154 (discriminator 1)

0x400d768c: app_main at /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/../main/main.cpp:1456

0x4014f338: main_task at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freertos/port/port_common.c:141 (discriminator 2)

0x4008eb69: vPortTaskWrapper at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freertos/port/xtensa/port.c:142





ELF file SHA256: 8930ab875089e010

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:6664
load:0x40078000,len:14944
load:0x40080400,len:3816
0x40080400: _init at ??:?

entry 0x40080698
I (27) boot: ESP-IDF v4.4.4 2nd stage bootloader
I (27) boot: compile time 13:42:11
I (27) boot: chip revision: v3.0
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (37) boot.esp32: SPI Speed      : 40MHz
I (42) boot.esp32: SPI Mode       : DIO
I (46) boot.esp32: SPI Flash Size : 2MB
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 00006000
I (75) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (82) boot:  2 factory          factory app      00 00 00010000 00100000
I (90) boot: End of partition table
I (94) boot_comm: chip revision: 3, min. application chip revision: 0
I (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1b4cch (111820) map
I (150) esp_image: segment 1: paddr=0002b4f4 vaddr=3ffb0000 size=043fch ( 17404) load
I (157) esp_image: segment 2: paddr=0002f8f8 vaddr=40080000 size=00720h (  1824) load
I (158) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=80b48h (527176) map
I (355) esp_image: segment 4: paddr=000b0b70 vaddr=40080720 size=18548h ( 99656) load
I (408) boot: Loaded app from partition at offset 0x10000
I (408) boot: Disabling RNG early entropy source...
I (420) cpu_start: Pro cpu up.
I (420) cpu_start: Starting app cpu, entry point is 0x40081550
0x40081550: call_start_cpu1 at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/port/cpu_start.c:148

I (407) cpu_start: App cpu up.
I (437) cpu_start: Pro cpu start user code
I (437) cpu_start: cpu freq: 160000000
I (437) cpu_start: Application information:
I (441) cpu_start: Project name:     air_firmware
I (447) cpu_start: App version:      df74c7b
I (452) cpu_start: Compile time:     Feb  6 2023 13:41:46
I (458) cpu_start: ELF file SHA256:  8930ab875089e010...
I (464) cpu_start: ESP-IDF:          v4.4.4
I (469) heap_init: Initializing. RAM available for dynamic allocation:
I (476) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (482) heap_init: At 3FFB8A38 len 000275C8 (157 KiB): DRAM
I (488) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (494) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (501) heap_init: At 40098C68 len 00007398 (28 KiB): IRAM
I (508) spi_flash: detected chip: gd
I (511) spi_flash: flash io: dio
W (515) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (530) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Initializing...
MEMORY at start:
Heap summary for capabilities 0x00000004:
  At 0x3ffae6e0 len 6432 free 4 allocated 5912 min_free 4
    largest_free_block 0 alloc_blocks 34 free_blocks 0 total_blocks 34
  At 0x3ffb8a38 len 161224 free 136396 allocated 23780 min_free 136396
    largest_free_block 131072 alloc_blocks 27 free_blocks 1 total_blocks 28
  At 0x3ffe0440 len 15072 free 14656 allocated 0 min_free 14656
    largest_free_block 14336 alloc_blocks 0 free_blocks 1 total_blocks 1
  At 0x3ffe4350 len 113840 free 112968 allocated 0 min_free 112968
    largest_free_block 110592 alloc_blocks 0 free_blocks 1 total_blocks 1
  Totals:
    free 264024 allocated 29692 min_free 264024 largest_free_block 131072
I (804) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
MEMORY after fec:
Heap summary for capabilities 0x00000004:
  At 0x3ffae6e0 len 6432 free 4 allocated 5912 min_free 4
    largest_free_block 0 alloc_blocks 34 free_blocks 0 total_blocks 34
  At 0x3ffb8a38 len 161224 free 4 allocated 159092 min_free 4
    largest_free_block 0 alloc_blocks 297 free_blocks 0 total_blocks 297
  At 0x3ffe0440 len 15072 free 1348 allocated 13140 min_free 1348
    largest_free_block 1280 alloc_blocks 42 free_blocks 1 total_blocks 43
  At 0x3ffe4350 len 113840 free 104768 allocated 8192 min_free 104768
    largest_free_block 102400 alloc_blocks 2 free_blocks 1 total_blocks 3
  Totals:
    free 106124 allocated 186336 min_free 106124 largest_free_block 102400
I (884) wifi:wifi driver task: 3ffe9364, prio:23, stack:6656, core=0
I (884) system_api: Base MAC address is not set
I (884) system_api: read default base MAC address from EFUSE
I (914) wifi:wifi firmware version: 6567a16
I (914) wifi:wifi certification version: v7.0
I (914) wifi:config NVS flash: enabled
I (914) wifi:config nano formating: disabled
I (914) wifi:Init data frame dynamic rx buffer num: 32
I (914) wifi:Init management frame dynamic rx buffer num: 32
I (924) wifi:Init management short buffer num: 32
I (924) wifi:Init dynamic tx buffer num: 32
I (934) wifi:Init static rx buffer size: 1600
I (934) wifi:Init static rx buffer num: 10
I (944) wifi:Init dynamic rx buffer num: 32
I (944) wifi_init: rx ba win: 6
I (944) wifi_init: tcpip mbox: 32
I (954) wifi_init: udp mbox: 6
I (954) wifi_init: tcp mbox: 6
I (964) wifi_init: tcp tx win: 5744
I (964) wifi_init: tcp rx win: 5744
I (964) wifi_init: tcp mss: 1440
I (974) wifi_init: WiFi IRAM OP enabled
I (974) wifi_init: WiFi RX IRAM OP enabled
I (984) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (1084) wifi:mode : sta (e0:5a:1b:6b:d5:74)
I (1084) wifi:enable tsf
I (1084) wifi:Set ps type: 0

E (1084) wifi:can't set fix rate when tx ampdu is enabled
ESP_ERROR_CHECK failed: esp_err_t 0x106 (ESP_ERR_NOT_SUPPORTED) at 0x4008b6d4
0x4008b6d4: _esp_error_check_failed at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/esp_err.c:42

file: "../main/main.cpp" line 1154
func: void setup_wifi()
expression: set_wifi_fixed_rate(s_ground2air_config_packet.wifi_rate)

abort() was called at PC 0x4008b6d7 on core 0
0x4008b6d7: _esp_error_check_failed at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/esp_err.c:43



Backtrace: 0x40081e26:0x3ffbd780 0x4008b6e1:0x3ffbd7a0 0x4009345a:0x3ffbd7c0 0x4008b6d7:0x3ffbd830 0x400d7537:0x3ffbd850 0x400d768c:0x3ffbd950 0x4014f338:0x3ffbd9a0 0x4008eb69:0x3ffbd9c0
0x40081e26: panic_abort at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/panic.c:408

0x4008b6e1: esp_system_abort at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/esp_system.c:137

0x4009345a: abort at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/newlib/abort.c:46

0x4008b6d7: _esp_error_check_failed at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/esp_err.c:43

0x400d7537: setup_wifi() at /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/../main/main.cpp:1154 (discriminator 1)

0x400d768c: app_main at /home/daniel/Work/esp32-cam-fpv-main/air_firmware/build/../main/main.cpp:1456

0x4014f338: main_task at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freertos/port/port_common.c:141 (discriminator 2)

0x4008eb69: vPortTaskWrapper at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/freertos/port/xtensa/port.c:142





ELF file SHA256: 8930ab875089e010

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_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:6664
load:0x40078000,len:14944
load:0x40080400,len:3816
0x40080400: _init at ??:?

entry 0x40080698
I (27) boot: ESP-IDF v4.4.4 2nd stage bootloader
I (27) boot: compile time 13:42:11
I (27) boot: chip revision: v3.0
I (30) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (37) boot.esp32: SPI Speed      : 40MHz
I (42) boot.esp32: SPI Mode       : DIO
I (46) boot.esp32: SPI Flash Size : 2MB
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 00006000
I (75) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (82) boot:  2 factory          factory app      00 00 00010000 00100000
I (90) boot: End of partition table
I (94) boot_comm: chip revision: 3, min. application chip revision: 0
I (101) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1b4cch (111820) map
I (150) esp_image: segment 1: paddr=0002b4f4 vaddr=3ffb0000 size=043fch ( 17404) load
I (157) esp_image: segment 2: paddr=0002f8f8 vaddr=40080000 size=00720h (  1824) load
I (158) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=80b48h (527176) map
I (355) esp_image: segment 4: paddr=000b0b70 vaddr=40080720 size=18548h ( 99656) load
I (408) boot: Loaded app from partition at offset 0x10000
I (408) boot: Disabling RNG early entropy source...
I (420) cpu_start: Pro cpu up.
I (420) cpu_start: Starting app cpu, entry point is 0x40081550
0x40081550: call_start_cpu1 at /home/daniel/Work/esp-sdk/esp-idf-v4.4.4/components/esp_system/port/cpu_start.c:148

I (407) cpu_start: App cpu up.
I (437) cpu_start: Pro cpu start user code
I (437) cpu_start: cpu freq: 160000000
I (437) cpu_start: Application information:
I (441) cpu_start: Project name:     air_firmware
I (447) cpu_start: App version:      df74c7b
I (452) cpu_start: Compile time:     Feb  6 2023 13:41:46
I (458) cpu_start: ELF file SHA256:  8930ab875089e010...
I (464) cpu_start: ESP-IDF:          v4.4.4
I (469) heap_init: Initializing. RAM available for dynamic allocation:
I (476) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM

Done
daniel@daniel-ThinkPad-SL410:~/Work/esp32-cam-fpv-main/air_firmware$ git log -n 1
commit df74c7b83cd673cb5a32e1275c29e025a35b55b4 (HEAD -> jeanlemotan-main, origin/jeanlemotan-main, origin/HEAD)
Author: jeanlemotan <[email protected]>
Date:   Sun Feb 5 22:38:21 2023 +0100

    Changes sdkconfig for IDF4.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants