document
This commit is contained in:
@@ -3,10 +3,13 @@ DEBUG=0
|
||||
endif
|
||||
|
||||
all:
|
||||
$(MAKE) -f application.mk -j8 solo.hex DEBUG=$(DEBUG)
|
||||
$(MAKE) -f application.mk -j8 solo.hex DEBUG=$(DEBUG) EXTRA_DEFINES='-DFLASH_ROP=1'
|
||||
|
||||
all-hacker:
|
||||
$(MAKE) -f application.mk -j8 solo.hex EXTRA_DEFINES='-DSOLO_HACKER'
|
||||
$(MAKE) -f application.mk -j8 solo.hex DEBUG=$(DEBUG) EXTRA_DEFINES='-DSOLO_HACKER -DFLASH_ROP=0'
|
||||
|
||||
all-locked:
|
||||
$(MAKE) -f application.mk -j8 solo.hex EXTRA_DEFINES='-DFLASH_ROP=2'
|
||||
|
||||
debugboot-app:
|
||||
$(MAKE) -f application.mk -j8 solo.hex DEBUG=1 \
|
||||
|
@@ -1,34 +1,4 @@
|
||||
# STM32L4xx Solo
|
||||
|
||||
This documents how to build the firmware for Solo for the STM32L4xx microcontroller.
|
||||
|
||||
# Building
|
||||
|
||||
First build the cbor library.
|
||||
|
||||
```bash
|
||||
make cbor
|
||||
```
|
||||
|
||||
Now build the Solo bootloader.
|
||||
|
||||
```
|
||||
make boot
|
||||
```
|
||||
|
||||
Now build the Solo application.
|
||||
|
||||
```
|
||||
make clean # remove object files from bootloader, keep bootloader.hex
|
||||
make
|
||||
```
|
||||
|
||||
Merge the two files together. This script also patches a spot in memory to
|
||||
allow the bootloader to boot the application. This memory spot is later used for
|
||||
signed firmware updates.
|
||||
|
||||
```
|
||||
python merge_hex.py solo.hex bootloader.hex all.hex
|
||||
```
|
||||
|
||||
You can now program Solo with `all.hex`.
|
||||
Check out our [official documentation](https://solo.solokeys.io/building/)
|
||||
for instructions on building and programming!
|
||||
|
Reference in New Issue
Block a user