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

bootloader compile question #11

Open
WangChun420 opened this issue Jan 23, 2022 · 0 comments
Open

bootloader compile question #11

WangChun420 opened this issue Jan 23, 2022 · 0 comments

Comments

@WangChun420
Copy link

Describe the bug
in opitboot.c i see this
#if defined (AVR_ATmega328) || defined(AVR_ATmega328P)
// boot_code : jmp to 0x7400 (start of bootloader)
asm(" .section .bootv\n"
"boot_code: .word 0x940c\n"
".word 0x3a00\n");
#else
#if #defined(AVR_ATmega168)
// boot_code : jmp to 0x3c00 (start of bootloader)
asm(" .section .bootv\n"
"boot_code: .word 0x940c\n"
".word 0x1e00\n");
#endif
#endif
i know it can compile to this
image
but in my project, i cant compile ,dont know why?

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