Fix: linking for devices without bootloader #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I used this repository as a template for my latest project, where I programmed an AVR microcontroller without any bootloader. For days I couldn't tell why my code compiled but when run didn't do anything. Then a friend of mine brought to my attention that in case of flashing without a bootloader an extra objectcopy is required to set up the interrupt vectors as well as the reset vector, as you can see in this example: https://blog.podkalicki.com/how-to-compile-and-burn-the-code-to-avr-chip-on-linuxmacosxwindows/
I don't know if the way I implemented it makes sense at all, but it works. I just hope I can take away some of the frustration of the next person trying to figure out why their code is not working.