https://github.com/jcbernack/esp-ulp-adc-bug
MWE to reproduce bad ADC samples taken by the ULP
https://github.com/jcbernack/esp-ulp-adc-bug
esp-idf esp32
Last synced: 14 days ago
JSON representation
MWE to reproduce bad ADC samples taken by the ULP
- Host: GitHub
- URL: https://github.com/jcbernack/esp-ulp-adc-bug
- Owner: JcBernack
- Created: 2017-11-17T13:12:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T14:41:25.000Z (over 8 years ago)
- Last Synced: 2025-02-23T17:46:45.325Z (over 1 year ago)
- Topics: esp-idf, esp32
- Language: CMake
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esp-ulp-adc-bug
This is a minimal working example for a bug which occurs when taking continuous ADC measurements from a ULP program. The ADC measurements give the maximum possible readings during wake up of the main chip, i.e. with 12-bit measurements the results will be 2^12-1=4095.
Make sure to connect PIN 32 to GND, so the good measurements will be around zero.
## Typical output
```
I (99) main: initial boot
I (99) main: starting ULP program
I (99) main: resetting counters
I (99) main: entering deep sleep
I (99) main: samples taken 502
I (99) main: first bad sample at 495
I (99) main: number of bad samples 6
I (99) main: resetting counters
I (99) main: entering deep sleep
```