Closed valioiv closed 3 years ago
ESP IDF source? https://github.com/espressif/esp-idf/blob/master/components/driver/i2s.c
@void-spark , nope... As you can see there is no line 1330 in the HEAD
of esp-idf.
I've checked even older versions of esp-idf 4.x, 3.x
and there is no matching line 1330 in i2s_write()
. Probably @sharandac uses some custom tuned sources built by himself and would be great to share them if possible.
Ah, you want the source to https://github.com/sharandac/arduino-esp32-hedge/tree/main/tools/sdk/lib :) Readme mentions:
Doesn't sound like he changed the i2s files, but who knows :) My feeling is he used https://github.com/espressif/esp32-arduino-lib-builder and only modified the sdkconfig.
Could it be the line number is after the preprocessor worked or so?
Hmm, actually, https://github.com/espressif/esp32-arduino-lib-builder would use release/v3.3 branch around the time that https://github.com/sharandac/arduino-esp32-hedge was created. Problem is that release/v3.3 changes all the time, as they merge bug fixes into it. Around that time would be: https://github.com/espressif/esp-idf/blob/33ad4b6f84d0a232a48f749fcfc2aecc79804d7e/components/driver/i2s.c On that commit the version is 3.3.4 (it's not the 3.3.4 tag, just what they have in the makefile), which does match https://github.com/sharandac/arduino-esp32-hedge/blob/main/tools/sdk/include/esp32/esp_idf_version.h That version does at least have a line 1330, but it doesn't match the method from the stack trace, so dunno :)
The Arduino core was built without any intervention in the sources. Only the build options were adapted. The error also looks more like a wrong use of the libraries. Maybe a look into the sources from you will help. And it would be interesting to know if you have deactivated the sound drivers? Otherwise they will interfere with each other.
I'm conducting experiments with the speakers of Watch v3 and got the following kernel panic when using
i2s_write()
in a separate task. I want to see what is happening on line 1330 ini2s.c
but don't know where to get the exact source code of the drivers likei2s.c
. @sharandac , can you help on that?