Wifi disconnect (wifi:m f null)

jirkaj4
Posts: 2
Joined: Mon Nov 07, 2022 6:45 pm

Wifi disconnect (wifi:m f null)

Postby jirkaj4 » Mon Nov 07, 2022 7:02 pm

Hi,

I started with ESP-IDF, now in version: 4.4.2

And my program reads the DS18B20 and controls the I2C device. Everything works for about 3 hours. Then the program fails.

Start log, where everything is OK.

Here is completed log

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_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:14848
load:0x40080400,len:3792
entry 0x40080694
I (27) boot: ESP-IDF v4.4.2-dirty 2nd stage bootloader
I (27) boot: compile time 19:16:30
I (27) boot: chip revision: 0
I (30) boot.esp32: SPI Speed      : 40MHz
I (35) boot.esp32: SPI Mode       : DIO
I (40) boot.esp32: SPI Flash Size : 4MB
I (44) boot: Enabling RNG early entropy source...
I (50) boot: Partition Table:
I (53) boot: ## Label            Usage          Type ST Offset   Length
I (60) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (75) boot:  2 factory          factory app      00 00 00010000 00100000
I (83) boot: End of partition table
I (87) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1616ch ( 90476)                 map
I (128) esp_image: segment 1: paddr=00026194 vaddr=3ffb0000 size=03ca8h ( 15528)                 load
I (135) esp_image: segment 2: paddr=00029e44 vaddr=40080000 size=061d4h ( 25044)                 load
I (145) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=75654h (480852)                 map
I (319) esp_image: segment 4: paddr=000a567c vaddr=400861d4 size=10404h ( 66564)                 load
I (347) esp_image: segment 5: paddr=000b5a88 vaddr=50000000 size=00010h (    16)                 load
I (358) boot: Loaded app from partition at offset 0x10000
I (358) boot: Disabling RNG early entropy source...
I (370) cpu_start: Pro cpu up.
I (370) cpu_start: Starting app cpu, entry point is 0x40081318
I (0) cpu_start: App cpu up.
I (386) cpu_start: Pro cpu start user code
I (386) cpu_start: cpu freq: 240000000
I (386) cpu_start: Application information:
I (391) cpu_start: Project name:     ESP32_aqua_control
I (397) cpu_start: App version:      1
I (401) cpu_start: Compile time:     Nov  3 2022 18:09:50
I (407) cpu_start: ELF file SHA256:  24ab9d7403b20cf1...
I (413) cpu_start: ESP-IDF:          v4.4.2-dirty
I (419) heap_init: Initializing. RAM available for dynamic allocation:
I (426) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (432) heap_init: At 3FFB7C40 len 000283C0 (160 KiB): DRAM
I (438) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (445) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (451) heap_init: At 400965D8 len 00009A28 (38 KiB): IRAM
I (458) spi_flash: detected chip: gd
I (462) spi_flash: flash io: dio
I (466) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (18) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown                : 0| Intr:0
I (19) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldow                n: 0| Intr:0
I (26) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldow                n: 0| Intr:0
I (35) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldow                n: 0| Intr:0
I (44) MAIN: Task_GPIO_2 running on core: 1, xDelay = 1
I (150) MAIN: Task_DS18B20 running on core: 1, xDelay = 1
I (151) MAIN: Find devices:
I (176) MAIN:   0 : 5f3c01d607cb8228
I (201) MAIN:   1 : f13c01d607f01728
I (201) MAIN: Found 2 devices
I (250) MAIN: Task_LCD running on core: 1, xDelay = 1
I (251) SH1106: SH1106 OLED configured successfully
I (300) MAIN: Task_SHT30 running on core: 1, xDelay = 1
I (2509) wifi:wifi driver task: 3ffc3bb4, prio:23, stack:6656, core=0
I (2510) system_api: Base MAC address is not set
I (2510) system_api: read default base MAC address from EFUSE
I (2519) wifi:wifi firmware version: eeaa27d
I (2520) wifi:wifi certification version: v7.0
I (2524) wifi:config NVS flash: enabled
I (2528) wifi:config nano formating: disabled
I (2532) wifi:Init data frame dynamic rx buffer num: 32
I (2537) wifi:Init management frame dynamic rx buffer num: 32
I (2542) wifi:Init management short buffer num: 32
I (2547) wifi:Init dynamic tx buffer num: 32
I (2551) wifi:Init static rx buffer size: 1600
I (2555) wifi:Init static rx buffer num: 10
I (2559) wifi:Init dynamic rx buffer num: 32
I (2564) wifi_init: rx ba win: 6
I (2567) wifi_init: tcpip mbox: 32
I (2571) wifi_init: udp mbox: 6
I (2575) wifi_init: tcp mbox: 6
I (2579) wifi_init: tcp tx win: 5744
I (2583) wifi_init: tcp rx win: 5744
I (2587) wifi_init: tcp mss: 1440
I (2591) wifi_init: WiFi IRAM OP enabled
I (2596) wifi_init: WiFi RX IRAM OP enabled
I (2601) CNT: Connecting to JirkaWajfaj...
I (2606) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (2708) wifi:mode : sta (30:ae:a4:05:af:3c)
I (2709) wifi:enable tsf
I (2712) CNT: Waiting for IP(s)
I (3442) wifi:new:<7,0>, old:<1,0>, ap:<255,255>, sta:<7,0>, prof:1
I (4545) wifi:state: init -> auth (b0)
I (4583) wifi:state: auth -> assoc (0)
I (4611) wifi:state: assoc -> run (10)
I (4745) wifi:connected with JirkaWajfaj, aid = 3, channel 7, BW20, bssid = ec:4                1:18:ec:33:6e
I (4746) wifi:security: WPA2-PSK, phy: bgn, rssi: -47
I (4748) wifi:pm start, type: 1

