Skip to content

Regarding the issue that the chip using STM32G431CBU6 cannot be read by ADC #2969

@JingtaiChen

Description

@JingtaiChen

Regarding the issue that the chip using STM32G431CBU6 cannot be read by ADC
Hello, recently I have been using the STM32G431CBU6 and found that the ADC cannot be used in the Arduino environment. The read value is always 0. I don't have any other computer to test it, but I tried to use CubeIDE to read the same pin. CubeIDE has no problem and can read the value. Here I attach my program.
‘’
HardwareSerial Serial1(PA10, PA9);

void setup()
{
Serial1.begin(115200);
// analogReadResolution(12);
}

void loop()
{
Serial1.println(analogRead(PA0));
delay(200);
}
‘’

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions