Skip to main content
ADoro.2
Associate III
June 28, 2022
Question

I2C strange signals form

  • June 28, 2022
  • 5 replies
  • 2456 views

I am now dealing with the work of I2C. As a device, I connect an Eeprom AT24 chip. There are 10K Ohm pull-up resistors. There are no other devices on the bus and nothing else is connected to the boards. Transmission rate 400 kHz.

When I connect Eeprom to the ST Nucleo stm32l031 demo board, I see a completely normal waveform.

0693W00000NssQXQAZ.jpgWhen I connect ST Nucleo STM32L4R5 to the demo board, I see very slowly rising leading edges of the signals.

0693W00000NssR6QAJ.jpgThe GPIO and I2C settings are the same on both boards.

Changing the value of the pull-up resistors changes the waveform very little.

What could be the difference in the operation of I2C on these two microcontrollers?

This topic has been closed for replies.

5 replies

ONadr.1
Senior III
June 28, 2022

It seems, on the second oscilogram, that signal voltage is nearly 4V. Are pullup and memory chip connect to correct power tree?

ADoro.2
ADoro.2Author
Associate III
June 28, 2022

Is it software or hardware selectable?

ONadr.1
Senior III
June 28, 2022

It is hardware selectable. It must be the same voltage as CPU has. And, I would use 3k3 pullup rezistors fo 3.3V.

Andrew Neil
Super User
June 28, 2022

0693W00000NsuRcQAJ.pngsurely, you can use this to capture a screenshot?

This will give a much clearer result than a photograph...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
LCE
Principal II
June 28, 2022

So it depends on the STM board.

Check what else is connected on both boards to the I2C pins going external.

There are many options on the Nucleo boards, with loooong signal lines and many solder bridges.

I was actually quite surprised that and how some high frequency signals are routed all over the board...

If that doesn't help, get the layout files and compare the routing.