6 years, 4 months ago.

DISCO-F429ZI: analog IN can only be used an one port

Hi there,

i'm trying to read in an analogIN with the DISCO-F429ZI. It works only with port PC3. All other ports with AnalogIN marked in the pinout do not work correctly. I've measured f.e. PC4 or PC5. It seems to be as there are different signals yet and pull my analog signal to another potential. Is there any possibility to use another pin for the AnalogIN? Or redefine a pin if its used for SPI etc.?

thats the way i define a AI: AnalogIn analog_spur1(PC_3);

and to read out: analog_spur1.read();

Thanks a lot.

Question relating to:

The STM32F429 Discovery kit (STM32F429I-DISC1) allows users to easily develop applications with the STM32F429 high-performance MCUs with ARM®Cortex®-M4 core.

Hi again, i found a solution. As a second AnalogIN i use "PA_5_ALT0". I found it in the file PeripheralPins.c

posted by Micha Micha 20 Jul 2018

1 Answer

6 years, 4 months ago.

Hello Micha,

Can you post your code so that I can try to recreate your problem? I have a simple AnalogIn code for the DISCO-F429ZI and it work just fine.

Please let me know if you have any questions!

- Peter, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Accepted Answer