I (4812) wifi:AP's beacon interval = 102400 us, DTIM period = 1
W (5031) wifi:<ba-add>idx:0 (ifx:0, ec:41:18:ec:33:6e), tid:6, ssn:0, winSize:64
I (6008) esp_netif_handlers: CNT: sta ip: 192.168.31.181, mask: 255.255.255.0, g                w: 192.168.31.1
I (6009) CNT: Got IPv4 event: Interface "CNT: sta" address: 192.168.31.181
I (6015) CNT: Connected to CNT: sta
I (6019) CNT: - IPv4 address: 192.168.31.181
I (6024) CNT: NTP_task running on core: 1, xDelay = 1
I (6030) CNT: Initializing SNTP
I (6034) CNT: Waiting for system time to be set... (1/10)
W (8026) wifi:<ba-add>idx:1 (ifx:0, ec:41:18:ec:33:6e), tid:0, ssn:3, winSize:64
I (8040) CNT: Waiting for system time to be set... (2/10)
I (8927) CNT: Notification of a time synchronization event
I (10041) CNT: The current date/time: Mon Nov  7 16:31:51 2022
I (70042) CNT: The current date/time: Mon Nov  7 16:32:51 2022
I (130043) CNT: The current date/time: Mon Nov  7 16:33:51 2022
I (190044) CNT: The current date/time: Mon Nov  7 16:34:51 2022
I (250045) CNT: The current date/time: Mon Nov  7 16:35:51 2022
I (310046) CNT: The current date/time: Mon Nov  7 16:36:51 2022
I (370047) CNT: The current date/time: Mon Nov  7 16:37:51 2022
I (430048) CNT: The current date/time: Mon Nov  7 16:38:51 2022
I (490049) CNT: The current date/time: Mon Nov  7 16:39:51 2022
I (550050) CNT: The current date/time: Mon Nov  7 16:40:51 2022
I (610051) CNT: The current date/time: Mon Nov  7 16:41:51 2022
I (670052) CNT: The current date/time: Mon Nov  7 16:42:51 2022
I (730053) CNT: The current date/time: Mon Nov  7 16:43:51 2022
I (790054) CNT: The current date/time: Mon Nov  7 16:44:51 2022
I (850055) CNT: The current date/time: Mon Nov  7 16:45:51 2022
I (910056) CNT: The current date/time: Mon Nov  7 16:46:51 2022
I (970057) CNT: The current date/time: Mon Nov  7 16:47:51 2022
I (1030058) CNT: The current date/time: Mon Nov  7 16:48:51 2022
I (1090059) CNT: The current date/time: Mon Nov  7 16:49:51 2022
I (1150060) CNT: The current date/time: Mon Nov  7 16:50:51 2022
I (1210061) CNT: The current date/time: Mon Nov  7 16:51:51 2022
I (1270062) CNT: The current date/time: Mon Nov  7 16:52:51 2022
I (1330063) CNT: The current date/time: Mon Nov  7 16:53:51 2022
I (1390064) CNT: The current date/time: Mon Nov  7 16:54:51 2022
I (1450065) CNT: The current date/time: Mon Nov  7 16:55:51 2022
I (1510066) CNT: The current date/time: Mon Nov  7 16:56:51 2022
I (1570067) CNT: The current date/time: Mon Nov  7 16:57:51 2022
I (1630068) CNT: The current date/time: Mon Nov  7 16:58:51 2022
I (1690069) CNT: The current date/time: Mon Nov  7 16:59:51 2022
I (1750070) CNT: The current date/time: Mon Nov  7 17:00:51 2022
I (1810071) CNT: The current date/time: Mon Nov  7 17:01:51 2022
I (1870072) CNT: The current date/time: Mon Nov  7 17:02:51 2022
I (1930073) CNT: The current date/time: Mon Nov  7 17:03:51 2022
I (1990074) CNT: The current date/time: Mon Nov  7 17:04:51 2022
I (2050075) CNT: The current date/time: Mon Nov  7 17:05:51 2022
I (2110076) CNT: The current date/time: Mon Nov  7 17:06:51 2022
I (2170077) CNT: The current date/time: Mon Nov  7 17:07:51 2022
I (2230078) CNT: The current date/time: Mon Nov  7 17:08:51 2022
I (2290079) CNT: The current date/time: Mon Nov  7 17:09:51 2022
I (2350080) CNT: The current date/time: Mon Nov  7 17:10:51 2022
I (2410081) CNT: The current date/time: Mon Nov  7 17:11:51 2022
I (2470082) CNT: The current date/time: Mon Nov  7 17:12:51 2022
I (2530083) CNT: The current date/time: Mon Nov  7 17:13:51 2022
I (2590084) CNT: The current date/time: Mon Nov  7 17:14:51 2022
I (2650085) CNT: The current date/time: Mon Nov  7 17:15:51 2022
I (2710086) CNT: The current date/time: Mon Nov  7 17:16:51 2022
I (2770087) CNT: The current date/time: Mon Nov  7 17:17:51 2022
I (2830088) CNT: The current date/time: Mon Nov  7 17:18:51 2022
I (2890089) CNT: The current date/time: Mon Nov  7 17:19:51 2022
I (2950090) CNT: The current date/time: Mon Nov  7 17:20:51 2022
I (3010091) CNT: The current date/time: Mon Nov  7 17:21:51 2022
I (3070092) CNT: The current date/time: Mon Nov  7 17:22:51 2022
I (3130093) CNT: The current date/time: Mon Nov  7 17:23:51 2022
I (3190094) CNT: The current date/time: Mon Nov  7 17:24:51 2022
I (3250095) CNT: The current date/time: Mon Nov  7 17:25:51 2022
I (3310096) CNT: The current date/time: Mon Nov  7 17:26:51 2022
I (3370097) CNT: The current date/time: Mon Nov  7 17:27:51 2022
I (3430098) CNT: The current date/time: Mon Nov  7 17:28:51 2022
I (3490099) CNT: The current date/time: Mon Nov  7 17:29:51 2022
I (3550100) CNT: The current date/time: Mon Nov  7 17:30:51 2022
I (3609256) CNT: Notification of a time synchronization event
I (3610101) CNT: The current date/time: Mon Nov  7 17:31:50 2022
I (3670102) CNT: The current date/time: Mon Nov  7 17:32:50 2022
I (3730103) CNT: The current date/time: Mon Nov  7 17:33:50 2022
I (3790104) CNT: The current date/time: Mon Nov  7 17:34:50 2022
I (3850105) CNT: The current date/time: Mon Nov  7 17:35:50 2022
I (3910106) CNT: The current date/time: Mon Nov  7 17:36:50 2022
I (3970107) CNT: The current date/time: Mon Nov  7 17:37:50 2022
I (4030108) CNT: The current date/time: Mon Nov  7 17:38:50 2022
I (4090109) CNT: The current date/time: Mon Nov  7 17:39:50 2022
I (4150110) CNT: The current date/time: Mon Nov  7 17:40:50 2022
I (4210111) CNT: The current date/time: Mon Nov  7 17:41:50 2022
I (4270112) CNT: The current date/time: Mon Nov  7 17:42:50 2022
I (4330113) CNT: The current date/time: Mon Nov  7 17:43:50 2022
I (4390114) CNT: The current date/time: Mon Nov  7 17:44:50 2022
I (4450115) CNT: The current date/time: Mon Nov  7 17:45:50 2022
I (4510116) CNT: The current date/time: Mon Nov  7 17:46:50 2022
I (4570117) CNT: The current date/time: Mon Nov  7 17:47:50 2022
I (4630118) CNT: The current date/time: Mon Nov  7 17:48:50 2022
I (4690119) CNT: The current date/time: Mon Nov  7 17:49:50 2022
I (4750120) CNT: The current date/time: Mon Nov  7 17:50:50 2022
I (4810121) CNT: The current date/time: Mon Nov  7 17:51:50 2022
I (4870122) CNT: The current date/time: Mon Nov  7 17:52:50 2022
I (4930123) CNT: The current date/time: Mon Nov  7 17:53:50 2022
I (4990124) CNT: The current date/time: Mon Nov  7 17:54:50 2022
I (5050125) CNT: The current date/time: Mon Nov  7 17:55:50 2022
I (5110126) CNT: The current date/time: Mon Nov  7 17:56:50 2022
I (5170127) CNT: The current date/time: Mon Nov  7 17:57:50 2022
I (5230128) CNT: The current date/time: Mon Nov  7 17:58:50 2022
I (5290129) CNT: The current date/time: Mon Nov  7 17:59:50 2022
I (5350130) CNT: The current date/time: Mon Nov  7 18:00:50 2022
I (5410131) CNT: The current date/time: Mon Nov  7 18:01:50 2022
I (5470132) CNT: The current date/time: Mon Nov  7 18:02:50 2022
I (5530133) CNT: The current date/time: Mon Nov  7 18:03:50 2022
I (5590134) CNT: The current date/time: Mon Nov  7 18:04:50 2022
I (5650135) CNT: The current date/time: Mon Nov  7 18:05:50 2022
I (5710136) CNT: The current date/time: Mon Nov  7 18:06:50 2022
I (5770137) CNT: The current date/time: Mon Nov  7 18:07:50 2022
I (5830138) CNT: The current date/time: Mon Nov  7 18:08:50 2022
I (5890139) CNT: The current date/time: Mon Nov  7 18:09:50 2022
I (5950140) CNT: The current date/time: Mon Nov  7 18:10:50 2022
I (6010141) CNT: The current date/time: Mon Nov  7 18:11:50 2022
I (6070142) CNT: The current date/time: Mon Nov  7 18:12:50 2022
I (6130143) CNT: The current date/time: Mon Nov  7 18:13:50 2022
I (6190144) CNT: The current date/time: Mon Nov  7 18:14:50 2022
I (6250145) CNT: The current date/time: Mon Nov  7 18:15:50 2022
I (6310146) CNT: The current date/time: Mon Nov  7 18:16:50 2022
I (6370147) CNT: The current date/time: Mon Nov  7 18:17:50 2022
I (6430148) CNT: The current date/time: Mon Nov  7 18:18:50 2022
I (6490149) CNT: The current date/time: Mon Nov  7 18:19:50 2022
I (6550150) CNT: The current date/time: Mon Nov  7 18:20:50 2022
I (6610151) CNT: The current date/time: Mon Nov  7 18:21:50 2022
I (6670152) CNT: The current date/time: Mon Nov  7 18:22:50 2022
I (6730153) CNT: The current date/time: Mon Nov  7 18:23:50 2022
I (6790154) CNT: The current date/time: Mon Nov  7 18:24:50 2022
I (6850155) CNT: The current date/time: Mon Nov  7 18:25:50 2022
I (6910156) CNT: The current date/time: Mon Nov  7 18:26:50 2022
I (6970157) CNT: The current date/time: Mon Nov  7 18:27:50 2022
I (7030158) CNT: The current date/time: Mon Nov  7 18:28:50 2022
I (7090159) CNT: The current date/time: Mon Nov  7 18:29:50 2022
I (7150160) CNT: The current date/time: Mon Nov  7 18:30:50 2022
I (7209304) CNT: Notification of a time synchronization event
I (7210161) CNT: The current date/time: Mon Nov  7 18:31:51 2022
I (7270162) CNT: The current date/time: Mon Nov  7 18:32:51 2022
I (7330163) CNT: The current date/time: Mon Nov  7 18:33:51 2022
I (7390164) CNT: The current date/time: Mon Nov  7 18:34:51 2022
I (7450165) CNT: The current date/time: Mon Nov  7 18:35:51 2022
I (7510166) CNT: The current date/time: Mon Nov  7 18:36:51 2022
I (7570167) CNT: The current date/time: Mon Nov  7 18:37:51 2022
I (7630168) CNT: The current date/time: Mon Nov  7 18:38:51 2022
I (7690169) CNT: The current date/time: Mon Nov  7 18:39:51 2022
I (7750170) CNT: The current date/time: Mon Nov  7 18:40:51 2022
I (7810171) CNT: The current date/time: Mon Nov  7 18:41:51 2022
I (7870172) CNT: The current date/time: Mon Nov  7 18:42:51 2022
I (7930173) CNT: The current date/time: Mon Nov  7 18:43:51 2022
I (7990174) CNT: The current date/time: Mon Nov  7 18:44:51 2022
I (8050175) CNT: The current date/time: Mon Nov  7 18:45:51 2022
I (8110176) CNT: The current date/time: Mon Nov  7 18:46:51 2022
I (8170177) CNT: The current date/time: Mon Nov  7 18:47:51 2022
I (8230178) CNT: The current date/time: Mon Nov  7 18:48:51 2022
I (8290179) CNT: The current date/time: Mon Nov  7 18:49:51 2022
I (8350180) CNT: The current date/time: Mon Nov  7 18:50:51 2022
I (8410181) CNT: The current date/time: Mon Nov  7 18:51:51 2022
I (8470182) CNT: The current date/time: Mon Nov  7 18:52:51 2022
I (8530183) CNT: The current date/time: Mon Nov  7 18:53:51 2022
I (8590184) CNT: The current date/time: Mon Nov  7 18:54:51 2022
I (8650185) CNT: The current date/time: Mon Nov  7 18:55:51 2022
I (8710186) CNT: The current date/time: Mon Nov  7 18:56:51 2022
I (8770187) CNT: The current date/time: Mon Nov  7 18:57:51 2022
I (8830188) CNT: The current date/time: Mon Nov  7 18:58:51 2022
I (8890189) CNT: The current date/time: Mon Nov  7 18:59:51 2022
I (8950190) CNT: The current date/time: Mon Nov  7 19:00:51 2022
I (9010191) CNT: The current date/time: Mon Nov  7 19:01:51 2022
I (9070192) CNT: The current date/time: Mon Nov  7 19:02:51 2022
I (9130193) CNT: The current date/time: Mon Nov  7 19:03:51 2022
I (9190194) CNT: The current date/time: Mon Nov  7 19:04:51 2022
I (9250195) CNT: The current date/time: Mon Nov  7 19:05:51 2022
I (9310196) CNT: The current date/time: Mon Nov  7 19:06:51 2022
I (9370197) CNT: The current date/time: Mon Nov  7 19:07:51 2022
I (9430198) CNT: The current date/time: Mon Nov  7 19:08:51 2022
I (9490199) CNT: The current date/time: Mon Nov  7 19:09:51 2022
I (9550200) CNT: The current date/time: Mon Nov  7 19:10:51 2022
I (9610201) CNT: The current date/time: Mon Nov  7 19:11:51 2022
I (9670202) CNT: The current date/time: Mon Nov  7 19:12:51 2022
I (9730203) CNT: The current date/time: Mon Nov  7 19:13:51 2022
I (9790204) CNT: The current date/time: Mon Nov  7 19:14:51 2022
I (9850205) CNT: The current date/time: Mon Nov  7 19:15:51 2022
I (9910206) CNT: The current date/time: Mon Nov  7 19:16:51 2022
I (9970207) CNT: The current date/time: Mon Nov  7 19:17:51 2022
I (10030208) CNT: The current date/time: Mon Nov  7 19:18:51 2022
I (10090209) CNT: The current date/time: Mon Nov  7 19:19:51 2022
I (10150210) CNT: The current date/time: Mon Nov  7 19:20:51 2022
I (10210211) CNT: The current date/time: Mon Nov  7 19:21:51 2022
I (10270212) CNT: The current date/time: Mon Nov  7 19:22:51 2022
I (10330213) CNT: The current date/time: Mon Nov  7 19:23:51 2022
I (10390214) CNT: The current date/time: Mon Nov  7 19:24:51 2022
I (10450215) CNT: The current date/time: Mon Nov  7 19:25:51 2022
I (10510216) CNT: The current date/time: Mon Nov  7 19:26:51 2022
I (10570217) CNT: The current date/time: Mon Nov  7 19:27:51 2022
I (10630218) CNT: The current date/time: Mon Nov  7 19:28:51 2022
I (10690219) CNT: The current date/time: Mon Nov  7 19:29:51 2022
I (10750220) CNT: The current date/time: Mon Nov  7 19:30:51 2022
I (10809528) CNT: Notification of a time synchronization event
I (10810221) CNT: The current date/time: Mon Nov  7 19:31:51 2022
I (10870222) CNT: The current date/time: Mon Nov  7 19:32:51 2022
I (10930223) CNT: The current date/time: Mon Nov  7 19:33:51 2022
I (10990224) CNT: The current date/time: Mon Nov  7 19:34:51 2022
I (11050225) CNT: The current date/time: Mon Nov  7 19:35:51 2022
I (11110226) CNT: The current date/time: Mon Nov  7 19:36:51 2022
I (11170227) CNT: The current date/time: Mon Nov  7 19:37:51 2022
I (11230228) CNT: The current date/time: Mon Nov  7 19:38:51 2022
I (11290229) CNT: The current date/time: Mon Nov  7 19:39:51 2022
I (11350230) CNT: The current date/time: Mon Nov  7 19:40:51 2022
I (11410231) CNT: The current date/time: Mon Nov  7 19:41:51 2022
W (11437659) wifi:m f null

