-
Notifications
You must be signed in to change notification settings - Fork 163
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
region 'FLASH' already defined #413
Comments
having the same issue, switching to GNU-ld fixed it too. |
if that helps finding where this issue is coming, having a second workspace with self-tests and its own |
Are you setting the linker file using |
sorry my previous comment was not very readable, The linker file The structure is as follow:
The error I had was happening when i was using rust-lld, because both config.toml in Hope this is more clear this time! |
I seem to have stumbled accross this issue region 'FLASH' already defined but the thread is closed by now.
The proposed fix (using the GNU linker) does work for me.
I wonder if I'm doing something wrong or if there's a bug here.
I set up a reproduction here:
https://github.com/dimpolo/linkerbug
The goal would be to have a bootloader sit at the first 32K of FLASH and the main application at the 32K after.
Steps to reproduce:
git clone https://github.com/dimpolo/linkerbug.git cd linkerbug/bootloader cargo build
The text was updated successfully, but these errors were encountered: