-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit 5e194bd
[AVR] Discover newer bootloader at runtime
Replaces #4280, only checks for the bootloader once
Tested with Hoodloader2, should work with every LUFA-derived bootloader released after 2014 (.apitable_signatures section must be placed at end of the flash)
BootloaderAPITable.S :
.global BootloaderAPI_Signatures
BootloaderAPI_Signatures:
.long BOOT_START_ADDR ; Start address of the bootloader
.word 0xDF00 ; Signature for the CDC class bootloader
.word 0xDCFB ; Signature for a LUFA class bootloader
makefile:
BOOT_API_LD_FLAGS += $(call BOOT_SECTION_LD_FLAG, .apitable_signatures, BootloaderAPI_Signatures, 8)1 parent 71b87bf commit 5e194bd
File tree
3 files changed
+54
-14
lines changed- cores/arduino
- variants/leonardo
3 files changed
+54
-14
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | + | ||
38 | + | ||
37 | 39 |
| |
38 | 40 |
| |
39 | 41 |
| |
| |||
99 | 101 |
| |
100 | 102 |
| |
101 | 103 |
| |
102 | - | ||
103 | - | ||
104 | - | ||
105 | - | ||
106 | - | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
107 | 116 |
| |
108 | 117 |
| |
109 | 118 |
| |
110 | 119 |
| |
111 | 120 |
| |
112 | 121 |
| |
113 | - | ||
114 | - | ||
115 | - | ||
116 | - | ||
117 | - | ||
118 | - | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
119 | 127 |
| |
128 | + | ||
129 | + | ||
120 | 130 |
| |
121 | 131 |
| |
122 | 132 |
| |
| |||
129 | 139 |
| |
130 | 140 |
| |
131 | 141 |
| |
132 | - | ||
133 | - | ||
134 | - | ||
142 | + | ||
143 | + | ||
144 | + | ||
145 | + | ||
135 | 146 |
| |
147 | + | ||
148 | + | ||
149 | + | ||
150 | + | ||
136 | 151 |
| |
137 | 152 |
| |
138 | 153 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | + | ||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
806 | 807 |
| |
807 | 808 |
| |
808 | 809 |
| |
810 | + | ||
811 | + | ||
812 | + | ||
813 | + | ||
814 | + | ||
815 | + | ||
809 | 816 |
| |
810 | 817 |
| |
811 | 818 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
366 | 366 |
| |
367 | 367 |
| |
368 | 368 |
| |
369 | + | ||
370 | + | ||
371 | + | ||
372 | + | ||
373 | + | ||
374 | + | ||
375 | + | ||
376 | + | ||
377 | + | ||
378 | + | ||
379 | + | ||
380 | + | ||
381 | + | ||
382 | + | ||
383 | + | ||
384 | + | ||
385 | + | ||
386 | + | ||
369 | 387 |
|
0 commit comments