espressif / esp-drone

Mini Drone/Quadcopter Firmware for ESP32 and ESP32-S Series SoCs.
GNU General Public License v3.0
830 stars 242 forks source link

S3平台下载代码后无限重启 #50

Closed snail0815 closed 3 months ago

snail0815 commented 1 year ago

Hard resetting via RTS pin... Executing action: monitor Serial port COM838 Connecting... Detecting chip type... ESP32-S3 Running idf_monitor in directory d:\esp32\esp-drone Executing "F:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe F:\Espressif\frameworks\esp-idf-v4.4.2\tools/idf_monitor.py -p COM838 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 d:\esp32\esp-drone\build\ESPDrone.elf -m 'F:\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe' 'F:\Espressif\frameworks\esp-idf-v4.4.2\tools\idf.py'"... --- WARNING: GDB cannot open serial ports accessed as COMx --- Using \.\COM838 instead... --- idf_monitor on \.\COM838 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x40048e22 SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x17b0 load:0x403c9700,len:0xe64 load:0x403cc700,len:0x30e8 entry 0x403c9980 I (24) boot: ESP-IDF v4.4.2-dirty 2nd stage bootloader I (25) boot: compile time 15:37:22 I (25) boot: chip revision: 0 I (27) qio_mode: Enabling default flash chip QIO I (32) boot.esp32s3: Boot SPI Speed : 80MHz I (37) boot.esp32s3: SPI Mode : QIO I (41) boot.esp32s3: SPI Flash Size : 8MB I (46) boot: Enabling RNG early entropy source... I (52) boot: Partition Table: I (55) boot: ## Label Usage Type ST Offset Length I (62) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (70) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (77) boot: 2 factory factory app 00 00 00010000 00100000 I (85) boot: End of partition table I (89) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=1c2c8h (115400) map I (115) esp_image: segment 1: paddr=0002c2f0 vaddr=3fc98110 size=03d28h ( 15656) load I (118) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=828e0h (534752) map I (202) esp_image: segment 3: paddr=000b2908 vaddr=3fc9be38 size=017fch ( 6140) load I (203) esp_image: segment 4: paddr=000b410c vaddr=40374000 size=14104h ( 82180) load I (223) esp_image: segment 5: paddr=000c8218 vaddr=50000000 size=00010h ( 16) load I (232) boot: Loaded app from partition at offset 0x10000 I (232) boot: Disabling RNG early entropy source... I (244) opi psram: vendor id : 0x0d (AP) I (244) opi psram: dev id : 0x02 (generation 3) I (244) opi psram: density : 0x03 (64 Mbit) I (248) opi psram: good-die : 0x01 (Pass) I (252) opi psram: Latency : 0x01 (Fixed) I (257) opi psram: VCC : 0x01 (3V) I (262) opi psram: SRF : 0x01 (Fast Refresh) I (267) opi psram: BurstType : 0x01 (Hybrid Wrap) I (273) opi psram: BurstLen : 0x01 (32 Byte) I (278) opi psram: Readlatency : 0x02 (10 cycles@Fixed) I (284) opi psram: DriveStrength: 0x00 (1/1) I (289) spiram: Found 64MBit SPI RAM device I (294) spiram: SPI RAM mode: sram 40m I (298) spiram: PSRAM initialized, cache is in normal (1-core) mode. I (305) cpu_start: Pro cpu up. I (309) cpu_start: Starting app cpu, entry point is 0x40375520 0x40375520: call_start_cpu1 at F:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_system/port/cpu_start.c:160

