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

Fixed PROGMEM related issues due to newer avr-gcc #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

admalledd
Copy link

Due to an update in 4.6.1 of avr-gcc prog_* and friends kinda broke.

this fixes that issue and makes all the data sets const as they should have been.

basically SPI.transfer does `while (!(SPSR & _BV(SPIF)))` and for some reason this spin locks never returning.
(suspected bad firmware that does not ack properly?)

changed to use the demo code's method of transmitting SPI data and it worked fine.
@admalledd
Copy link
Author

Also ran into an issue with SPI.transfer, (again possibly due to how the new avr-gcc does some things and the current firmware not being up-to-date but kinda workable?) made a work around that I can't see any issues with so far.

…k?)"

Turns out that something else is causing issues and my fix was only intermittent? gah...
…right time.

My testing of trying to fix it before hand was actually setting up SPI in the wrong order, hence how I missed it.

And how that other commit got by me: stale data in the matrix from other testing (I *thought* I had reset it...)
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.

1 participant