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:
![image](https://private-user-images.githubusercontent.com/46330275/237714018-67500c24-993d-40f6-96be-89818507e3ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NjMwNDEsIm5iZiI6MTcyNDU2Mjc0MSwicGF0aCI6Ii80NjMzMDI3NS8yMzc3MTQwMTgtNjc1MDBjMjQtOTkzZC00MGY2LTk2YmUtODk4MTg1MDdlM2VlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDA1MTIyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkNzM3MjhhMDEyM2U4ODQxOWZlMzcxZjlkMjI0OGJkZmI1NmE4ZDYxMjRjMmRmYWFiMWUzZjNjMGE1MDUxYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mfg1vhUCRRetkLIZmZONlt0HnZIL-SCT_uGLV9ssv9o)
What is the actual behavior?
With EXAMPLE_READ_LEN = 4096 (or larger), it doesn't print out any ADC values.
![image](https://private-user-images.githubusercontent.com/46330275/237714853-b0e3b243-9704-4537-a134-f763fc4e7ac1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NjMwNDEsIm5iZiI6MTcyNDU2Mjc0MSwicGF0aCI6Ii80NjMzMDI3NS8yMzc3MTQ4NTMtYjBlM2IyNDMtOTcwNC00NTM3LWExMzQtZjc2M2ZjNGU3YWMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDA1MTIyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4MjkzZWVlYTE5NDRhZjEwZWJkMWViNjIxOTRjNjllNWY3MjYyODJkYTkxMDY3YTEzNWRiOTJmNmI2MThkYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.reDqTRjnbV12zyRoVflWJHYcSbS2nE-lTXfRda8d1OY)
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: