Skip to content

[ESP32-S2] analogRead(A10) WIDTH ERR #5658

Closed
@touchgadget

Description

@touchgadget

Hardware:

Board: ESP32S2 Saola, ESP32S2 Dev Module
Core Installation version: 2.0.0
IDE name: Arduino IDE 1.8.16
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 921600
Computer OS: Ubuntu 18.04

Description:

Analog input on ADC2 returns WIDTH ERR. A0-A9 work fine.

Sketch: (leave the backquotes for code formatting)

void setup() {
  Serial.begin(115200);
  Serial.println(analogRead(A10));
}

void loop() {
}

Debug Messages:

E (90) ADC: adc2_get_raw(578): WIDTH ERR: see `adc_bits_width_t` for supported bit width
[   559][E][esp32-hal-adc.c:174] __analogRead(): GPIO11: ESP_ERR_INVALID_ARG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions