include board (target) in filename, files are now called like
bootloader-sysmooctsim-0.1.1-5554-dirty.elf Change-Id: Ibdde1c02d5dd3bcd714bae1d374397d9596fede0
This commit is contained in:
parent
5554133528
commit
397966fa3c
|
@ -46,7 +46,7 @@ make
|
||||||
The board name can be set in 'gcc/Makefile' *BOARD* variable, or provided while compiling (e.g. `make BOARD=SAME54_XPLAINED_PRO`).
|
The board name can be set in 'gcc/Makefile' *BOARD* variable, or provided while compiling (e.g. `make BOARD=SAME54_XPLAINED_PRO`).
|
||||||
*SAME54_XPLAINED_PRO* is the default value.
|
*SAME54_XPLAINED_PRO* is the default value.
|
||||||
|
|
||||||
The resulting firmware binary is `bootloader.bin`.
|
The resulting firmware binary is `bootloader-$(BOARD)-$(GIT_VERSION).bin`.
|
||||||
|
|
||||||
Flashing
|
Flashing
|
||||||
========
|
========
|
||||||
|
@ -66,7 +66,7 @@ To flash the bootloader using the [edbg tool](https://github.com/ataradov/edbg)
|
||||||
To flash the USB DFU bootloader, perform the following actions:
|
To flash the USB DFU bootloader, perform the following actions:
|
||||||
* remove reserved bootloader space so we can erase it: `edbg --target atmel_cm4v2 --fuse wv,29:26,15`
|
* remove reserved bootloader space so we can erase it: `edbg --target atmel_cm4v2 --fuse wv,29:26,15`
|
||||||
* erase the whole flash: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --erase`
|
* erase the whole flash: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --erase`
|
||||||
* program the bootloader: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --program --verify --file bootloader.bin`
|
* program the bootloader: `edbg --target atmel_cm4v2 --fuse v,29:26,15 --program --verify --file bootloader-BOARD-XXXX.bin`
|
||||||
* reserve bootloader space: `edbg --target atmel_cm4v2 --fuse wv,29:26,13`
|
* reserve bootloader space: `edbg --target atmel_cm4v2 --fuse wv,29:26,13`
|
||||||
|
|
||||||
SWJ
|
SWJ
|
||||||
|
|
|
@ -169,7 +169,8 @@ DEPS_AS_ARGS += \
|
||||||
"gcc/system_same54.d" \
|
"gcc/system_same54.d" \
|
||||||
"atmel_start.d"
|
"atmel_start.d"
|
||||||
|
|
||||||
OUTPUT_FILE_NAME := bootloader-$(GIT_VERSION)
|
BOARD_LC := $(shell echo $(BOARD) | tr A-Z a-z)
|
||||||
|
OUTPUT_FILE_NAME := bootloader-$(BOARD_LC)-$(GIT_VERSION)
|
||||||
QUOTE := "
|
QUOTE := "
|
||||||
OUTPUT_FILE_PATH +=$(OUTPUT_FILE_NAME).elf
|
OUTPUT_FILE_PATH +=$(OUTPUT_FILE_NAME).elf
|
||||||
OUTPUT_FILE_PATH_AS_ARGS +=$(OUTPUT_FILE_NAME).elf
|
OUTPUT_FILE_PATH_AS_ARGS +=$(OUTPUT_FILE_NAME).elf
|
||||||
|
|
Loading…
Reference in New Issue