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

Linker error with toolchain-atmelavr 5.4.0: Error: register r24, r26, r28 or r30 required #13

Open
Schallbert opened this issue Jan 20, 2021 · 1 comment

Comments

@Schallbert
Copy link

Schallbert commented Jan 20, 2021

Hi,

I noticed an issue when building in debug mode with compiler optimization is switched off. This library wouldn't build anymore. Doing some research online, I found this solution which works perfectly on my branch.
In fact, to fix this just a single character change in SoftwareSerial.cpp is required in line 406 : "+r" (delay), "+a" (tmp) the +r needs to be exchanged with +w and that's it.

Here's my original thread on the platformio project: https://community.platformio.org/t/project-inspection-error-register-r24-r26-r28-or-r30-required/18648?u=schallbert

@Schallbert
Copy link
Author

I tried to setup a branch in this repo to make a pull request for the fix but I don't have the rights...

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

No branches or pull requests

1 participant