You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2019/10/29 23:49:57 UTC

[mynewt-core] branch master updated: otp_tool: return the key read using otp_read_key

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 552d26c  otp_tool: return the key read using otp_read_key
552d26c is described below

commit 552d26cbcbadf2eefe03e2990977a2419cf4832d
Author: Naveen Kaje <na...@juul.com>
AuthorDate: Mon Oct 28 11:02:44 2019 -0500

    otp_tool: return the key read using otp_read_key
    
    Return the read key for further processing and verification.
    
    Signed-off-by: Naveen Kaje <na...@juul.com>
---
 hw/bsp/dialog_da1469x-dk-pro/otp_tool.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/bsp/dialog_da1469x-dk-pro/otp_tool.py b/hw/bsp/dialog_da1469x-dk-pro/otp_tool.py
index 34feafc..bd39981 100755
--- a/hw/bsp/dialog_da1469x-dk-pro/otp_tool.py
+++ b/hw/bsp/dialog_da1469x-dk-pro/otp_tool.py
@@ -151,6 +151,7 @@ def otp_read_key(index, segment, uart):
     else:
         raise SystemExit("Error reading key with status %s" %
                          hex(response.status))
+    return key
 
 
 @click.argument('infile')
@@ -336,7 +337,7 @@ def flash_read(uart, length, outfile, offset):
               help='flash address offset, in hex')
 @click.option('-l', '--length', type=int, required=True, help='size to erase')
 @click.option('-u', '--uart', required=True, help='uart port')
-@click.command(help='Write to flash')
+@click.command(help='Erase flash')
 def flash_erase(uart, offset, length):
     try:
         ser = serial.Serial(port=uart, baudrate=1000000, timeout=60,