-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
ESP_SR Basic.ino sketch doesn't work. #8988
Comments
@me-no-dev PTAL. Thanks. |
First please enable core debug from the board menu to level "debug" or "verbose". It will print a lot of things. Also, even when you get all that to compile fine, the box-lite also requires yo to properly setup and init the audio DAC and ADC controllers. We will have all that covered soonish through a BSP Library, but we are not there yet. |
Ah OK. Got you. Is there an recommended partitions.csv I can start with? Rather than waste people's time maybe I'll wait for the library release? Soonish like a month? Longer? I reckon there's not much left to get this sketch up and running on the box-lite with the current code as is. Thanks for the reply, looking forward to trying this hardware out with this core. |
Select the ESP32-S3 dev module, enable OPI PSRAM and select ESP SR 16M (3MB APP/7MB SPIFFS/2.9MB MODEL) partition from the menu. This will set you up to get the proper partitions and model. Let me know if that does not work |
Yep, that partition scheme worked - however I stuck with the esp32s3box. The ESP32-S3 dev module just loops these logs:
Compiling for the esp32s3box gives:
It doesn't respond to voice so I imagine the audio DAC and ADC controllers still need to be initialized as you suggested? To note, I'm using arduino-cli so I used the following command to compile:
|
Yes. all started fine, but you do need to init the DAC and ADC. We will soon have support for all that. @lucasssvaz if you get it going, please post the drivers here, so that @RobertMorton56 can continue testing :) |
I'm implementing some I2S examples in #9030. Maybe it will help |
Great, thanks for this. From a brief look at your example, the DAC is used. I assume I'll need to init the ADC too if I want to use the ESP32-box-lite's microphone? Thanks again |
Yeah, you will need to configure the ES7243E ADC to convert the analog signal from the Mic to I2S and, if you want to use the speaker, you'll need to also configure the ES8156 DAC to do the opposite (don't forget to enable the PA chip by driving the GPIO 46 high). You can copy whatever configurations you need from the IDF implementation of the ES7243E and the ES8156. |
Great, I'll try that. Thanks! |
Tried that, it seems like the esp-adf is required. I did try and bring some of it into the Arduino space but it's getting messy. Might be better to wait till you guys have v3 ready. I assume you'll have es7234 and es8156 included in that release? |
@RobertMorton56 What I meant is using the ES8388 driver as a base and getting the registers addresses and values from the ADF. You won't be able to use the exact commands that are used there but the codec registers and values will be the same. |
Hello @RobertMorton56, is this issue still valid or we can close it? |
Closing, if needed you can reopen. |
Board
ESP32-S3-BOX-Lite
Device Description
ESP32-S3-BOX-Lite stock, with no tweaks
Hardware Configuration
As per ESP32-S3-BOX-Lite defaults. No other devices attached apart from UART for debugging. UART connected to G43 and G44 as per defaults.
Version
latest master (checkout manually)
IDE Name
arduino-cli
Operating System
linux LTS kernel
Flash frequency
40Mhz
PSRAM enabled
yes
Upload speed
921600
Description
Everything compiles, and uploads fine. When viewing the debug serial output I keep getting:
E (73) AFE_SR: ERROR: Please select wake words!
I assumed the model would be uploaded to SPIFFS etc with this example. Is this not the case? My goal is to just get the Basic.ino sketch running.
Thanks
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: