Skip to content

Openthread border router not autostarting with ethernet on esp32h2/esp32S3 board (TZ-2084) #154

@dirkvdb2

Description

@dirkvdb2

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

autostart (when flag set) with ethernet board as it does with Wifi. Manual start works (ifconfig up - thread start).

Actual behavior (suspected bug)

Waits without starting

Error logs or terminal output

I (242) esp_image: segment 4: paddr=0013ecc0 vaddr=40375f04 sizeI (406) uart: ES                                                                                   P_INTR_FLAG_IRAM flag not set while CONFIG_UART_ISR_IN_IRAM is enabled, flag upd                                                                                   ated
I (406) OPENTHREAD: spinel UART interface initialization completed
I (406) main_task: Returned from app_main()
I(406) OPENTHREAD:[I] P-SpinelDrive-: co-
> reset

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375ae1
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x1564
load:0x403c8700,len:0x4
load:0x403c8704,len:0xc80
load:0x403cb700,len:0x2ee0
entry 0x403c8914
I (26) boot: ESP-IDF v5.4.2 2nd stage bootloader
I (26) boot: compile time Oct 20 2025 10:46:04
I (26) boot: Multicore bootloader
I (27) boot: chip revision: v0.2
I (27) boot: efuse block revision: v1.3
I (27) boot.esp32s3: Boot SPI Speed : 80MHz
I (27) boot.esp32s3: SPI Mode       : DIO
I (27) boot.esp32s3: SPI Flash Size : 8MB
I (27) boot: Enabling RNG early entropy source...
I (28) boot: Partition Table:
I (28) boot: ## Label            Usage          Type ST Offset   Length
I (28) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (28) boot:  1 otadata          OTA data         01 00 0000f000 00002000
I (29) boot:  2 phy_init         RF data          01 01 00011000 00001000
I (29) boot:  3 ota_0            OTA app          00 10 00020000 00190000
I (30) boot:  4 ota_1            OTA app          00 11 001b0000 00190000
I (30) boot:  5 web_storage      Unknown data     01 82 00340000 00019000
I (30) boot:  6 rcp_fw           Unknown data     01 82 00359000 000a0000
I (31) boot: End of partition table
I (31) esp_image: segment 0: paddr=00020020 vaddr=3c0d0020 size=4a86ch (305260) map
I (85) esp_image: segment 1: paddr=0006a894 vaddr=3fc95900 size=03878h ( 14456) load
I (89) esp_image: segment 2: paddr=0006e114 vaddr=40374000 size=01f04h (  7940) load
I (91) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=cec98h (847000) map
I (240) esp_image: segment 4: paddr=0013ecc0 vaddr=40375f04 size=0f9d0h ( 63952) load
I (254) esp_image: segment 5: paddr=0014e698 vaddr=600fe000 size=0001ch (    28) load
I (262) boot: Loaded app from partition at offset 0x20000
I (262) boot: Disabling RNG early entropy source...
I (263) cpu_start: Multicore app
I (272) cpu_start: Pro cpu start user code
I (272) cpu_start: cpu freq: 160000000 Hz
I (272) app_init: Application information:
I (272) app_init: Project name:     esp_ot_br
I (272) app_init: App version:      v1.2-18-gc7e758b-dirty
I (272) app_init: Compile time:     Oct 20 2025 10:45:48
I (272) app_init: ELF file SHA256:  c0d0c9c88...
I (273) app_init: ESP-IDF:          v5.4.2
I (273) efuse_init: Min chip rev:     v0.0
I (273) efuse_init: Max chip rev:     v0.99
I (273) efuse_init: Chip rev:         v0.2
I (273) heap_init: Initializing. RAM available for dynamic allocation:
I (274) heap_init: At 3FCA6FD0 len 00042740 (265 KiB): RAM
I (274) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (274) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (274) heap_init: At 600FE01C len 00001FCC (7 KiB): RTCRAM
I (275) spi_flash: detected chip: generic
I (275) spi_flash: flash io: dio
I (276) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (276) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (277) main_task: Started on CPU0
I (287) main_task: Calling app_main()
I (337) mdns_mem: mDNS task will be created from internal RAM
I (337) RCP_UPDATE: RCP: using update sequence 0
I (337) uart: ESP_INTR_FLAG_IRAM flag not set while CONFIG_UART_ISR_IN_IRAM is enabled, flag updated
I (337) OPENTHREAD: spinel UART interface initialization completed
I (337) main_task: Returned from app_main()
I(337) OPENTHREAD:[I] P-SpinelDrive-: co-processor reset: RESET_POWER_ON
E(337) OPENTHREAD:[C] P-SpinelDrive-: Software reset co-processor successfully
I(387) OPENTHREAD:[I] CslTxScheduler: Set frame request ahead: 26605 usec
I(387) OPENTHREAD:[I] ChildSupervsn-: Timeout: 0 -> 190
I (397) esp_ot_br: Internal RCP Version: openthread-esp32/f5c3654a1c-ec2b0d487; esp32h2;  2025-10-20 08:57:07 UTC
I (397) esp_ot_br: Running  RCP Version: openthread-esp32/f5c3654a1c-ec2b0d487; esp32h2;  2025-10-20 08:57:07 UTC
I (397) OPENTHREAD: OpenThread attached to netif
> I (417) esp_eth.netif.netif_glue: b4:3a:45:18:25:7f
I (417) esp_eth.netif.netif_glue: ethernet attached to netif
I (427) ethernet_connect: Waiting for IP(s).
> I (2427) ethernet_connect: Ethernet Link Up
I (4327) ethernet_connect: Got IPv6 event: Interface "example_netif_eth" address: fe80:0000:0000:0000:b63a:45ff:fe18:257f, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (7327) ethernet_connect: Got IPv6 event: Interface "example_netif_eth" address: fda4:da38:aeab:936d:b63a:45ff:fe18:257f, type: ESP_IP6_ADDR_IS_UNIQUE_LOCAL
> state

disabled
Done
> state

disabled
Done
> ifconfig up

I (297277) OPENTHREAD: Platform UDP bound to port 53
I (297277) OPENTHREAD: Platform UDP bound to port 49153
Done
I (297277) OT_STATE: netif up
> thread start

I(311427) OPENTHREAD:[N] Mle-----------: Role disabled -> detached

Steps to reproduce the behavior

Occurs on every boot

Project release version

ESP-IDF v5.4.2 , espressif/mdns: 1.0.0 espressif/esp_ot_cli_extension 1.4.0 espressif/esp_rcp_update 1.5.0

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

docker

Shell

ZSH

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions