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

Commit

Permalink
added dx1elf2dfu utility
Browse files Browse the repository at this point in the history
  • Loading branch information
majbthrd committed Jul 14, 2018
1 parent 9d79a3c commit 83b6ea5
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@ It is a much more space efficient alternative to the 4kB Atmel/Microchip [AN_423

## Usage

Downloading can be accomplished with the existing [dfu-util](http://dfu-util.sourceforge.net/) utilities:
Downloading can be accomplished with the existing [dfu-util](http://dfu-util.sourceforge.net/) utilities.

Downloading a raw binary file looks like this:

```
dfu-util -D write.bin
```

or by using the provided dx1elf2dfu utility, one can create a .dfu file to be downloaded:

```
dfu-util -D write.dfu
```

## Specifics

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.
Expand Down
14 changes: 14 additions & 0 deletions dx1elf2dfu/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ifeq ($(OS),Windows_NT)
EXE_SUFFIX = .exe
endif

DX1ELF2DFU_C = dx1elf2dfu.c

all: dx1elf2dfu$(EXE_SUFFIX)

dx1elf2dfu$(EXE_SUFFIX): Makefile $(DX1ELF2DFU_C)
gcc $(DX1ELF2DFU_C) -o $@ $(CFLAGS)
strip $@

clean:
rm -f dx1elf2dfu$(EXE_SUFFIX)
11 changes: 11 additions & 0 deletions dx1elf2dfu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
dx1elf2dfu
==========

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.

## Sample Usage

```
dx1elf2dfu myapp.elf myapp.dfu
```

Loading

0 comments on commit 83b6ea5

Please sign in to comment.