How to use PA5 for OPAMP pin in CubeMx for NUCLEO-G431RB
Thank you for your replies. Good for me to know, that this marking should have been LD2. I wondered that, I may had got something else wrong about this.
It seems to me, that CubeMX assumes, that the SB6 jumper is installed, so you cannot use CubeMX to set the PA5 as input for OPAMP2. But I guess, that you can use some HAL function to do it. Am I right?
CubeMx doesn’t care if SB6 is soldered or not. So remove SB6 and configure PA5 for OPAMP function either in CubeMx or using directly the HAL.
When I look the PIN-out view, PA5 is marked red. When I look the reference manual about OPAMPS:

Then it seems possible to have OPAM2 use PA5. In CubeMX I look at OPMP2 mode pull down menu, you got “Standalone Internally connected_IO”. But it is marked red and cannot be selected.
Post split from this thread for a newer question.