I (11448370) wifi:bcn_timout,ap_probe_send_start
I (11450872) wifi:ap_probe_send over, resett wifi status to disassoc
I (11450872) wifi:state: run -> init (c800)
I (11450873) wifi:pm stop, total sleep time: 10559157263 us / 11446122736 us

W (11450878) wifi:<ba-del>idx
W (11450881) wifi:<ba-del>idx
I (11450884) wifi:new:<7,0>, old:<7,0>, ap:<255,255>, sta:<7,0>, prof:1
I (11450892) CNT: Wi-Fi disconnected, trying to reconnect...
I (11453305) CNT: Wi-Fi disconnected, trying to reconnect...
I (11455713) CNT: Wi-Fi disconnected, trying to reconnect...
I (11458121) CNT: Wi-Fi disconnected, trying to reconnect...
I (11460529) CNT: Wi-Fi disconnected, trying to reconnect...
I (11462937) CNT: Wi-Fi disconnected, trying to reconnect...
I (11465345) CNT: Wi-Fi disconnected, trying to reconnect...
I (11467753) CNT: Wi-Fi disconnected, trying to reconnect...
I (11470161) CNT: Wi-Fi disconnected, trying to reconnect...
I (11470232) CNT: The current date/time: Mon Nov  7 19:42:51 2022
I (11472569) CNT: Wi-Fi disconnected, trying to reconnect...
I (11474977) CNT: Wi-Fi disconnected, trying to reconnect...
I (11477386) CNT: Wi-Fi disconnected, trying to reconnect...
I (11479794) CNT: Wi-Fi disconnected, trying to reconnect...
I (11482202) CNT: Wi-Fi disconnected, trying to reconnect...
I (11484610) CNT: Wi-Fi disconnected, trying to reconnect...
I (11487018) CNT: Wi-Fi disconnected, trying to reconnect...
I (11489427) CNT: Wi-Fi disconnected, trying to reconnect...
I (11491835) CNT: Wi-Fi disconnected, trying to reconnect...
I (11494243) CNT: Wi-Fi disconnected, trying to reconnect...
I (11496651) CNT: Wi-Fi disconnected, trying to reconnect...
I (11499059) CNT: Wi-Fi disconnected, trying to reconnect...
I (11501468) CNT: Wi-Fi disconnected, trying to reconnect...
I (11503876) CNT: Wi-Fi disconnected, trying to reconnect...
I (11506284) CNT: Wi-Fi disconnected, trying to reconnect...
I (11508692) CNT: Wi-Fi disconnected, trying to reconnect...
I (11511100) CNT: Wi-Fi disconnected, trying to reconnect...
I (11513509) CNT: Wi-Fi disconnected, trying to reconnect...
I (11515917) CNT: Wi-Fi disconnected, trying to reconnect...
I (11518325) CNT: Wi-Fi disconnected, trying to reconnect...
I (11520733) CNT: Wi-Fi disconnected, trying to reconnect...
I (11523142) CNT: Wi-Fi disconnected, trying to reconnect...
I (11525550) CNT: Wi-Fi disconnected, trying to reconnect...
I (11527958) CNT: Wi-Fi disconnected, trying to reconnect...
I (11530233) CNT: The current date/time: Mon Nov  7 19:43:51 2022
I (11530366) CNT: Wi-Fi disconnected, trying to reconnect...
E (11531332) i2c: i2c command link malloc error
I (11532774) CNT: Wi-Fi disconnected, trying to reconnect...
I (11535183) CNT: Wi-Fi disconnected, trying to reconnect...
I (11537591) CNT: Wi-Fi disconnected, trying to reconnect...
E (11539336) i2c: i2c command link malloc error
E (11539339) i2c: i2c command link malloc error
E (11539341) i2c: i2c command link malloc error
E (11539343) i2c: i2c command link malloc error
I (11539999) CNT: Wi-Fi disconnected, trying to reconnect...
W (11540000) wifi:m f probe req l=0

