Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

SDK • Re: I²C 0 and UART0 issues (pin clash and backward pins)

$
0
0
Best if you distill the problem down to a minimum program and share the code, or troubleshoot step-by-step yourself, present some data here and see if anyone here can sort it out. Whether it is a CMake config thing or something lurking in the codebase, I don't think either issue is moving forward unless there is good troubleshooting data and we can start eliminating this or that.
Well after hacking at the demo found out it was a coding error, the i2c slave example doesnt say anywhere that the buffer is written out automatically.
i made the mistake of having a for loop that was putting the bytes out directly.

has OP posted their I2C specific code anywhere?
I have

Code:

pico_enable_stdio_usb(${PROJECT_NAME} 1)
in my code without any issues at all and im only setting pins 0 & 1 to i2c (basically stripped the slave demo and running it on 2 picos. both use i2c0 with pin 0 & 1)

i couldve missed is maybe but has OP tried using a debugger?

Statistics: Posted by Noah0507 — Wed Jul 23, 2025 2:46 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles