From f91c5589c71310066a2a4b67d03b174d894e3b24 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 22 Feb 2017 16:18:55 +0700 Subject: [PATCH] update text info, update genpkg --- platform.txt | 2 +- tools/nrfutil-0.5.2/nordicsemi/__main__.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/platform.txt b/platform.txt index 9be7f80c..6e6e320d 100644 --- a/platform.txt +++ b/platform.txt @@ -91,7 +91,7 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" ## Creat dfu package zip file -recipe.objcopy.zip.pattern="{build.nrfutil}" dfu genpkg --application "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.zip" +recipe.objcopy.zip.pattern="{build.nrfutil}" dfu genpkg --dev-type 0x0052 --application "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.zip" ## Save bin recipe.output.tmp_file_bin={build.project_name}.bin diff --git a/tools/nrfutil-0.5.2/nordicsemi/__main__.py b/tools/nrfutil-0.5.2/nordicsemi/__main__.py index efa8ad4f..688b59b1 100644 --- a/tools/nrfutil-0.5.2/nordicsemi/__main__.py +++ b/tools/nrfutil-0.5.2/nordicsemi/__main__.py @@ -287,11 +287,10 @@ def serial(package, port, baudrate, flowcontrol): click.echo("Failed to upgrade target. Error is: {0}".format(e.message)) click.echo("") click.echo("Possible causes:") - click.echo("- bootloader, SoftDevice or application on target " + click.echo("- Bootloader, SoftDevice or Application on target " "does not match the requirements in the DFU package.") - click.echo("- baud rate or flow control is not the same as in the target bootloader.") - click.echo("- target is not in DFU mode. If using the SDK examples, " - "press Button 4 and RESET and release both to enter DFU mode.") + click.echo("- Baud rate must be 115200, Flow control must be off.") + click.echo("- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.") return False