Skip to content

Fix i2c slave scl freeze if read address first recieved#25

Merged
cuu merged 1 commit into
clockworkpi:masterfrom
shtirlic:i2creadfirst
Apr 19, 2025
Merged

Fix i2c slave scl freeze if read address first recieved#25
cuu merged 1 commit into
clockworkpi:masterfrom
shtirlic:i2creadfirst

Conversation

@shtirlic
Copy link
Copy Markdown
Contributor

If i2c master performs discovery via address read after init, stm32 has no data to send for the master in requestEvent because receiveEvent is not fired. Send the zero byte if we got requestEvent early, for example on i2c address read.

This is how it looks like when slave stalls the SCL line
image

If i2c master performs discovery via address read, stm32 has no data to
send for the masterin requestEvent. Send the zero byte if we got
requestEvent early, for example on i2c address read.
@cuu cuu merged commit 6b8553e into clockworkpi:master Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants