update text info, update genpkg
This commit is contained in:
1 parent
7fbe44cd31
commit
f91c5589c7
2 files changed
+4
-5
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user