cancel
Showing results for 
Search instead for 
Did you mean: 

Why is I2C1 clock (PB6) also appearing on PA6? (L412KB)

Legacy member
Not applicable

I'm talking to a camera device on I2C1. That is working fine. I read back the data via DMA on a scan signal. This also works fine except for one bit, D6, mapped to GPIO PA6. If the output pin from the camera is connected to PA6, I2C1 stops working. Further investigation shows that PA6 is being driven with the same signal as PB6, which is I2C1's clock. In my debug, nothing is connected to PB6, PA6, but I still see the clock appear on PA6. See image below. PA6 is an input, with an internal pullup. PB6 also has an internal pullup.

Again, there is nothing connected to these pins except the logic analyzer. The signals are too wide to be glitches, they are driven. There isn't a single reference to PA6 in the entire reference manual (RM0394, ctrl-f pdf search) so I'm a bit confused.

0693W00000LysgoQAB.png

10 REPLIES 10
Legacy member
Not applicable

I was too focused on software, but I see now that you were providing me a hint and I missed it before others joined in. Thanks for the teaching moment.