W (11540121) wifi:m f probe req l=0

W (11540241) wifi:m f probe req l=0

E (11540337) i2c: i2c command link malloc error
E (11540338) i2c: i2c command link malloc error
E (11540338) i2c: i2c command link malloc error
E (11540342) i2c: i2c command link malloc error
E (11540349) i2c: i2c command link malloc error
E (11540352) i2c: i2c command link malloc error
E (11540357) i2c: i2c command link malloc error
W (11540362) wifi:m f probe req l=0
E (11540363) i2c: i2c command link malloc error

W (11540492) wifi:m f probe req l=0

W (11540612) wifi:m f probe req l=0

W (11540733) wifi:m f probe req l=0

W (11540854) wifi:m f probe req l=0

W (11540974) wifi:m f probe req l=0

W (11541095) wifi:m f probe req l=0

W (11541215) wifi:m f probe req l=0

E (11541338) i2c: i2c command link malloc error
E (11541338) i2c: i2c command link malloc error
E (11541339) i2c: i2c command link malloc error
E (11541343) i2c: i2c command link malloc error
E (11541348) i2c: i2c command link malloc error
E (11541353) i2c: i2c command link malloc error
E (11541360) i2c: i2c command link malloc error
E (11541364) i2c: i2c command link malloc error
E (11541369) i2c: i2c command link malloc error
E (11541374) i2c: i2c command link malloc error
E (11541379) i2c: i2c command link malloc error
E (11541384) i2c: i2c command link malloc error
E (11541391) i2c: i2c command link malloc error
E (11541395) i2c: i2c command link malloc error
E (11541400) i2c: i2c command link malloc error
E (11541405) i2c: i2c command link malloc error
E (11541410) i2c: i2c command link malloc error
E (11541416) i2c: i2c command link malloc error
E (11541422) i2c: i2c command link malloc error
E (11541426) i2c: i2c command link malloc error
E (11541431) i2c: i2c command link malloc error
E (11541436) i2c: i2c command link malloc error
E (11541442) i2c: i2c command link malloc error
E (11541447) i2c: i2c command link malloc error
E (11542339) i2c: i2c command link malloc error
E (11542339) i2c: i2c command link malloc error
E (11542340) i2c: i2c command link malloc error
E (11542344) i2c: i2c command link malloc error
E (11542349) i2c: i2c command link malloc error
E (11542354) i2c: i2c command link malloc error
E (11542361) i2c: i2c command link malloc error
E (11542365) i2c: i2c command link malloc error
E (11542370) i2c: i2c command link malloc error
E (11542375) i2c: i2c command link malloc error
E (11542380) i2c: i2c command link malloc error
E (11542385) i2c: i2c command link malloc error
I (11542418) CNT: Wi-Fi disconnected, trying to reconnect...
W (11542418) wifi:m f probe req l=0

W (11542539) wifi:m f probe req l=0

W (11542660) wifi:m f probe req l=0

W (11542780) wifi:m f probe req l=0

W (11542901) wifi:m f probe req l=0

W (11543022) wifi:m f probe req l=0

W (11543142) wifi:m f probe req l=0

W (11543263) wifi:m f probe req l=0

E (11543340) i2c: i2c command link malloc error
E (11543340) i2c: i2c command link malloc error
E (11543340) i2c: i2c command link malloc error
E (11543345) i2c: i2c command link malloc error
E (11543350) i2c: i2c command link malloc error
E (11543355) i2c: i2c command link malloc error
E (11543360) i2c: i2c command link malloc error
E (11543366) i2c: i2c command link malloc error
E (11543371) i2c: i2c command link malloc error
E (11543376) i2c: i2c command link malloc error
E (11543381) i2c: i2c command link malloc error
W (11543384) wifi:m f probe req l=0
E (11543386) i2c: i2c command link malloc error

E (11543395) i2c: i2c command link malloc error
E (11543400) i2c: i2c command link malloc error
E (11543406) i2c: i2c command link malloc error
E (11543411) i2c: i2c command link malloc error
E (11543416) i2c: i2c command link malloc error
E (11543422) i2c: i2c command link malloc error
E (11543426) i2c: i2c command link malloc error
E (11543432) i2c: i2c command link malloc error
E (11543437) i2c: i2c command link malloc error
E (11543442) i2c: i2c command link malloc error
E (11543447) i2c: i2c command link malloc error
W (11543515) wifi:m f probe req l=0

