Xiao ESP32-C6 analog resolution

Hello all. I am running the analog example from here Pin Multiplexing With Seeed Studio XIAO ESP32C6 | Seeed Studio Wiki (reading an analog pin voltage). I am setting analog resolution to 12bit:

const int analogPin = A1; 

void setup() {
  // Initialize serial communication at 115200 bits per second
  Serial.begin(115200);
  
  // Set the resolution to 12 bits (0-4095)
  analogReadResolution(12);
  //analogSetWidth(12);
}

void loop() {
  // Read the analog value and millivolts for the analogPin
  int analogValue = analogRead(analogPin);
  int analogVolts = analogReadMilliVolts(analogPin);
  
  // Print the values to the Serial Monitor
  Serial.printf("ADC analog value = %d\n", analogValue);
  Serial.printf("ADC millivolts value = %d\n", analogVolts);
  
  delay(100); // Delay for clear reading from serial
}

But I keep getting a value of around 3300 with 3.3V at the input. Shouldn’t I get around 4095?

Hi clovisf,
I tried your sketch with BSP esp32 3.0.4, 3.0.0. Both analogValue and analogVolts shows mV values. I think this is a bug in C6.
I tried it with C3 and it works as per your sketch.