Skip to content

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

@Schallbert

Description

@Schallbert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions