Skip to content

ESP32-P4/ESP32-C6 hosted issue (Unrecoverable host sdio state) (EHM-124) #121

@SebastianOtt

Description

@SebastianOtt

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • Provided a clear description of your suggestion.
  • Included any relevant context or examples.

Issue or Suggestion Description

Hi,
we are using esp-hosted & wifi remote on our custom board with an esp32-p4 and an esp32-c6. Normally, this works and has worked before as expected. However, we noticed spontanous crashes of the host (can or can not occur once within e.g. 4 hours). Even in situations where basically no wifi traffic should be ongoing by user application.

To reproduce this issue, we integrated the iperf test example, where the host also crashed at the 2nd test.

Here is the output:

I (37614) IPERF: mode=tcp-server sip=localhost:5001, dip=0.0.0.0:5001, interval=3, time=30
I (37615) iperf: Socket created
iperf> I (42696) iperf: accept: 192.168.0.50,53720

Interval       Bandwidth
 0.0- 3.0 sec  1.81 Mbits/sec
 3.0- 6.0 sec  0.36 Mbits/sec
 6.0- 9.0 sec  0.00 Mbits/sec
 9.0-12.0 sec  0.00 Mbits/sec
W (56734) iperf: tcp server recv error, error code: 11, reason: No more processes
E (56735) sdmmc_io: sdmmc_io_rw_extended: sdmmc_send_cmd returned 0x107
I (56735) iperf: TCP Socket server is closed.
E (56746) H_SDIO_DRV: sdio_write_task: 0: Failed to send data: 263 66 66
E (56747) sdmmc_io: sdmmc_io_rw_extended: sdmmc_send_cmd returned 0x107
I (56747) iperf: iperf exit
E (56758) H_SDIO_DRV: sdio_write_task: 1: Failed to send data: 263 66 66
E (56769) H_SDIO_DRV: Unrecoverable host sdio state, reset host mcu
I (56770) os_wrapper_esp: Restarting host
ESP-ROM:esp32p4-eco2-20240710
Build:Jul 10 2024

Normally, we do not have such a problem:

iperf> I (28263) iperf: accept: 192.168.0.50,53734

Interval       Bandwidth
 0.0- 3.0 sec  13.44 Mbits/sec
 3.0- 6.0 sec  7.53 Mbits/sec
 6.0- 9.0 sec  8.53 Mbits/sec
 9.0-12.0 sec  8.40 Mbits/sec
12.0-15.0 sec  8.85 Mbits/sec
15.0-18.0 sec  8.60 Mbits/sec
18.0-21.0 sec  8.99 Mbits/sec
21.0-24.0 sec  10.50 Mbits/sec
24.0-27.0 sec  11.00 Mbits/sec

Thus, some questions arise:

  • I guess the first log indicates that messages could not have been sent and some buffers were getting full?
  • Regardless, is there a way to detect or solve this issue? It would not be great if our device has spontanous restarts because of this fault.
  • Or is this already fixed in the newer version (master)?

this is our hosted version:

I (440) co-pro-main: *********************************************************************
I (440) co-pro-main:                 ESP-Hosted-MCU Slave FW version :: 2.3.2
I (446) co-pro-main:                 Transport used :: SDIO only
I (453) co-pro-main: *********************************************************************

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions