ADC continuous_read example does not work with EXAMPLE_READ_LEN = 4096 (IDFGH-10109) #11385
Closed
3 tasks done
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.2-dev-503-g17451f1fb3
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
ESP32S3
Power Supply used.
USB
What is the expected behavior?
With EXAMPLE_READ_LEN = 256, it prints out ADC values from two channels. Similar to the following one:

What is the actual behavior?
With EXAMPLE_READ_LEN = 4096 (or larger), it doesn't print out any ADC values.

Steps to reproduce.
exp-idf\exmaples\peripherals\adc\continuous_read\main\continuous_read_main.c
#define EXAMPLE_READ_LEN 4096
.max_store_buf_size = EXAMPLE_READ_LEN *2,
(.max_store_buf_size
can be any value larger than.conv_frame_size
. Here just useEXAMPLE_READ_LEN *2
for example).uint8_t* result =malloc(EXAMPLE_READ_LEN);
(memset
initialization doesn't work with such big number)Debug Logs.
More Information.
Here are the diff summary:
The text was updated successfully, but these errors were encountered: