You are misunderstanding the function of the assembler command. this is not what happens though, the boot_program_page() is just run indefinitely. As soon as the program sees the jump to application code (asm command) it burns the rest of the following code in the application memory. this is on page 282 of the datasheet ).Īsm ( "jmp 0x0000" ) // Jump to application code.īecause I have set the BOOTRST fuse at the beginning of the boot loader section, this code is burnt into the bootloader. So, I have set the program to execute from the begging of the boot loader section, 0x3800 (for a page size of 2048). these are my fuse bits:įrom my knowledge, if I set the BOOTRST fuse I can set where the program boot(or rests from) I want to: Blink an led at one speed in the bootloader section of flash, and then blink at another speed in application section of flash. I want to create a simple test application using a bootloader.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |