Skip to content

Commit 292fac2

Browse files
aethanielcmaglie
authored andcommitted
[bl] Updating build documentation
Signed-off-by: Thibaut VIARD <[email protected]>
1 parent c1be140 commit 292fac2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

bootloaders/zero/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,24 @@ Bootloader code will be located at 0x0 and executed before any applicative code.
7777
Applications compiled to be executed along with the bootloader will start at 0x2000 (see linker script bootloader_samd21x18.ld).
7878

7979
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

Comments
 (0)