-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
DMA ADC Read Failed On Connection to AP when in WiFi STA (station) mode (IDFGH-2168) #4322
Comments
Did you see the comment #3973 (comment) ? |
@negativekelvin Thanks, I saw it. I am using the latest master branch, so now I have to wait for the fix to be ready, right? |
Right |
@wammaw1314 thanks !! |
I'm in the same situation with the bluetooth connection. |
Hi @wammaw1314, we think the issue is fixed now and therefore we are closing it to keep our backlog manageable. If you don't agree with this decision, please let me know. Thank you, Tomas |
My problem is basically the same as #3714, but there are some supplements.
Environment
git describe --tags
to find it):v4.1-dev-815-ga45e998-dirty
xtensa-esp32-elf-gcc --version
to find it):xtensa-esp32-elf-gcc (crosstool-NG esp32-2019r1) 8.2.0
Problem Description
When acquiring ADC data through DMA transfers and the device is in station mode (WIFI_MODE_STA). As the device connects to the AP, the ADC DMA buffer ceases to show valid data and continues to read (a probably random) fixed value.
I experimented with #3714 and added this line of code during WiFi initialization:
esp_wifi_set_ps(WIFI_PS_NONE);
Get the following results:
esp_restart();
, the device DMA ADC is read only as a zero value.Code to reproduce this issue
The full code
Copy your ESP_IDF example structure:
examples\peripherals\i2s_adc_dac\main\app_main.c
and replace everything in app_main.c with this:
app_main.zip
Debug Logs
Program running debugging log is as follows:
I2S-DMA-ADC-WiFi-Reboot-log.txt
I hope to get your help, thank you !
The text was updated successfully, but these errors were encountered: