Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Intermittent hard fault on WIZnet socket read

Aperta
#11,472 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by reading the linked location in adafruit_wiznet5k.py around line 913, then compare the reported socket-availability and byte-processing logs with the hard-fault report. Try to reproduce the failure with one of the listed W5500 configurations and the reported network conditions; done means the fault is reproducible and its cause is identified or a fix is verified.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Observed on the following W5500 configs:

Adafruit CircuitPython 11.0.0-alpha.1 on 2026-09-24; Adafruit QT Py ESP32-S3 4MB Flash 2MB PSRAM with ESP32S3
(wired via SPI to WIZ850io)

Adafruit CircuitPython 11.0.0-alpha.1 on 2026-09-24; FeatherS3 with ESP32S3 (N16R8)
(wired via SPI to W5500-EVB-Pico2)

Adafruit CircuitPython 11.0.0-alpha.1 on 2026-09-24; Seeed Xiao ESP32-S3 Sense with ESP32S3 (N8R8)
(XIAO W5500 Ethernet Adapter with built-in W5500)

Adafruit CircuitPython 11.0.0-alpha.1 on 2026-09-24; Waveshare ESP32-S3-ETH with ESP32S3 (N16R8)
(with built-in W5500)

Adafruit CircuitPython 11.0.0-alpha.1 on 2026-09-24; ESP32-C5-DevKitC-1-N8R8 with ESP32C5
(Seeed Xiao ESP32-C5 N8R8 wired via SPI to WIZ850io)

With debug=True, the following is typical:

socket_available called on socket 1, protocol 33
Bytes avail. on sock: 2048
* Processing 5 bytes of data
socket_available called on socket 1, protocol 33
Bytes avail. on sock: 2043
* Processing 2043 bytes of data

[tio 17:10:27] Disconnected
[tio 17:10:33] Connected

safemode.py reports: supervisor.SafeModeReason.HARD_FAULT.

The hard fault appears to come after this debug print:
https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k/blob/f01275e34ad2e5f7ddd9d074e963a8359011a297/adafruit_wiznet5k/adafruit_wiznet5k.py#L913

I'll keep trying to produce a reasonable example, but when I've tried so far I don't get the hard faults. Could be due to some combination of data or network conditions I can't replicate. It's possible there's intermittent network disruption that affects the socket.

This issue predates CP 11, but I didn't spend time on it in the past.

Lingua principale
C
Stelle
4.6k
Fork
1.4k
Merge medio
1g 7h
PR unite (30g)
147

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di adafruit/circuitpython

Tutte le issue di adafruit/circuitpython

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.