E (11543619) i2c: i2c command link malloc error
W (11543636) wifi:m f probe req l=0

E (11543649) i2c: i2c command link malloc error
E (11543650) MAIN: SHT30 CRC fail
E (11544341) i2c: i2c command link malloc error
E (11544341) i2c: i2c command link malloc error
E (11544341) i2c: i2c command link malloc error
E (11544346) i2c: i2c command link malloc error
E (11544351) i2c: i2c command link malloc error
E (11544356) i2c: i2c command link malloc error
E (11544361) i2c: i2c command link malloc error
E (11544367) i2c: i2c command link malloc error
E (11544372) i2c: i2c command link malloc error
E (11544377) i2c: i2c command link malloc error
E (11544382) i2c: i2c command link malloc error
E (11544387) i2c: i2c command link malloc error
E (11544393) i2c: i2c command link malloc error
E (11544398) i2c: i2c command link malloc error
E (11544403) i2c: i2c command link malloc error
E (11544408) i2c: i2c command link malloc error
E (11544414) i2c: i2c command link malloc error
E (11544419) i2c: i2c command link malloc error
E (11544424) i2c: i2c command link malloc error
E (11544429) i2c: i2c command link malloc error
E (11544435) i2c: i2c command link malloc error
E (11544440) i2c: i2c command link malloc error
E (11544445) i2c: i2c command link malloc error
E (11544450) i2c: i2c command link malloc error
E (11544455) i2c: i2c command link malloc error
E (11544460) i2c: i2c command link malloc error
E (11544466) i2c: i2c command link malloc error
E (11544471) i2c: i2c command link malloc error
E (11544476) i2c: i2c command link malloc error
E (11544481) i2c: i2c command link malloc error
E (11544487) i2c: i2c command link malloc error
E (11544492) i2c: i2c command link malloc error
E (11544497) i2c: i2c command link malloc error
E (11544502) i2c: i2c command link malloc error
E (11544507) i2c: i2c command link malloc error
E (11544512) i2c: i2c command link malloc error
E (11544518) i2c: i2c command link malloc error
E (11544523) i2c: i2c command link malloc error
E (11544528) i2c: i2c command link malloc error
E (11544533) i2c: i2c command link malloc error
I (11544838) CNT: Wi-Fi disconnected, trying to reconnect...
W (11544839) wifi:m f probe req l=0

