Leaf node ressting CPU on "no_router example"

nicola
Posts: 21
Joined: Mon Feb 18, 2019 8:04 am

Leaf node ressting CPU on "no_router example"

Postby nicola » Wed Feb 17, 2021 9:33 pm

Hi all,
I'm trying to build a simple manual mesh network with the following configuration:

Node A: root node (with no router)
Node B: intermediate node
Node C: leaf node

I'm using the "mwifi_no_router" example here : https://github.com/espressif/esp-mdf/tr ... /no_router
I have configured the 3 device topology by using the "menuconfig" command band either the root or the intermediate node seem to run correctly.
I have some problem with the "Leaf node" which seems to reset the CPU like below:

Code: Select all

[Codebox=c file=Untitled.c]
Setting IDF_PATH environment variable: /home/osboxes/esp/esp-mdf/esp-idf
Executing action: monitor
Running idf_monitor in directory /home/osboxes/esp/esp-mdf/no_router_leaf
Executing "/home/osboxes/.espressif/python_env/idf4.2_py3.8_env/bin/python /home/osboxes/esp/esp-mdf/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- /home/osboxes/esp/esp-mdf/no_router_leaf/build/no_router.elf -m '/home/osboxes/.espressif/python_env/idf4.2_py3.8_env/bin/python' '/home/osboxes/esp/esp-mdf/esp-idf/tools/idf.py' '-p' '/dev/ttyUSB0'"...
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x17 (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:4
load:0x3fff0034,len:7168
ho 0 tail 12 room 4
load:0x40078000,len:13704
ho 0 tail 12 room 4
load:0x40080400,len:4000
0x40080400: _init at ??:?

entry 0x40080688
I (33) boot: ESP-IDF v4.2-dev-2084-g98d5b5dfd 2nd stage bootloader
I (33) boot: compile time 14:52:53
I (33) boot: chip revision: 3
I (37) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (45) boot.esp32: SPI Speed      : 40MHz
I (49) boot.esp32: SPI Mode       : DIO
I (54) boot.esp32: SPI Flash Size : 4MB
I (58) boot: Enabling RNG early entropy source...
I (64) boot: Partition Table:
I (67) boot: ## Label            Usage          Type ST Offset   Length
I (74) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (82) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (89) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (97) boot:  3 ota_0            OTA app          00 10 00010000 001e0000
I (104) boot:  4 ota_1            OTA app          00 11 001f0000 001e0000
I (112) boot:  5 coredump         Unknown data     01 03 003d0000 00010000
I (119) boot:  6 reserved         Unknown data     01 fe 003e0000 00020000
I (127) boot: End of partition table
I (131) boot_comm: chip revision: 3, min. application chip revision: 0
I (138) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x260d8 (155864) map
I (207) esp_image: segment 1: paddr=0x00036100 vaddr=0x3ffb0000 size=0x0473c ( 18236) load
I (214) esp_image: segment 2: paddr=0x0003a844 vaddr=0x40080000 size=0x00404 (  1028) load
0x40080000: _WindowOverflow4 at /home/osboxes/esp/esp-mdf/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (215) esp_image: segment 3: paddr=0x0003ac50 vaddr=0x40080404 size=0x053c8 ( 21448) load
I (232) esp_image: segment 4: paddr=0x00040020 vaddr=0x400d0020 size=0xb2204 (729604) map
0x400d0020: _stext at ??:?

I (510) esp_image: segment 5: paddr=0x000f222c vaddr=0x400857cc size=0x10fd4 ( 69588) load
0x400857cc: phy_close_rf at ??:?

I (553) boot: Loaded app from partition at offset 0x10000
I (553) boot: Disabling RNG early entropy source...
I (553) cpu_start: Pro cpu up.
I (557) cpu_start: Application information:
I (562) cpu_start: Project name:     no_router
I (567) cpu_start: App version:      v1.0-107-g1c76187
I (573) cpu_start: Compile time:     Feb 17 2021 16:17:04
I (579) cpu_start: ELF file SHA256:  ee00052950eb9dc7...
I (585) cpu_start: ESP-IDF:          v4.2-dev-2084-g98d5b5dfd
I (591) cpu_start: Single core mode
I (595) heap_init: Initializing. RAM available for dynamic allocation:
I (602) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (609) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (615) heap_init: At 3FFBB920 len 000246E0 (145 KiB): DRAM
I (621) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (627) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (634) heap_init: At 400967A0 len 00009860 (38 KiB): IRAM
I (640) cpu_start: Pro cpu start user code
I (657) spi_flash: detected chip: generic
I (658) spi_flash: flash io: dio
I (658) esp_core_dump_flash: Init core dump to flash
I (661) esp_core_dump_flash: Found partition 'coredump' @ 3d0000 65536 bytes
I (669) cpu_start: Starting scheduler on PRO CPU.
I (701) wifi:wifi driver task: 3ffc23ec, prio:23, stack:6656, core=0
I (702) system_api: Base MAC address is not set
I (702) system_api: read default base MAC address from EFUSE
I (714) wifi:wifi firmware version: 8ee1f07
I (715) wifi:wifi certification version: v7.0
I (716) wifi:config NVS flash: enabled
I (719) wifi:config nano formating: disabled
I (723) wifi:Init data frame dynamic rx buffer num: 32
I (728) wifi:Init management frame dynamic rx buffer num: 32
I (733) wifi:Init management short buffer num: 32
I (738) wifi:Init dynamic tx buffer num: 32
I (742) wifi:Init static rx buffer size: 1600
I (746) wifi:Init static rx buffer num: 10
I (750) wifi:Init dynamic rx buffer num: 32
I (754) wifi:Set ps type: 0

I (845) phy: phy_version: 4370, 4e803b3, Aug 11 2020, 14:18:07, 0, 0
I (847) wifi:mode : sta (40:f5:20:53:e3:6c)
I (849) [mwifi, 297]: esp-mdf version: v1.0-107-g1c76187
I (851) wifi:mode : sta (40:f5:20:53:e3:6c) + softAP (40:f5:20:53:e3:6d)
I (859) wifi:Total power save buffer number: 16
I (861) wifi:Init max length of beacon: 752/752
I (866) wifi:Init max length of beacon: 752/752
I (873) mesh: <nvs>read layer:0, err:0x1102
I (874) mesh: <nvs>read assoc:0, err:0x1102
I (879) wifi:mode : sta (40:f5:20:53:e3:6c)
I (884) mesh: [IO]enable self-organizing, search parent<reconnect>
I (888) mesh: [CONFIG]invalid router settings, ssid_len:0, ssid:, bssid:00:00:00:00:00:00
ESP_ERROR_CHECK failed: esp_err_t 0x4008 (ESP_ERR_MESH_ARGUMENT) at 0x400866d4
0x400866d4: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:45

file: "/home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c" line 518
func: mwifi_start
expression: esp_mesh_set_config(&mesh_config)

abort() was called at PC 0x400866d7 on core 0
0x400866d7: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:46


Backtrace:0x4008780f:0x3ffaf340 0x40087e71:0x3ffaf360 0x4008eb7a:0x3ffaf380 0x400866d7:0x3ffaf3f0 0x400d7e08:0x3ffaf410 0x400d6c75:0x3ffaf530 0x400d4cdb:0x3ffaf640 0x40087e79:0x3ffaf670
0x4008780f: panic_abort at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_system/panic.c:330

0x40087e71: esp_system_abort at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_system/system_api.c:106

0x4008eb7a: abort at /home/osboxes/esp/esp-mdf/esp-idf/components/newlib/abort.c:46

0x400866d7: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:46

0x400d7e08: mwifi_start at /home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c:518 (discriminator 1)

0x400d6c75: app_main at /home/osboxes/esp/esp-mdf/no_router_leaf/build/../main/no_router_example.c:292

0x400d4cdb: main_task at /home/osboxes/esp/esp-mdf/esp-idf/components/esp32/cpu_start.c:589

0x40087e79: vPortTaskWrapper at /home/osboxes/esp/esp-mdf/esp-idf/components/freertos/xtensa/port.c:143



ELF file SHA256: ee00052950eb9dc7

I (925) esp_core_dump_flash: Save core dump to flash...
I (931) esp_core_dump_elf: Found tasks: 8
I (936) esp_core_dump_flash: Erase flash 16384 bytes @ 0x3d0000
I (1259) esp_core_dump_flash: Write end offset 0x33f0, check sum length 4
I (1259) esp_core_dump_flash: Core dump has been saved to flash.
Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (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:4
load:0x3fff0034,len:7168
ho 0 tail 12 room 4
load:0x40078000,len:13704
ho 0 tail 12 room 4
load:0x40080400,len:4000
0x40080400: _init at ??:?

entry 0x40080688
I (32) boot: ESP-IDF v4.2-dev-2084-g98d5b5dfd 2nd stage bootloader
I (33) boot: compile time 14:52:53
I (33) boot: chip revision: 3
I (37) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (45) boot.esp32: SPI Speed      : 40MHz
I (49) boot.esp32: SPI Mode       : DIO
I (53) boot.esp32: SPI Flash Size : 4MB
I (58) boot: Enabling RNG early entropy source...
I (63) boot: Partition Table:
I (67) boot: ## Label            Usage          Type ST Offset   Length
I (74) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (82) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (89) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (97) boot:  3 ota_0            OTA app          00 10 00010000 001e0000
I (104) boot:  4 ota_1            OTA app          00 11 001f0000 001e0000
I (112) boot:  5 coredump         Unknown data     01 03 003d0000 00010000
I (119) boot:  6 reserved         Unknown data     01 fe 003e0000 00020000
I (127) boot: End of partition table
I (131) boot_comm: chip revision: 3, min. application chip revision: 0
I (138) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x260d8 (155864) map
I (207) esp_image: segment 1: paddr=0x00036100 vaddr=0x3ffb0000 size=0x0473c ( 18236) load
I (214) esp_image: segment 2: paddr=0x0003a844 vaddr=0x40080000 size=0x00404 (  1028) load
0x40080000: _WindowOverflow4 at /home/osboxes/esp/esp-mdf/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (215) esp_image: segment 3: paddr=0x0003ac50 vaddr=0x40080404 size=0x053c8 ( 21448) load
I (232) esp_image: segment 4: paddr=0x00040020 vaddr=0x400d0020 size=0xb2204 (729604) map
0x400d0020: _stext at ??:?

I (510) esp_image: segment 5: paddr=0x000f222c vaddr=0x400857cc size=0x10fd4 ( 69588) load
0x400857cc: phy_close_rf at ??:?

I (552) boot: Loaded app from partition at offset 0x10000
I (553) boot: Disabling RNG early entropy source...
I (553) cpu_start: Pro cpu up.
I (557) cpu_start: Application information:
I (561) cpu_start: Project name:     no_router
I (567) cpu_start: App version:      v1.0-107-g1c76187
I (572) cpu_start: Compile time:     Feb 17 2021 16:17:04
I (578) cpu_start: ELF file SHA256:  ee00052950eb9dc7...
I (584) cpu_start: ESP-IDF:          v4.2-dev-2084-g98d5b5dfd
I (591) cpu_start: Single core mode
I (595) heap_init: Initializing. RAM available for dynamic allocation:
I (602) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (609) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (615) heap_init: At 3FFBB920 len 000246E0 (145 KiB): DRAM
I (621) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (627) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (633) heap_init: At 400967A0 len 00009860 (38 KiB): IRAM
I (640) cpu_start: Pro cpu start user code
I (657) spi_flash: detected chip: generic
I (658) spi_flash: flash io: dio
I (658) esp_core_dump_flash: Init core dump to flash
I (661) esp_core_dump_flash: Found partition 'coredump' @ 3d0000 65536 bytes
I (672) esp_core_dump_flash: Found core dump 13296 bytes in flash @ 0x3d0000
I (676) cpu_start: Starting scheduler on PRO CPU.
I (708) wifi:wifi driver task: 3ffc23ec, prio:23, stack:6656, core=0
I (709) system_api: Base MAC address is not set
I (709) system_api: read default base MAC address from EFUSE
I (721) wifi:wifi firmware version: 8ee1f07
I (722) wifi:wifi certification version: v7.0
I (723) wifi:config NVS flash: enabled
I (726) wifi:config nano formating: disabled
I (730) wifi:Init data frame dynamic rx buffer num: 32
I (735) wifi:Init management frame dynamic rx buffer num: 32
I (740) wifi:Init management short buffer num: 32
I (745) wifi:Init dynamic tx buffer num: 32
I (749) wifi:Init static rx buffer size: 1600
I (753) wifi:Init static rx buffer num: 10
I (757) wifi:Init dynamic rx buffer num: 32
I (761) wifi:Set ps type: 0

I (852) phy: phy_version: 4370, 4e803b3, Aug 11 2020, 14:18:07, 0, 0
I (854) wifi:mode : sta (40:f5:20:53:e3:6c)
I (856) [mwifi, 297]: esp-mdf version: v1.0-107-g1c76187
I (858) wifi:mode : sta (40:f5:20:53:e3:6c) + softAP (40:f5:20:53:e3:6d)
I (866) wifi:Total power save buffer number: 16
I (868) wifi:Init max length of beacon: 752/752
I (873) wifi:Init max length of beacon: 752/752
I (880) mesh: <nvs>read layer:0, err:0x1102
I (881) mesh: <nvs>read assoc:0, err:0x1102
I (886) wifi:mode : sta (40:f5:20:53:e3:6c)
I (891) mesh: [IO]enable self-organizing, search parent<reconnect>
I (895) mesh: [CONFIG]invalid router settings, ssid_len:0, ssid:, bssid:00:00:00:00:00:00
ESP_ERROR_CHECK failed: esp_err_t 0x4008 (ESP_ERR_MESH_ARGUMENT) at 0x400866d4
0x400866d4: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:45

file: "/home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c" line 518
func: mwifi_start
expression: esp_mesh_set_config(&mesh_config)

abort() was called at PC 0x400866d7 on core 0
0x400866d7: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:46


Backtrace:0x4008780f:0x3ffaf340 0x40087e71:0x3ffaf360 0x4008eb7a:0x3ffaf380 0x400866d7:0x3ffaf3f0 0x400d7e08:0x3ffaf410 0x400d6c75:0x3ffaf530 0x400d4cdb:0x3ffaf640 0x40087e79:0x3ffaf670
0x4008780f: panic_abort at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_system/panic.c:330

0x40087e71: esp_system_abort at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_system/system_api.c:106

0x4008eb7a: abort at /home/osboxes/esp/esp-mdf/esp-idf/components/newlib/abort.c:46

0x400866d7: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:46

0x400d7e08: mwifi_start at /home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c:518 (discriminator 1)

0x400d6c75: app_main at /home/osboxes/esp/esp-mdf/no_router_leaf/build/../main/no_router_example.c:292

0x400d4cdb: main_task at /home/osboxes/esp/esp-mdf/esp-idf/components/esp32/cpu_start.c:589

0x40087e79: vPortTaskWrapper at /home/osboxes/esp/esp-mdf/esp-idf/components/freertos/xtensa/port.c:143



ELF file SHA256: ee00052950eb9dc7

I (933) esp_core_dump_flash: Save core dump to flash...
I (939) esp_core_dump_elf: Found tasks: 8
I (944) esp_core_dump_flash: Erase flash 16384 bytes @ 0x3d0000
I (1257) esp_core_dump_flash: Write end offset 0x33f0, check sum length 4
I (1258) esp_core_dump_flash: Core dump has been saved to flash.
Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (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:4
load:0x3fff0034,len:7168
ho 0 tail 12 room 4
load:0x40078000,len:13704
ho 0 tail 12 room 4
load:0x40080400,len:4000
0x40080400: _init at ??:?

entry 0x40080688
I (32) boot: ESP-IDF v4.2-dev-2084-g98d5b5dfd 2nd stage bootloader
I (33) boot: compile time 14:52:53
I (33) boot: chip revision: 3
I (37) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (45) boot.esp32: SPI Speed      : 40MHz
I (49) boot.esp32: SPI Mode       : DIO
I (53) boot.esp32: SPI Flash Size : 4MB
I (58) boot: Enabling RNG early entropy source...
I (63) boot: Partition Table:
I (67) boot: ## Label            Usage          Type ST Offset   Length
I (74) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (82) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (89) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (97) boot:  3 ota_0            OTA app          00 10 00010000 001e0000
I (104) boot:  4 ota_1            OTA app          00 11 001f0000 001e0000
I (112) boot:  5 coredump         Unknown data     01 03 003d0000 00010000
I (119) boot:  6 reserved         Unknown data     01 fe 003e0000 00020000
I (127) boot: End of partition table
I (131) boot_comm: chip revision: 3, min. application chip revision: 0
I (138) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x260d8 (155864) map
I (207) esp_image: segment 1: paddr=0x00036100 vaddr=0x3ffb0000 size=0x0473c ( 18236) load
I (214) esp_image: segment 2: paddr=0x0003a844 vaddr=0x40080000 size=0x00404 (  1028) load
0x40080000: _WindowOverflow4 at /home/osboxes/esp/esp-mdf/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (215) esp_image: segment 3: paddr=0x0003ac50 vaddr=0x40080404 size=0x053c8 ( 21448) load
I (232) esp_image: segment 4: paddr=0x00040020 vaddr=0x400d0020 size=0xb2204 (729604) map
0x400d0020: _stext at ??:?

I (510) esp_image: segment 5: paddr=0x000f222c vaddr=0x400857cc size=0x10fd4 ( 69588) load
0x400857cc: phy_close_rf at ??:?

I (552) boot: Loaded app from partition at offset 0x10000
I (553) boot: Disabling RNG early entropy source...
I (553) cpu_start: Pro cpu up.
I (557) cpu_start: Application information:
I (561) cpu_start: Project name:     no_router
I (567) cpu_start: App version:      v1.0-107-g1c76187
I (572) cpu_start: Compile time:     Feb 17 2021 16:17:04
I (578) cpu_start: ELF file SHA256:  ee00052950eb9dc7...
I (584) cpu_start: ESP-IDF:          v4.2-dev-2084-g98d5b5dfd
I (591) cpu_start: Single core mode
I (595) heap_init: Initializing. RAM available for dynamic allocation:
I (602) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (609) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (615) heap_init: At 3FFBB920 len 000246E0 (145 KiB): DRAM
I (621) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (627) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (633) heap_init: At 400967A0 len 00009860 (38 KiB): IRAM
I (640) cpu_start: Pro cpu start user code
I (657) spi_flash: detected chip: generic
I (658) spi_flash: flash io: dio
I (658) esp_core_dump_flash: Init core dump to flash
I (661) esp_core_dump_flash: Found partition 'coredump' @ 3d0000 65536 bytes
I (672) esp_core_dump_flash: Found core dump 13296 bytes in flash @ 0x3d0000
I (676) cpu_start: Starting scheduler on PRO CPU.
I (708) wifi:wifi driver task: 3ffc23ec, prio:23, stack:6656, core=0
I (709) system_api: Base MAC address is not set
I (709) system_api: read default base MAC address from EFUSE
I (721) wifi:wifi firmware version: 8ee1f07
I (722) wifi:wifi certification version: v7.0
I (723) wifi:config NVS flash: enabled
I (726) wifi:config nano formating: disabled
I (730) wifi:Init data frame dynamic rx buffer num: 32
I (735) wifi:Init management frame dynamic rx buffer num: 32
I (740) wifi:Init management short buffer num: 32
I (745) wifi:Init dynamic tx buffer num: 32
I (749) wifi:Init static rx buffer size: 1600
I (753) wifi:Init static rx buffer num: 10
I (757) wifi:Init dynamic rx buffer num: 32
I (761) wifi:Set ps type: 0

I (851) phy: phy_version: 4370, 4e803b3, Aug 11 2020, 14:18:07, 0, 0
I (853) wifi:mode : sta (40:f5:20:53:e3:6c)
I (855) [mwifi, 297]: esp-mdf version: v1.0-107-g1c76187
I (858) wifi:mode : sta (40:f5:20:53:e3:6c) + softAP (40:f5:20:53:e3:6d)
I (865) wifi:Total power save buffer number: 16
I (868) wifi:Init max length of beacon: 752/752
I (872) wifi:Init max length of beacon: 752/752
I (879) mesh: <nvs>read layer:0, err:0x1102
I (880) mesh: <nvs>read assoc:0, err:0x1102
I (885) wifi:mode : sta (40:f5:20:53:e3:6c)
I (890) mesh: [IO]enable self-organizing, search parent<reconnect>
I (895) mesh: [CONFIG]invalid router settings, ssid_len:0, ssid:, bssid:00:00:00:00:00:00
ESP_ERROR_CHECK failed: esp_err_t 0x4008 (ESP_ERR_MESH_ARGUMENT) at 0x400866d4
0x400866d4: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:45

file: "/home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c" line 518
func: mwifi_start
expression: esp_mesh_set_config(&mesh_config)

abort() was called at PC 0x400866d7 on core 0
0x400866d7: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:46


Backtrace:0x4008780f:0x3ffaf340 0x40087e71:0x3ffaf360 0x4008eb7a:0x3ffaf380 0x400866d7:0x3ffaf3f0 0x400d7e08:0x3ffaf410 0x400d6c75:0x3ffaf530 0x400d4cdb:0x3ffaf640 0x40087e79:0x3ffaf670
0x4008780f: panic_abort at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_system/panic.c:330

0x40087e71: esp_system_abort at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_system/system_api.c:106

0x4008eb7a: abort at /home/osboxes/esp/esp-mdf/esp-idf/components/newlib/abort.c:46

0x400866d7: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:46

0x400d7e08: mwifi_start at /home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c:518 (discriminator 1)

0x400d6c75: app_main at /home/osboxes/esp/esp-mdf/no_router_leaf/build/../main/no_router_example.c:292

0x400d4cdb: main_task at /home/osboxes/esp/esp-mdf/esp-idf/components/esp32/cpu_start.c:589

0x40087e79: vPortTaskWrapper at /home/osboxes/esp/esp-mdf/esp-idf/components/freertos/xtensa/port.c:143



ELF file SHA256: ee00052950eb9dc7

I (932) esp_core_dump_flash: Save core dump to flash...
I (938) esp_core_dump_elf: Found tasks: 8
I (943) esp_core_dump_flash: Erase flash 16384 bytes @ 0x3d0000
I (1264) esp_core_dump_flash: Write end offset 0x33f0, check sum length 4
I (1265) esp_core_dump_flash: Core dump has been saved to flash.
Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (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:4
load:0x3fff0034,len:7168
ho 0 tail 12 room 4
load:0x40078000,len:13704
ho 0 tail 12 room 4
load:0x40080400,len:4000
0x40080400: _init at ??:?

entry 0x40080688
I (32) boot: ESP-IDF v4.2-dev-2084-g98d5b5dfd 2nd stage bootloader
I (33) boot: compile time 14:52:53
I (33) boot: chip revision: 3
I (37) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (45) boot.esp32: SPI Speed      : 40MHz
I (49) boot.esp32: SPI Mode       : DIO
I (53) boot.esp32: SPI Flash Size : 4MB
I (58) boot: Enabling RNG early entropy source...
I (63) boot: Partition Table:
I (67) boot: ## Label            Usage          Type ST Offset   Length
I (74) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (82) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (89) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (97) boot:  3 ota_0            OTA app          00 10 00010000 001e0000
I (104) boot:  4 ota_1            OTA app          00 11 001f0000 001e0000
I (112) boot:  5 coredump         Unknown data     01 03 003d0000 00010000
I (119) boot:  6 reserved         Unknown data     01 fe 003e0000 00020000
I (127) boot: End of partition table
I (131) boot_comm: chip revision: 3, min. application chip revision: 0
I (138) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x260d8 (155864) map
I (207) esp_image: segment 1: paddr=0x00036100 vaddr=0x3ffb0000 size=0x0473c ( 18236) load
I (214) esp_image: segment 2: paddr=0x0003a844 vaddr=0x40080000 size=0x00404 (  1028) load
0x40080000: _WindowOverflow4 at /home/osboxes/esp/esp-mdf/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (215) esp_image: segment 3: paddr=0x0003ac50 vaddr=0x40080404 size=0x053c8 ( 21448) load
I (232) esp_image: segment 4: paddr=0x00040020 vaddr=0x400d0020 size=0xb2204 (729604) map
0x400d0020: _stext at ??:?

I (510) esp_image: segment 5: paddr=0x000f222c vaddr=0x400857cc size=0x10fd4 ( 69588) load
0x400857cc: phy_close_rf at ??:?

I (552) boot: Loaded app from partition at offset 0x10000
I (553) boot: Disabling RNG early entropy source...
I (553) cpu_start: Pro cpu up.
I (557) cpu_start: Application information:
I (561) cpu_start: Project name:     no_router
I (567) cpu_start: App version:      v1.0-107-g1c76187
I (572) cpu_start: Compile time:     Feb 17 2021 16:17:04
I (578) cpu_start: ELF file SHA256:  ee00052950eb9dc7...
I (584) cpu_start: ESP-IDF:          v4.2-dev-2084-g98d5b5dfd
I (591) cpu_start: Single core mode
I (595) heap_init: Initializing. RAM available for dynamic allocation:
I (602) heap_init: At 3FF80000 len 00002000 (8 KiB): RTCRAM
I (609) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (615) heap_init: At 3FFBB920 len 000246E0 (145 KiB): DRAM
I (621) heap_init: At 3FFE0440 len 0001FBC0 (126 KiB): D/IRAM
I (627) heap_init: At 40078000 len 00008000 (32 KiB): IRAM
I (633) heap_init: At 400967A0 len 00009860 (38 KiB): IRAM
I (640) cpu_start: Pro cpu start user code
I (657) spi_flash: detected chip: generic
I (658) spi_flash: flash io: dio
I (658) esp_core_dump_flash: Init core dump to flash
I (661) esp_core_dump_flash: Found partition 'coredump' @ 3d0000 65536 bytes
I (672) esp_core_dump_flash: Found core dump 13296 bytes in flash @ 0x3d0000
I (676) cpu_start: Starting scheduler on PRO CPU.
I (708) wifi:wifi driver task: 3ffc23ec, prio:23, stack:6656, core=0
I (709) system_api: Base MAC address is not set
I (709) system_api: read default base MAC address from EFUSE
I (721) wifi:wifi firmware version: 8ee1f07
I (722) wifi:wifi certification version: v7.0
I (723) wifi:config NVS flash: enabled
I (726) wifi:config nano formating: disabled
I (730) wifi:Init data frame dynamic rx buffer num: 32
I (735) wifi:Init management frame dynamic rx buffer num: 32
I (740) wifi:Init management short buffer num: 32
I (745) wifi:Init dynamic tx buffer num: 32
I (749) wifi:Init static rx buffer size: 1600
I (753) wifi:Init static rx buffer num: 10
I (757) wifi:Init dynamic rx buffer num: 32
I (761) wifi:Set ps type: 0

I (851) phy: phy_version: 4370, 4e803b3, Aug 11 2020, 14:18:07, 0, 0
I (853) wifi:mode : sta (40:f5:20:53:e3:6c)
I (855) [mwifi, 297]: esp-mdf version: v1.0-107-g1c76187
I (858) wifi:mode : sta (40:f5:20:53:e3:6c) + softAP (40:f5:20:53:e3:6d)
I (914) wifi:Total power save buffer number: 16
I (915) wifi:Init max length of beacon: 752/752
I (915) wifi:Init max length of beacon: 752/752
I (919) mesh: <nvs>read layer:0, err:0x1102
I (920) mesh: <nvs>read assoc:0, err:0x1102
I (925) wifi:mode : sta (40:f5:20:53:e3:6c)
I (930) mesh: [IO]enable self-organizing, search parent<reconnect>
I (935) mesh: [CONFIG]invalid router settings, ssid_len:0, ssid:, bssid:00:00:00:00:00:00
ESP_ERROR_CHECK failed: esp_err_t 0x4008 (ESP_ERR_MESH_ARGUMENT) at 0x400866d4
0x400866d4: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:45

file: "/home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c" line 518
func: mwifi_start
expression: esp_mesh_set_config(&mesh_config)

abort() was called at PC 0x400866d7 on core 0
0x400866d7: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:46


Backtrace:0x4008780f:0x3ffaf340 0x40087e71:0x3ffaf360 0x4008eb7a:0x3ffaf380 0x400866d7:0x3ffaf3f0 0x400d7e08:0x3ffaf410 0x400d6c75:0x3ffaf530 0x400d4cdb:0x3ffaf640 0x40087e79:0x3ffaf670
0x4008780f: panic_abort at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_system/panic.c:330

0x40087e71: esp_system_abort at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_system/system_api.c:106

0x4008eb7a: abort at /home/osboxes/esp/esp-mdf/esp-idf/components/newlib/abort.c:46

0x400866d7: _esp_error_check_failed at /home/osboxes/esp/esp-mdf/esp-idf/components/esp_common/src/esp_err.c:46

0x400d7e08: mwifi_start at /home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c:518 (discriminator 1)

0x400d6c75: app_main at /home/osboxes/esp/esp-mdf/no_router_leaf/build/../main/no_router_example.c:292

0x400d4cdb: main_task at /home/osboxes/esp/esp-mdf/esp-idf/components/esp32/cpu_start.c:589

0x40087e79: vPortTaskWrapper at /home/osboxes/esp/esp-mdf/esp-idf/components/freertos/xtensa/port.c:143



ELF file SHA256: ee00052950eb9dc7

I (972) esp_core_dump_flash: Save core dump to flash...
I (978) esp_core_dump_elf: Found tasks: 8
I (983) esp_core_dump_flash: Erase flash 16384 bytes @ 0x3d0000
I (1301) esp_core_dump_flash: Write end offset 0x33f0, check sum length 4
I (1301) esp_core_dump_flash: Core dump has been saved to flash.
Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (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:4
load:0x3fff0034,len:7168
ho 0 tail 12 room 4
load:0x40078000,len:13704
ho 0 tail 12 room 4
load:0x40080400,len:4000
0x40080400: _init at ??:?


[/Codebox]


Could you please support me in order to understand this issue?
Awaiting your kind reply,
thanks a lot.
Nicola

nicola
Posts: 21
Joined: Mon Feb 18, 2019 8:04 am

Re: Leaf node ressting CPU on "no_router example"

Postby nicola » Fri Feb 19, 2021 11:32 am

Dear all,
do you have some news about this topic?
It seems it blocks here :

Code: Select all

[Codebox=c file=Untitled.c][/Codebox]
file: "/home/osboxes/esp/esp-mdf/components/mwifi/mwifi.c" line 518
func: mwifi_start
expression: esp_mesh_set_config(&mesh_config)
by simply changing the mesh type to leaf in the "menuconfig".
What could it be ?
Please avdvice .
Thanks a lot
Nicola

Who is online

Users browsing this forum: No registered users and 3 guests