Search found 2 matches

by nbourre
Sun Oct 24, 2021 8:49 pm
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: Nucleo-64 STM32L476RG I2C not working
Replies: 2
Views: 2831

Re: Nucleo-64 STM32L476RG I2C not working

Thanks!

I managed to make it work using the following code before the begin():

Code: Select all

// ...
  Wire.setSDA(A4);
  Wire.setSCL(A5);
  
  if (!wire.begin()) {
// ... 
It works until, it starts to give plenty of 0s as values. I guess this is due to the lack of pullups.
by nbourre
Fri Oct 22, 2021 7:24 pm
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: Nucleo-64 STM32L476RG I2C not working
Replies: 2
Views: 2831

Nucleo-64 STM32L476RG I2C not working

Hi guys, I have a Nucleo-64 STM32L476RG and I did a simple program using the Cube[MX|IDE] to communicate with an I2C device and it works on pins A4 and A5. On the other side using the Arduino IDE, I can't figure out what I'm doing wrong. The I2C scanner is not working in my case. I'm surely missing ...

Go to advanced search