Skip to content

Conversation

@eightycc
Copy link
Collaborator

#5210 changed the optimization flag for DEBUG=1 RP2 builds from -Og to -O3 to work around an ARM toolchain bug in CRT that caused a crash during C initialization. This bug is not present in at least ARM toolchain versions 12.3 and up. Since #9779 guarantees that the toolchain will be at least 13, it is safe to revert #5210.

This change reverts to-Og which provides a superior gdb debugging experience compared to -O3.

Copy link

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you verified it gets past early startup this seems fine to apply.

@eightycc
Copy link
Collaborator Author

@jepler Yes, starts up without issue. I've been using this patch for over a year on various RP2 boards.

@dhalbert dhalbert merged commit d9ea4ab into adafruit:main Dec 30, 2024
152 checks passed
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.

3 participants