W (11544960) wifi:m f probe req l=0

W (11545080) wifi:m f probe req l=0

W (11545201) wifi:m f probe req l=0

W (11545322) wifi:m f probe req l=0

E (11545342) i2c: i2c command link malloc error
E (11545342) i2c: i2c command link malloc error
E (11545342) i2c: i2c command link malloc error
E (11545347) i2c: i2c command link malloc error
E (11545352) i2c: i2c command link malloc error
E (11545357) i2c: i2c command link malloc error
W (11545442) wifi:m f probe req l=0

W (11545563) wifi:m f probe req l=0

W (11545684) wifi:m f probe req l=0

W (11545804) wifi:m f probe req l=0

W (11545925) wifi:m f probe req l=0

W (11546045) wifi:m f probe req l=0

E (11546149) i2c: i2c_master_start(1165): i2c command link error
E (11546149) i2c: i2c_master_write_byte(1204): i2c command link error
E (11546152) i2c: i2c_master_write_byte(1204): i2c command link error
E (11546159) i2c: i2c_master_write_byte(1204): i2c command link error
E (11546166) i2c: i2c_master_stop(1173): i2c command link error
E (11546172) i2c: i2c_master_cmd_begin(1415): i2c command link error
E (11546179) i2c: i2c_master_start(1165): i2c command link error
E (11546186) i2c: i2c_master_write_byte(1204): i2c command link error
E (11546193) i2c: i2c_master_read(1253): i2c command link error
E (11546200) i2c: i2c_master_stop(1173): i2c command link error
E (11546206) i2c: i2c_master_cmd_begin(1415): i2c command link error
E (11546213) MAIN: SHT30 CRC fail
E (11546362) i2c: i2c command link malloc error
E (11546362) i2c: i2c command link malloc error
E (11546362) i2c: i2c command link malloc error
E (11546367) i2c: i2c command link malloc error
E (11546372) i2c: i2c command link malloc error
E (11546377) i2c: i2c command link malloc error
E (11546382) i2c: i2c command link malloc error
E (11546388) i2c: i2c command link malloc error
E (11546393) i2c: i2c command link malloc error
E (11546398) i2c: i2c command link malloc error
E (11546404) i2c: i2c command link malloc error
E (11546408) i2c: i2c command link malloc error
E (11546414) i2c: i2c command link malloc error
E (11546420) i2c: i2c command link malloc error
E (11546424) i2c: i2c command link malloc error
E (11546429) i2c: i2c command link malloc error
E (11546435) i2c: i2c command link malloc error
E (11546440) i2c: i2c command link malloc error
E (11546445) i2c: i2c command link malloc error
E (11546451) i2c: i2c command link malloc error
E (11546455) i2c: i2c command link malloc error
E (11546460) i2c: i2c command link malloc error
E (11546467) i2c: i2c command link malloc error
E (11546471) i2c: i2c command link malloc error
E (11546476) i2c: i2c command link malloc error
E (11546481) i2c: i2c command link malloc error
E (11546486) i2c: i2c command link malloc error
E (11546492) i2c: i2c command link malloc error
E (11546497) i2c: i2c command link malloc error
E (11546502) i2c: i2c command link malloc error
E (11546507) i2c: i2c command link malloc error

