Skip to content

master+slave Wire/TWI code seems to break on 1.5+ core version, worked up to 1.4.10 #393

Answered by MX682X
jl-lewis asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks. The graphs helped me a lot, as I found my Typo:
twi.c, line 637. _toggleStreamFn should be set to 0. (Copy-Paste does it again).
this variable switches the access between master and slave array for writes, reads, available. When it's 1, all writes go to the Slave part, and this results in the "empty" Master write after the first slave transaction.

Replies: 9 comments 13 replies

Comment options

You must be logged in to vote
2 replies
@SpenceKonde
Comment options

@MX682X
Comment options

Comment options

You must be logged in to vote
2 replies
@jl-lewis
Comment options

@MX682X
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@SpenceKonde
Comment options

@jl-lewis
Comment options

@SpenceKonde
Comment options

@MX682X
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@SpenceKonde
Comment options

@MX682X
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@lauritsriple
Comment options

@jl-lewis
Comment options

@MX682X
Comment options

Answer selected by jl-lewis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Bug Behavior of core does not match API or reasonable expectations Impacts megaTinyCore This bug is also present in megaTinyCore - DxCore and megaTinyCore are derived from same codebase.
4 participants