File tree Expand file tree Collapse file tree 5 files changed +1202
-0
lines changed
variants/arduino_mzero/linker_scripts/gcc Expand file tree Collapse file tree 5 files changed +1202
-0
lines changed Original file line number Diff line number Diff line change 19
19
#include < SD.h>
20
20
#include < FlashStorage.h>
21
21
22
+ #ifdef ARDUINO_SAM_ZERO
23
+ #define SDU_START 0x4000
24
+ #else
22
25
#define SDU_START 0x2000
26
+ #endif
23
27
#define SDU_SIZE 0x4000
24
28
25
29
#define SKETCH_START (uint32_t *)(SDU_START + SDU_SIZE)
@@ -90,3 +94,4 @@ int main() {
90
94
asm (" bx %0" ::" r" (resetHandlerAddress));
91
95
}
92
96
97
+
Original file line number Diff line number Diff line change @@ -28,3 +28,4 @@ buildSDUBootSketch "arduino:samd:mkrfox1200" "$OUTPUT_PATH/mkrfox1200.h"
28
28
buildSDUBootSketch " arduino:samd:mkrgsm1400" " $OUTPUT_PATH /mkrgsm1400.h"
29
29
buildSDUBootSketch " arduino:samd:mkrwan1300" " $OUTPUT_PATH /mkrwan1300.h"
30
30
buildSDUBootSketch " arduino:samd:mkrwifi1010" " $OUTPUT_PATH /mkrwifi1010.h"
31
+ buildSDUBootSketch " arduino:samd:mzero_bl" " $OUTPUT_PATH /mzero.h"
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ unsigned char sduBoot[0x4000] = {
36
36
#include " boot/mkrwan1300.h"
37
37
#elif defined(ARDUINO_SAMD_MKRWIFI1010)
38
38
#include " boot/mkrwifi1010.h"
39
+ #elif defined(ARDUINO_SAM_ZERO)
40
+ #include " boot/mzero.h"
39
41
#else
40
42
#error "Unsupported board!"
41
43
#endif
You can’t perform that action at this time.
0 commit comments