Page 1 of 1

Nucleo F429ZI DAC/ADC

Posted: Sun Apr 04, 2021 9:22 pm
by mpython
Why isn't possible to run ADC on some pins in the yellow ring on the picture, but different pins yes?
Image
In the datasheet, it should work.
Is it possible to repair it in firmware?

Code: Select all

#F3=pyb.ADC('PF3') #A3
#F5=pyb.ADC('PF5') #A4
#F10=pyb.ADC('PF10')#A5
Traceback (most recent call last):
  File "<stdin>", line 18, in <module>
ValueError: pin F3 does not have ADC capabilities
And why the pyb library does not contain DAC?

Thank you for your responses.

Re: Nucleo F429ZI DAC/ADC

Posted: Fri Apr 23, 2021 6:26 am
by mpython
Hello,
why isn't implemented PWM in the machine library for nucleo f429zi?

Thank you for your response.

Re: Nucleo F429ZI DAC/ADC

Posted: Sat Apr 24, 2021 4:06 am
by rpr
I was able to get the DAC to work by adding the following line

#define MICROPY_HW_ENABLE_DAC (1)

to the end of

ports/stm32/boards/NUCLEO_F429ZI/mpconfigboard.h

and recompiling the micropython firmware.