Skip to main content
Texram
Associate III
July 8, 2022
Question

NUCLEO-L073RZ, ADC reading problem on PA2 and PA3 pins We removed SB13 and SB14 resistors on NUCLEO-L073RZ board and configured PA2 and PA3 as ADC channels (in CubeMX), but AP2 and PA3 don't read any analogy inputs.

  • July 8, 2022
  • 4 replies
  • 972 views

We also configured the other PAx pins, such as PA0, PA1, PA4, PA5, ect as ADC channels. these pins work properly.

Removing SB13 and SB14 is based on the suggestion of NUCLEO-L073RZ manual (UM1724 Rev 14), in order to use PA2/3 pins.

Please let us know on how to use PA2/3 pins as Analog Inputs.

Thanks

David

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
July 8, 2022

> AP2 and PA3 don't read any analogy inputs

What does this mean? Does the program crash? How are these pins connected? If you set them as GPIO output and toggle, do you see valid logic levels on them?

JW​

MM..1
Chief III
July 9, 2022

In CubeMX is this pins green?

gbm
Lead III
July 9, 2022

Did you put the resistors/jumpers in the new places (SB62/63)? This is necessary to connect PA2/3 to the connector's pins.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Texram
TexramAuthor
Associate III
July 11, 2022

Have you guys even used any of STM32 Nucleo-64 boards and configured PA2/3 as Analog Input?

All of STM32 Nucleo-64 boards have the same pin setting.