I2CTarget: strange sequential read #18164
Unanswered
insekt
asked this question in
RP2040 / Pico
Replies: 2 comments 10 replies
-
I do not know what i2cget is sending to to target, but the baseline I2CTarget expects the sequence issued by i2c.readfrom_mem(),which writes the address as first byte. When using i2c.readfrom(), the first bytes will be skipped. You can use a callback for the IRQ_READ_REQ to support the i2c.readfrom() sequence. See the documentation for I2CTarget. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@robert-hh I see. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered some strange behavior with I2CTarget on Pico / RP2040.
Test setup: RPi - I2C - Pico
Linux rpi 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
MicroPython v1.26.0 on 2025-08-09; Raspberry Pi Pico with RP2040
On Pico I emulate EEPROM:
Reading from RPi:
When responding, one byte is skipped, i.e. each reading will shift not by 1 byte, but by 2.
If I replace Pico to EEPROM chip.
Test setup: RPi - I2C - EEPROM IC
Reading works fine.
Any ideas what is the cause?
Beta Was this translation helpful? Give feedback.
All reactions