I (0) cpu_start: App cpu up. I (1046) spiram: SPI SRAM memory test OK I (1055) cpu_start: Pro cpu start user code I (1055) cpu_start: cpu freq: 240000000 I (1055) cpu_start: Application information: I (1058) cpu_start: Project name: ESPDrone I (1063) cpu_start: App version: 3e8ffe3 I (1068) cpu_start: Compile time: Apr 16 2023 15:37:09 I (1075) cpu_start: ELF file SHA256: 49d5bf4ebdc5adf1... I (1081) cpu_start: ESP-IDF: v4.4.2-dirty I (1086) heap_init: Initializing. RAM available for dynamic allocation: I (1093) heap_init: At 3FCB2A20 len 0002D5E0 (181 KiB): D/IRAM I (1100) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM I (1107) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (1113) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM I (1119) spiram: Adding pool of 8192K of external SPI memory to heap allocator I (1128) spi_flash: detected chip: generic I (1132) spi_flash: flash io: qio I (1136) sleep: Configure to isolate all GPIO pins in sleep state I (1143) sleep: Enable automatic switching of GPIO sleep configuration I (1150) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1166) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations I (1187) PLATFORM: set active config I (1187) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1190) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1199) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1209) pp: pp rom version: e7ae62f I (1212) net80211: net80211 rom version: e7ae62f I (1219) wifi:wifi driver task: 3fcb7e54, prio:23, stack:6656, core=0 I (1224) system_api: Base MAC address is not set I (1229) system_api: read default base MAC address from EFUSE I (1240) wifi:wifi firmware version: eeaa27d I (1240) wifi:wifi certification version: v7.0 I (1244) wifi:config NVS flash: enabled I (1247) wifi:config nano formating: disabled I (1251) wifi:Init data frame dynamic rx buffer num: 32 I (1256) wifi:Init management frame dynamic rx buffer num: 32 I (1262) wifi:Init management short buffer num: 32 I (1266) wifi:Init static tx buffer num: 16 I (1270) wifi:Init tx cache buffer num: 32 I (1274) wifi:Init static tx FG buffer num: 2 I (1278) wifi:Init static rx buffer size: 1600 I (1282) wifi:Init static rx buffer num: 10 I (1286) wifi:Init dynamic rx buffer num: 32 I (1290) wifi_init: rx ba win: 6 I (1294) wifi_init: tcpip mbox: 32 I (1298) wifi_init: udp mbox: 6 I (1302) wifi_init: tcp mbox: 6 I (1306) wifi_init: tcp tx win: 5744 I (1310) wifi_init: tcp rx win: 5744 I (1314) wifi_init: tcp mss: 1440 I (1318) wifi_init: WiFi IRAM OP enabled I (1323) wifi_init: WiFi RX IRAM OP enabled I (1331) phy_init: phy_version 503,13653eb,Jun 1 2022,17:47:08 I (1366) wifi:mode : softAP (f4:12:fa:e6:09:cd) I (1368) wifi:Total power save buffer number: 8 I (1369) wifi:Init max length of beacon: 752/752 I (1369) wifi:Init max length of beacon: 752/752 I (1373) WIFI_UDP: wifi_init_softap complete.SSID:ESP-DRONE_F412FAE609CD password:12345678 I (1382) WIFI_UDP: Socket created I (1386) WIFI_UDP: Socket bound, port 2390 I (1390) WIFI_UDP: UDP server create socket succeed!!! I (1896) SYS: ----------------------------

I (1896) SYS: ESPlane 2.0 is up and running!

I (1897) I2CDRV: i2c 1 driver install return = 0 I (1900) EEPROM: spi_flash_init ... ! I (1905) EEPROM: spi_flash_read ok ! Characterized using Default Vref I (3167) I2CDRV: i2c 0 driver install return = 0 E (3168) SENSORS: MPU6050 I2C connection [FAIL].

ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x40375c14 0x40375c14: esp_restart_noos at F:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_system/port/soc/esp32s3/system_internal.c:143 (discriminator 1)

SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x17b0 load:0x403c9700,len:0xe64 load:0x403cc700,len:0x30e8 entry 0x403c9980 I (24) boot: ESP-IDF v4.4.2-dirty 2nd stage bootloader I (24) boot: compile time 15:37:22 I (24) boot: chip revision: 0 I (26) qio_mode: Enabling default flash chip QIO I (31) boot.esp32s3: Boot SPI Speed : 80MHz I (36) boot.esp32s3: SPI Mode : QIO I (41) boot.esp32s3: SPI Flash Size : 8MB I (46) boot: Enabling RNG early entropy source... I (51) boot: Partition Table: I (55) boot: ## Label Usage Type ST Offset Length I (62) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (77) boot: 2 factory factory app 00 00 00010000 00100000 I (84) boot: End of partition table I (89) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=1c2c8h (115400) map I (114) esp_image: segment 1: paddr=0002c2f0 vaddr=3fc98110 size=03d28h ( 15656) load I (118) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=828e0h (534752) map I (201) esp_image: segment 3: paddr=000b2908 vaddr=3fc9be38 size=017fch ( 6140) load I (203) esp_image: segment 4: paddr=000b410c vaddr=40374000 size=14104h ( 82180) load I (223) esp_image: segment 5: paddr=000c8218 vaddr=50000000 size=00010h ( 16) load I (231) boot: Loaded app from partition at offset 0x10000 I (232) boot: Disabling RNG early entropy source... I (243) opi psram: vendor id : 0x0d (AP) I (243) opi psram: dev id : 0x02 (generation 3) I (244) opi psram: density : 0x03 (64 Mbit) I (247) opi psram: good-die : 0x01 (Pass) I (252) opi psram: Latency : 0x01 (Fixed) I (257) opi psram: VCC : 0x01 (3V) I (261) opi psram: SRF : 0x01 (Fast Refresh) I (267) opi psram: BurstType : 0x01 (Hybrid Wrap) I (272) opi psram: BurstLen : 0x01 (32 Byte) I (277) opi psram: Readlatency : 0x02 (10 cycles@Fixed) I (283) opi psram: DriveStrength: 0x00 (1/1) I (288) spiram: Found 64MBit SPI RAM device I (293) spiram: SPI RAM mode: sram 40m I (298) spiram: PSRAM initialized, cache is in normal (1-core) mode. I (305) cpu_start: Pro cpu up. I (308) cpu_start: Starting app cpu, entry point is 0x40375520 0x40375520: call_start_cpu1 at F:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_system/port/cpu_start.c:160

