Skip to content

bootloader compile question #11

@WangChun420

Description

@WangChun420

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions