Skip to content

Commit

Permalink
Update to version 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Wisniewska committed Oct 9, 2020
1 parent b14199e commit 9a5a67e
Show file tree
Hide file tree
Showing 19 changed files with 3,385 additions and 32 deletions.
2 changes: 1 addition & 1 deletion spsdk/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
Having the version in a separate file makes it easier to share it with setup.py
"""

__version__ = "0.2.1"
__version__ = "0.2.2"
2 changes: 1 addition & 1 deletion spsdk/apps/blhost.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def efuse_read_once(ctx: click.Context, address: int) -> None:
"""
with McuBoot(ctx.obj['interface']) as mboot:
response = mboot.efuse_read_once(address)
display_output([response], mboot.status_code, ctx.obj['use_json'])
display_output([4, response], mboot.status_code, ctx.obj['use_json'])


@main.command()
Expand Down
32 changes: 32 additions & 0 deletions spsdk/data/cfpa/database.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,38 @@
},
"latest": "a1",
"address": "0x3_DE00"
},
"lpc550x":
{
"revisions": {
"a1": "niobe4nano_a1.xml"
},
"latest": "a1",
"address": "0x3_DE00"
},
"lpc55s0x":
{
"revisions": {
"a1": "niobe4nano_a1.xml"
},
"latest": "a1",
"address": "0x3_DE00"
},
"lpc55s2x":
{
"revisions": {
"a1": "niobe4_a1.xml"
},
"latest": "a1",
"address": "0x9_DE00"
},
"lpc552x":
{
"revisions": {
"a1": "niobe4_a1.xml"
},
"latest": "a1",
"address": "0x9_DE00"
}
},
"computed_registers": [
Expand Down
4 changes: 2 additions & 2 deletions spsdk/data/cfpa/niobe4_a1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
<bit_field offset="4" width="2" name="RoTK2_EN" access="RW" reset_value="0" description="RoT Key 2 enable. 00 - Invalid 01 - Enabled 10, 11 - Key revoked">
<alias type="CMSIS" value="FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN(x)"/>
</bit_field>
<bit_field offset="6" width="2" name="RoTK3_EN" access="RW" reset_value="0" description="RoT Key 2 enable. 00 - Invalid 01 - Enabled 10, 11 - Key revoked">
<alias type="CMSIS" value="FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN(x)"/>
<bit_field offset="6" width="2" name="RoTK3_EN" access="RW" reset_value="0" description="RoT Key 3 enable. 00 - Invalid 01 - Enabled 10, 11 - Key revoked">
<alias type="CMSIS" value="FLASH_CFPA_ROTKH_REVOKE_RoTK3_EN(x)"/>
</bit_field>
<reserved_bit_field offset="8" width="24" reset_value="0"/>
</register>
Expand Down
1,102 changes: 1,102 additions & 0 deletions spsdk/data/cfpa/niobe4nano_a1.xml

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions spsdk/data/cmpa/database.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,37 @@
},
"latest": "a1",
"address": "0x3_E400"
},
"lpc550x":
{
"revisions": {
"a1": "niobe4nano_a1.xml"
},
"latest": "a1",
"address": "0x3_E400"
},
"lpc55s0x":
{
"revisions": {
"a1": "niobe4nano_a1.xml"
},
"latest": "a1",
"address": "0x3_E400"
},
"lpc55s2x":
{
"revisions": {
"a1": "niobe4_a1.xml"
},
"latest": "a1",
"address": "0x9_E400"
},
"lpc552x": {
"revisions": {
"a1": "niobe4_a1.xml"
},
"latest": "a1",
"address": "0x9_E400"
}
},
"computed_registers": [
Expand Down
740 changes: 740 additions & 0 deletions spsdk/data/cmpa/niobe4nano_a1.xml

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions spsdk/sbfile/sb31/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2019-2020 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
"""SB3 module of sbfile."""

from spsdk.sbfile.sb31.commands import CmdErase, CmdLoad, CmdExecute, CmdCall, CmdProgFuses, CmdProgIfr, \
CmdSectionHeader, CmdLoadCmac, CmdLoadHashLocking, CmdCopy, CmdFillMemory, parse_command, CmdLoadKeyBlob, \
CmdConfigureMemory
from spsdk.sbfile.sb31.constants import EnumCmdTag

__all__ = [
# commands3
"CmdErase",
"CmdLoad",
"CmdExecute",
"CmdCall",
"CmdProgFuses",
"CmdProgIfr",
"CmdLoadCmac",
"CmdLoadHashLocking",
"CmdCopy",
"CmdFillMemory",
"CmdLoadKeyBlob",
"CmdConfigureMemory",
"CmdSectionHeader",
# constants
"EnumCmdTag",
]
Loading

0 comments on commit 9a5a67e

Please sign in to comment.