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

When changing Makefile new hex is not generated #44

Open
CableGuy67 opened this issue Nov 23, 2019 · 0 comments
Open

When changing Makefile new hex is not generated #44

CableGuy67 opened this issue Nov 23, 2019 · 0 comments

Comments

@CableGuy67
Copy link

I was working though the book using the 168 as is used in the book. I got a couple atmega8 chips for something else and figured I'd test them by swapping them into my testbed. I changed the Makefile to reflect the new chip and flashed the new chip. Everything reported as okay but I wasn't getting any activity on the leds. Since the rule for making the hex isn't dependent on changes to the Makefile like the c (etc) files are, the chip was flashed with the hexfile for the atmega168, not the m8 that I needed. Adding the Makefile as a prerequisite to the elf file would most likely fix this issue. Once I modified the .c file everything was rebuilt and the flash after that worked as expected.
Great book. Thanks for that.

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

No branches or pull requests

1 participant