ESP_SR Basic.ino sketch doesn't work. #12106
Replies: 16 comments 1 reply
-
|
@me-no-dev PTAL. Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
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: |
Beta Was this translation helpful? Give feedback.
-
|
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 :) |
Beta Was this translation helpful? Give feedback.
-
|
I'm implementing some I2S examples in #9030. Maybe it will help |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
Great, I'll try that. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
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? |
Beta Was this translation helpful? Give feedback.
-
|
@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. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @RobertMorton56, is this issue still valid or we can close it? |
Beta Was this translation helpful? Give feedback.
-
|
Closing, if needed you can reopen. |
Beta Was this translation helpful? Give feedback.
-
|
Useful conversation, thank you! |
Beta Was this translation helpful? Give feedback.
-
|
I wonder where is the default model selected though. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions