Skip to main content
MJala.8
Associate
May 8, 2019
Question

Using PC_1 and PC_5 results in a faulty reading values, Why?

  • May 8, 2019
  • 2 replies
  • 645 views

The question is regarding Nucleo-l476RG, I need to use 5 ADC, 12Bit.

No matter what I do. I cannot see that these pins are connected to anything else.

Why do I get a wrong reading on these GPIO?

Please notice that my board is new .. the MCU is not damaged.

I used the PB_1 for the same measurements and it works just fine. I have no idea why this happens.

I use mbed-os in my project .. I don't think it is mbed-os's fault either.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
May 8, 2019

Check solder-bridge options for PC1

https://www.st.com/content/ccc/resource/technical/document/user_manual/98/2e/fa/4b/e0/82/43/b7/DM00105823.pdf/files/DM00105823.pdf/jcr:content/translations/en.DM00105823.pdf

If it is not hardware, then it is software. Proof the design using HAL, LL or register level code. Probe the pin-to-pin with a meter.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
MJala.8
MJala.8Author
Associate
May 9, 2019

HW was OK.

And why should the mbed not work just for these two pins? I don't get that.

The value reads from these pins seems to be multiplied by factor > 1.5

The same software I used with PB_1 and it works just fine.

Don't know what could cause that.