Skip to content

Failed connection Raspberry Pi with pico through I2C, error occured when send more then one byte data by wire.write() #222

Discussion options

You must be logged in to vote

Good description. I have an idea what's going on, but need to wire up some stuff to test the theory out. (Since there are 2 cores and 2 I2C peripherals, I can do your test on the Pico itself).

I believe the issue is that in slave mode you've sent a 5x1-byte writew down but the RPI stops clocking after the 1st byte. In master mode, because the Pico generates the clock, you can be assured all bytes will eventually go out. Here, I bet the Pico is stuck on the 2nd byte write which may never exit because the I2C state machine will have reset since the RPI sent I2C end .

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@earlephilhower
Comment options

@bill-rubasse
Comment options

@earlephilhower
Comment options

@earlephilhower
Comment options

@earlephilhower
Comment options

Answer selected by bill-rubasse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants