Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instruction cache invalidation breaks timing on teensy4 #404

Open
v0lker opened this issue Oct 3, 2024 · 1 comment · May be fixed by #405
Open

instruction cache invalidation breaks timing on teensy4 #404

v0lker opened this issue Oct 3, 2024 · 1 comment · May be fixed by #405

Comments

@v0lker
Copy link

v0lker commented Oct 3, 2024

  • Arduino board: teensy 4.1

  • Arduino IDE version (found in Arduino -> About Arduino menu): not installed / not relevant

REPRO STEPS BELOW

  • apply patch from cope with I$ miss on teensy #405

  • define REPRODUCE_TEENSY_TIMING in Adafruit_NeoPixel.cpp and enable choice of reproducing frequency in (i was driving 2 strips, one after the other and by changing the condition between if (!(ct & 1)) { , if (ct & 1) { or if (true) {, i can break the timing on either the second, first or both strips.

  • the desired colour is orange (RGB 0xee4602, GRB 0x46ee02)

  • the colour when the first bit is dropped is green (logic analyser shows 0x8ddc04 == (0x46ee02 << 1))

here are the traces:
beginning_bad_good

proposed fix is in PR #405

@v0lker v0lker linked a pull request Oct 3, 2024 that will close this issue
@v0lker
Copy link
Author

v0lker commented Oct 3, 2024

@KurtE , @PaulStoffregen as you were previously involved in this, you might have some thoughts?

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 a pull request may close this issue.

1 participant