***ERROR*** A stack overflow in task Task_LCD has been detected.


Backtrace:0x40081bde:0x3ffbdba00x40089db9:0x3ffbdbc0 0x4008d7de:0x3ffbdbe0 0x4008bafb:0x3ffbdc60 0x40089eb4:0x3ffbdc80 0x40089e66:0x3f000000  |<-CORRUPTED
Problem start in here:

Code: Select all

W (11437659) wifi:m f null

I (11448370) wifi:bcn_timout,ap_probe_send_start
I (11450872) wifi:ap_probe_send over, resett wifi status to disassoc
I (11450872) wifi:state: run -> init (c800)
I (11450873) wifi:pm stop, total sleep time: 10559157263 us / 11446122736 us

W (11450878) wifi:<ba-del>idx
W (11450881) wifi:<ba-del>idx
I (11450884) wifi:new:<7,0>, old:<7,0>, ap:<255,255>, sta:<7,0>, prof:1
In main I have:

Code: Select all

	ESP_ERROR_CHECK(nvs_flash_init());

	/* init tasks */
	xTaskCreatePinnedToCore(Task_GPIO, 		"Task_GPIO", 	2048, NULL, RTOS_PRIORITY4, NULL, 1);
	xTaskCreatePinnedToCore(Task_DS18B20, 	"Task_DS18B20", 2048, NULL, RTOS_PRIORITY3, NULL, 1);
	xTaskCreatePinnedToCore(Task_LCD, 		"Task_LCD", 	2048, NULL, RTOS_PRIORITY2, NULL, 1);
	xTaskCreatePinnedToCore(Task_SHT30, 	"Task_SHT30", 	2048, NULL, RTOS_PRIORITY1, NULL, 1);
	Start_wifi(RTOS_PRIORITY5); // value 5
Where Start_wifi is my own component:
Wifi_Component.zip
Conponent for reading time
(4.4 KiB) Downloaded 116 times
Any idea what could be wrong? I've been looking all day, but I don't know what to grab.

jirkaj4
Posts: 2
Joined: Mon Nov 07, 2022 6:45 pm

Re: Wifi disconnect (wifi:m f null)

Postby jirkaj4 » Thu Dec 22, 2022 6:54 pm

Hello to everybody.

Do you know where I was wrong? It's stupid, but I made a driver for the SHT30 over I2C. And once every xy milliseconds I read the temperature.

Code: Select all

void sht30_measure(void) {
	i2c_cmd_handle_t cmd = i2c_cmd_link_create();;

	cmd = i2c_cmd_link_create();
	i2c_master_start(cmd);
	i2c_master_write_byte(cmd, (SHT30_I2C_ADDRESS << 1) | I2C_MASTER_WRITE, true);
	i2c_master_write_byte(cmd, 0x2C, true);	// Send measurement command(0x2C)
	i2c_master_write_byte(cmd, 0x06, true); // High repeatability measurement(0x06)
	i2c_master_stop(cmd);
	i2c_master_cmd_begin(I2C_NUM_0, cmd, 10 / portTICK_PERIOD_MS);
	i2c_cmd_link_delete(cmd);
}
And look at these two lines.

Code: Select all

	i2c_cmd_handle_t cmd = i2c_cmd_link_create();
	cmd = i2c_cmd_link_create();
If we look inside the function:

Code: Select all

i2c_cmd_handle_t i2c_cmd_link_create(void)
{
#if !CONFIG_SPIRAM_USE_MALLOC
    i2c_cmd_desc_t *cmd_desc = (i2c_cmd_desc_t *) calloc(1, sizeof(i2c_cmd_desc_t));
#else
    i2c_cmd_desc_t *cmd_desc = (i2c_cmd_desc_t *) heap_caps_calloc(1, sizeof(i2c_cmd_desc_t), MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
#endif
    return (i2c_cmd_handle_t) cmd_desc;
}
In my app is use: calloc. So I allocated memory twice, but freed it once. :roll: So the error was in the SHT30 driver, not in the wifi.

Who is online

Users browsing this forum: No registered users and 83 guests