You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bootloaders/zero/README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,3 +77,24 @@ Bootloader code will be located at 0x0 and executed before any applicative code.
77
77
Applications compiled to be executed along with the bootloader will start at 0x2000 (see linker script bootloader_samd21x18.ld).
78
78
79
79
Before jumping to the application, the bootloader changes the VTOR register to use the interrupt vectors of the application @0x2000.<- not required as application code is taking care of this.
80
+
81
+
## 5- How to build
82
+
83
+
**Arduino Zero**
84
+
85
+
```
86
+
make
87
+
```
88
+
89
+
**Genuino Zero**
90
+
91
+
```
92
+
make GENUINO=1
93
+
```
94
+
95
+
**Others (derivatives)**
96
+
97
+
```
98
+
make CFLAGS_EXTRA="-D__SAMD21G18A__ -DUSB_PID_HIGH=<your USB VID> -DUSB_PID_LOW=<your USB PID>"
99
+
```
100
+
You can also check https://github.com/ameltech/sme-arduino-core/blob/master/hardware/AMEL/samd/bootloaders/sme/Makefile for reference.
0 commit comments