-
Notifications
You must be signed in to change notification settings - Fork 272
--sd-id param added to *pkg generate* #64
Changes from 3 commits
f4a810d
62cae3b
029f9fc
a8d74b5
aace5b4
216d6f0
fb2cc7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,7 @@ class Package(object): | |
DEFAULT_APP_VERSION = 0xFFFFFFFF | ||
DEFAULT_BL_VERSION = 0xFFFFFFFF | ||
DEFAULT_SD_REQ = [0xFFFE] | ||
DEFAULT_SD_ID = [0xFFFE] | ||
DEFAULT_DFU_VER = 0.5 | ||
MANIFEST_FILENAME = "manifest.json" | ||
|
||
|
@@ -115,6 +116,7 @@ def __init__(self, | |
app_version=DEFAULT_APP_VERSION, | ||
bl_version=DEFAULT_BL_VERSION, | ||
sd_req=DEFAULT_SD_REQ, | ||
sd_id=DEFAULT_SD_ID, | ||
app_fw=None, | ||
bootloader_fw=None, | ||
softdevice_fw=None, | ||
|
@@ -127,6 +129,7 @@ def __init__(self, | |
:param int app_version: App version init-packet field | ||
:param int bl_version: Bootloader version init-packet field | ||
:param list sd_req: Softdevice Requirement init-packet field | ||
:param list sd_id: Softdevice Requirement init-packet field for the Application if softdevice_fw is set | ||
:param str app_fw: Path to application firmware file | ||
:param str bootloader_fw: Path to bootloader firmware file | ||
:param str softdevice_fw: Path to softdevice firmware file | ||
|
@@ -141,8 +144,8 @@ def __init__(self, | |
if hw_version is not None: | ||
init_packet_vars[PacketField.HW_VERSION] = hw_version | ||
|
||
if sd_req is not None: | ||
init_packet_vars[PacketField.REQUIRED_SOFTDEVICES_ARRAY] = sd_req | ||
if sd_id is not None: | ||
init_packet_vars[PacketField.REQUIRED_SOFTDEVICES_ARRAY] = sd_id | ||
|
||
self.firmwares_data = {} | ||
|
||
|
@@ -152,6 +155,9 @@ def __init__(self, | |
filename=app_fw, | ||
init_packet_data=init_packet_vars) | ||
|
||
if sd_req is not None: | ||
init_packet_vars[PacketField.REQUIRED_SOFTDEVICES_ARRAY] = sd_req | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On line 148, If the same init packet field is being used for both There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I thought |
||
|
||
if bootloader_fw: | ||
self.__add_firmware_info(firmware_type=HexType.BOOTLOADER, | ||
firmware_version=bl_version, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,4 @@ | |
|
||
""" Version definition for nrfutil. """ | ||
|
||
NRFUTIL_VERSION = "2.2.0" | ||
NRFUTIL_VERSION = "2.3.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2.3.0 has now been released, so this should be bumped to 2.4.0. There is also a merge conflict that needs to be resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also
5.0.0-1.alpha
and5.0.0-3.alpha
. Should those be added as well?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must also remember to update README.md with the new SD versions.