I (297) cpu_start: App cpu up. I (1046) spiram: SPI SRAM memory test OK I (1055) cpu_start: Pro cpu start user code I (1055) cpu_start: cpu freq: 240000000 I (1055) cpu_start: Application information: I (1058) cpu_start: Project name: ESPDrone I (1063) cpu_start: App version: 3e8ffe3 I (1068) cpu_start: Compile time: Apr 16 2023 15:37:09 I (1074) cpu_start: ELF file SHA256: 49d5bf4ebdc5adf1... I (1080) cpu_start: ESP-IDF: v4.4.2-dirty I (1086) heap_init: Initializing. RAM available for dynamic allocation: I (1093) heap_init: At 3FCB2A20 len 0002D5E0 (181 KiB): D/IRAM I (1099) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM I (1106) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (1112) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM I (1119) spiram: Adding pool of 8192K of external SPI memory to heap allocator I (1127) spi_flash: detected chip: generic I (1132) spi_flash: flash io: qio I (1136) sleep: Configure to isolate all GPIO pins in sleep state I (1143) sleep: Enable automatic switching of GPIO sleep configuration I (1150) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1165) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations I (1186) PLATFORM: set active config I (1186) gpio: GPIO[7]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1189) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1198) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1208) pp: pp rom version: e7ae62f I (1211) net80211: net80211 rom version: e7ae62f I (1218) wifi:wifi driver task: 3fcb7e54, prio:23, stack:6656, core=0 I (1223) system_api: Base MAC address is not set I (1228) system_api: read default base MAC address from EFUSE I (1239) wifi:wifi firmware version: eeaa27d I (1239) wifi:wifi certification version: v7.0 I (1243) wifi:config NVS flash: enabled I (1246) wifi:config nano formating: disabled I (1250) wifi:Init data frame dynamic rx buffer num: 32 I (1255) wifi:Init management frame dynamic rx buffer num: 32 I (1261) wifi:Init management short buffer num: 32 I (1265) wifi:Init static tx buffer num: 16 I (1269) wifi:Init tx cache buffer num: 32 I (1273) wifi:Init static tx FG buffer num: 2 I (1277) wifi:Init static rx buffer size: 1600 I (1281) wifi:Init static rx buffer num: 10 I (1285) wifi:Init dynamic rx buffer num: 32 I (1289) wifi_init: rx ba win: 6 I (1293) wifi_init: tcpip mbox: 32 I (1297) wifi_init: udp mbox: 6 I (1301) wifi_init: tcp mbox: 6 I (1305) wifi_init: tcp tx win: 5744 I (1309) wifi_init: tcp rx win: 5744 I (1313) wifi_init: tcp mss: 1440 I (1317) wifi_init: WiFi IRAM OP enabled I (1322) wifi_init: WiFi RX IRAM OP enabled I (1330) phy_init: phy_version 503,13653eb,Jun 1 2022,17:47:08 I (1365) wifi:mode : softAP (f4:12:fa:e6:09:cd) I (1367) wifi:Total power save buffer number: 8 I (1368) wifi:Init max length of beacon: 752/752 I (1368) wifi:Init max length of beacon: 752/752 I (1372) WIFI_UDP: wifi_init_softap complete.SSID:ESP-DRONE_F412FAE609CD password:12345678 I (1381) WIFI_UDP: Socket created I (1384) WIFI_UDP: Socket bound, port 2390 I (1389) WIFI_UDP: UDP server create socket succeed!!! I (1895) SYS: ----------------------------

I (1895) SYS: ESPlane 2.0 is up and running!

I (1896) I2CDRV: i2c 1 driver install return = 0 I (1899) EEPROM: spi_flash_init ... ! I (1904) EEPROM: spi_flash_read ok ! Characterized using Default Vref I (3166) I2CDRV: i2c 0 driver install return = 0 E (3167) SENSORS: MPU6050 I2C connection [FAIL].

ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x4207fe26 0x4207fe26: esp_pm_impl_waiti at F:/Espressif/frameworks/esp-idf-v4.4.2/components/esp_pm/pm_impl.c:839

SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x17b0 load:0x403c9700,len:0xe64 load:0x403cc700,len:0x30e8

leeebo commented 1 year ago

@snail0815 E (3168) SENSORS: MPU6050 I2C connection [FAIL]. 请检查 MPU6050 的硬件连接