-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32-C3 support #442
Comments
The ESP32-C3 don't have the ULP (Ultra low processor) that is "another core" in the ESP32... Bitluni made the ULP sound driver that is .h header file problen in the compiler log that you posted. I'm not going to tell you how you can solve that but i think that is a glimple for what you can do. :) |
Making it compile for ESP32-C3 needs more effort
Replace #ifdef ESP32 by
also check calls to (mixing int and FLAC__bitreader_read_raw_int32)
...
|
Please re-open this issue |
@FedericoBusero Thank you for your interest in this issue, I will try to run |
|
I see a lot of warnings that are perfectly normal: these are things that can be improved in the code. The last lines are the wrong ones:
I think you first need to check if you can upload anything (Hello World, Blink...) on the ESP32C3. Check that you use the latest ESP32 Arduino board package or maybe you need to update to a newer Arduino IDE? P.S.: The warnings are related to
|
The problem is |
Example
|
found info for ESP32-C3
I think I need to change
|
i tried to change
but the sound could not be received, maybe I'm doing something wrong |
The test environment in which I developped the ESP32C3 code:
The source code of the test program looks like this:
|
@FedericoBusero thanks i checked this example on ESP32-C3-12F (C3FN4), options |
Checked Source code:
|
In the example code, following lines are in the setup function
|
Use |
I could reproduce the problem, it is situated in the AAC-decoder library which is not yet RISC-V compatible. You can make it work by replacing
by
in libhelix-aac/assembly.h But maybe, a new section for RISC-V should be created, inspired by |
works, but you can hear a slowdown in the playback speed by about two times, probably somewhere there is an offset |
@FedericoBusero would you like to do a PR for that fix? I don't have a RISC-V based chip to work with myself... |
I'll do a PR. I just compared some implementations of the same functions to see which are the fastest, but the ones in libhelix-mp3 are slower. |
I found information that it is possible to use a DMA buffer, but this is probably off topic. |
The stuttering sound is solved in my case by changing
into
|
|
@FedericoBusero or @sh-user , want to do a PR? Making it 128 for all ESP32 variants is safe... |
checked |
Increase I2S bufer size from 64 samples/ block to 128 samples/block. Thus fixes sound artefacts described in issue earlephilhower#442
ESP32-C3
RISC-V processor (RV32IMC)
I am getting compile error, is there a solution to the problem?
The text was updated successfully, but these errors were encountered: