Serial Corruption Isolated (Tiny 87, maybe others) #842
ahshah
started this conversation in
Support / Q & A
Replies: 2 comments
-
Okay tested some chips really quick, but the issue only seems to occur on the 87 and not the x41 nor the x4 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've figured out the issue and have created a pull request: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been struggling with this odd problem. Here is the sample code:
This code prints like so in the 2.0.0 codeline (on thetip of master):
On 1.5.2 it prints like so:
The breaking change occurred here:
Checkout to the previous commit (cc0a052) confirms that everything works fine.
I've narrowed down the breakage in f083ebe to how we reference the tx buffer. I've created a commit that 'fixes' this issue:
v2.0.0-devThis-is-the-head-submit-PRs-against-this...ahshah:ATTinyCore:87_Serial_issue
However I cannot explain it besides "compiler optimization woes" or "compiler bug" . I've tried throwing 'volatile' everywhere in Serial0/Hardware CPP + H files, I cannot fix the issue. This has been the only way to get it behaving normally.
Would love to learn what in the world is going on here. I believe this should affect all sorts of chips besides the 87.
Beta Was this translation helpful? Give feedback.
All reactions