Update espressif port from ESP-IDF v5.5.3 to v6.0.1#10922
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dhalbert
left a comment
There was a problem hiding this comment.
I had tried an earlier version of this on ESP32-C6 and saw the web workflow webserver working properly. I did that to test memcpy().
As another test, I ran the weather demo on a MagTag, which does WiFi and display operations and a lot of other stuff. It's working fine.
I'll merge this now to get it out for further testing.
|
On a Feather ESP32S3 N4R2 with a freshly formatted drive simply typing import wifi at REPL causes a safemode crash. No issues on 10.3.0-alpha.1. Of the S3 releases published for this board between Alpha.1 and PR10922 none of the others crash importing wifi. However PR10984 for UM F3D new pin definition does crash in the same way -- perhaps includes code in 10922. Checked this release on a Feather ESP32S2 TFT and didn't see the crash so perhaps a difference between S2 and S3 codebases (maybe bluetooth). In case it is helpful, the following debug/crash log is shown on a QtPy ESP32-S3 N4R2 console if one has a settings.toml with SSID/PASSWORD (all the reset of web workflow was not provided). It just loops and blinks the led blue. |
The ESP-IDF v6.0 migration (adafruit#10922, commit 6a34aa1) mechanically renamed the I2S event field `data` -> `dma_buf` but kept an extra pointer dereference. In IDF v5.x `i2s_event_data_t.data` pointed *to* the buffer pointer (`&finish_desc->buf`), so `*(int16_t **)event->data` was correct. In v6 `dma_buf` *is* the buffer pointer directly (`.dma_buf = curr_buf`). The stale double-dereference reinterpreted the first bytes of audio data as an address, so `next_buffer` became garbage/NULL. That caused a NULL-pointer safe mode crash in `audiosample_convert_*` and, otherwise, DMA buffers that were never refilled (audio played as short bursts of tone separated by silence). Fixes adafruit#11070 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
No description provided.