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

include bss size when calculating rwtext address #145

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

MabezDev
Copy link
Member

@MabezDev MabezDev commented Aug 9, 2022

Closes #144

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

LGTM!

@MabezDev MabezDev marked this pull request as draft August 9, 2022 16:26
@MabezDev
Copy link
Member Author

MabezDev commented Aug 9, 2022

Switched to draft based on #144 (comment) will look into this again in the morning.

If bss contained anything a linker error was emitted about overlapping
sections. Moving the .bss section to after the .rwtext, and adding a dummy
section to pad data bus access to the bss section fixes this.
@MabezDev MabezDev marked this pull request as ready for review August 9, 2022 22:54
@MabezDev
Copy link
Member Author

MabezDev commented Aug 9, 2022

Thanks for the pointer @gustavonihei, I've switched to the method used in the MCU boot PR.

@bjoernQ
Copy link
Contributor

bjoernQ commented Aug 10, 2022

Looks good and I can flash and run it 👍

@bjoernQ bjoernQ merged commit 35e568d into main Aug 10, 2022
@noppej
Copy link

noppej commented Aug 10, 2022

Thanks all ... my own project also works again after this fix :)

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.

[ESP32-C3] Direct boot linker bug
4 participants