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

Fix: linking for devices without bootloader #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Derisis13
Copy link

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.

@Derisis13
Copy link
Author

Also the path to the avr-objdump executable is a bluff on my part, I run linux on my machine. I could very well be wring on that one.

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.

1 participant