-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
Feature Request: allow custom linker scripts #536
Comments
Hi @JetForMe , |
I am using SAMD! But I'm sorry, I don't know where the proper repo is. Seems like this would apply to any platform though, wouldn't it? Thanks! |
Here we go, issue moved :) |
Yeah, that might work. I actually found a bug in the double-tap code that improved my situation, but still didn't fix it 100% of the time. Here's the PR that is still in review: microsoft/uf2-samdx1#89 The problem is that it treats any reset as a tap on the reset button, including brown-out resets, which is what I think is happening in my case when the battery is dying or the sun is just coming up. If I comment that out, how does one enter the bootloader then to flash a new application? |
The SerialUSB 1200bps touch (the usual thing we do while uploading through the IDE) still works in that case, so it should be a viable solution |
Ah okay. I may try that. Right now the code is running without a boot loader and I think it's working. It'll take several days of testing in the sun to see for sure. |
It would still be nice to be able to have custom linker scripts in the IDE. |
I think you can do something like this by making a derived core and adding the needed linker flags for this. I think you should be able to override If that works, I think there is nothing that needs to be changed in this core? You'll need a custom board definition to trigger a linker script anyway. Or are you suggesting that the sketch can supply a linker script, rather than basing it on the board definition? I guess that could make sense, but I'm not sure where to begin implementing this (there's no way to say in |
Yes, this is what I'm suggesting. The IDE already treats |
Yeah, I guess that could work. That would require changes to the build process, though, so maybe this would then be better placed in the |
Because my project is solar powered, the power to it is sometimes very "dirty." This is causing the bootloader to trigger (despite a bug I fixed). I want to just flash my code without any bootloader, but that means changing the linker script, which currently can only be done platform-wide.
It'd be great if I could include a linker script in my sketch like any other source file.
Thanks!
The text was updated successfully, but these errors were encountered: