Skip to content

Commit f91c558

Browse files
committed
update text info, update genpkg
1 parent 7fbe44c commit f91c558

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}"
9191
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"
9292

9393
## Creat dfu package zip file
94-
recipe.objcopy.zip.pattern="{build.nrfutil}" dfu genpkg --application "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.zip"
94+
recipe.objcopy.zip.pattern="{build.nrfutil}" dfu genpkg --dev-type 0x0052 --application "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.zip"
9595

9696
## Save bin
9797
recipe.output.tmp_file_bin={build.project_name}.bin

tools/nrfutil-0.5.2/nordicsemi/__main__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,10 @@ def serial(package, port, baudrate, flowcontrol):
287287
click.echo("Failed to upgrade target. Error is: {0}".format(e.message))
288288
click.echo("")
289289
click.echo("Possible causes:")
290-
click.echo("- bootloader, SoftDevice or application on target "
290+
click.echo("- Bootloader, SoftDevice or Application on target "
291291
"does not match the requirements in the DFU package.")
292-
click.echo("- baud rate or flow control is not the same as in the target bootloader.")
293-
click.echo("- target is not in DFU mode. If using the SDK examples, "
294-
"press Button 4 and RESET and release both to enter DFU mode.")
292+
click.echo("- Baud rate must be 115200, Flow control must be off.")
293+
click.echo("- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.")
295294

296295
return False
297296

0 commit comments

Comments
 (0)