Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Commit 83b6ea5

Browse files
committed
added dx1elf2dfu utility
1 parent 9d79a3c commit 83b6ea5

File tree

4 files changed

+523
-1
lines changed

4 files changed

+523
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@ It is a much more space efficient alternative to the 4kB Atmel/Microchip [AN_423
99

1010
## Usage
1111

12-
Downloading can be accomplished with the existing [dfu-util](http://dfu-util.sourceforge.net/) utilities:
12+
Downloading can be accomplished with the existing [dfu-util](http://dfu-util.sourceforge.net/) utilities.
13+
14+
Downloading a raw binary file looks like this:
1315

1416
```
1517
dfu-util -D write.bin
1618
```
1719

20+
or by using the provided dx1elf2dfu utility, one can create a .dfu file to be downloaded:
21+
22+
```
23+
dfu-util -D write.dfu
24+
```
25+
1826
## Specifics
1927

2028
The linker memory map of the user application must be modified to have an origin at 0x0000_0400 rather than at 0x0000_0000. This bootloader resides at 0x0000_0000.

dx1elf2dfu/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ifeq ($(OS),Windows_NT)
2+
EXE_SUFFIX = .exe
3+
endif
4+
5+
DX1ELF2DFU_C = dx1elf2dfu.c
6+
7+
all: dx1elf2dfu$(EXE_SUFFIX)
8+
9+
dx1elf2dfu$(EXE_SUFFIX): Makefile $(DX1ELF2DFU_C)
10+
gcc $(DX1ELF2DFU_C) -o $@ $(CFLAGS)
11+
strip $@
12+
13+
clean:
14+
rm -f dx1elf2dfu$(EXE_SUFFIX)

dx1elf2dfu/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
dx1elf2dfu
2+
==========
3+
4+
This tool is a possible aid for developers who use the Dx1bootloader and want to generate a DFU image directly from a Dx1 ELF object file.
5+
6+
## Sample Usage
7+
8+
```
9+
dx1elf2dfu myapp.elf myapp.dfu
10+
```
11+

0 commit comments

Comments
 (0)