I suspect there is a bug with the AnalogIn component of the mbed library for Nucleo-F746ZG boards. It seems that both AnalogIn's read() and read_u16() always return 0, regardless of the voltage applied to the ADC pin.
I have copied the following example verbatim to test there is a problem with the library and not a conflict with other elements of my code: https://developer.mbed.org/teams/ST/code/Nucleo_read_analog_value/file/6d058686efbf/main.cpp
I have tested this with two different Nucleo-F746ZG boards and observed the same effects. I have also tried different ADC pins with no difference in results. My test setup involves connecting the 3.3v pin of the board to the ADC pin under test via a 100 ohm resistor.
To rule out my local compiler setup, I compiled this with the online compiler. I used mbed library version 118.
I scanned through the F746ZG board docs to see if there is a jumper I need to set to enable ADC functionality but haven't seen it yet.
Hopefully this can be addressed soon as I really need the ADC pin functionality to finish this project and I really don't want to have to manually set all the pin configuration components manually if I can help it.
I suspect there is a bug with the AnalogIn component of the mbed library for Nucleo-F746ZG boards. It seems that both AnalogIn's read() and read_u16() always return 0, regardless of the voltage applied to the ADC pin.
I have copied the following example verbatim to test there is a problem with the library and not a conflict with other elements of my code: https://developer.mbed.org/teams/ST/code/Nucleo_read_analog_value/file/6d058686efbf/main.cpp
I have tested this with two different Nucleo-F746ZG boards and observed the same effects. I have also tried different ADC pins with no difference in results. My test setup involves connecting the 3.3v pin of the board to the ADC pin under test via a 100 ohm resistor.
To rule out my local compiler setup, I compiled this with the online compiler. I used mbed library version 118.
I scanned through the F746ZG board docs to see if there is a jumper I need to set to enable ADC functionality but haven't seen it yet.
Hopefully this can be addressed soon as I really need the ADC pin functionality to finish this project and I really don't want to have to manually set all the pin configuration components manually if I can help it.