Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Remove checks to support BL + APP updates #371

Closed
wants to merge 5 commits into from

Conversation

br101
Copy link

@br101 br101 commented Mar 1, 2022

As explained in the Nordic Devzone ticket (*1) updates of APP+BL are necessary some times. There is no real reason why nrfutil forbids the creation of such packages. This commit removes these checks and I have successfully created an APP+BL package and updated my device.

(*1) https://devzone.nordicsemi.com/f/nordic-q-a/84879/feature-request-please-allow-app-bl-dfu-upgrades-in-nrfutil

@CLAassistant
Copy link

CLAassistant commented Mar 1, 2022

CLA assistant check
All committers have signed the CLA.

@@ -132,10 +132,6 @@ def _validate(self):
raise RuntimeError("sd_size is not set. It must be set when type is SOFTDEVICE")
elif self.init_command.type == pb.BOOTLOADER and self.init_command.bl_size == 0:
raise RuntimeError("bl_size is not set. It must be set when type is BOOTLOADER")
elif self.init_command.type == pb.SOFTDEVICE_BOOTLOADER and \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this particular change needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can see from the original devzone ticket, it helps for devices with little flash space, since the SD takes too much space.

https://devzone.nordicsemi.com/f/nordic-q-a/84879/feature-request-please-allow-app-bl-dfu-upgrades-in-nrfutil

"
[...]
Please allow creating APP+BL (but not SD) DFU packages in nrfutil!

This is an issue especially on devices with less flash space, such as the nrf52810, where APP+BL+SD updates are not possible because the SD it too big. [...]
"

@jornbh

This comment was marked as duplicate.

Copy link
Contributor

@jornbh jornbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests for test_init_command are failing for this PR. If you want this PR to be merged into master, "test_init_command_wrong_size()" should be updated so that the tests correspond to the new expected behavior.

@@ -132,10 +132,6 @@ def _validate(self):
raise RuntimeError("sd_size is not set. It must be set when type is SOFTDEVICE")
elif self.init_command.type == pb.BOOTLOADER and self.init_command.bl_size == 0:
raise RuntimeError("bl_size is not set. It must be set when type is BOOTLOADER")
elif self.init_command.type == pb.SOFTDEVICE_BOOTLOADER and \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can see from the original devzone ticket, it helps for devices with little flash space, since the SD takes too much space.

https://devzone.nordicsemi.com/f/nordic-q-a/84879/feature-request-please-allow-app-bl-dfu-upgrades-in-nrfutil

"
[...]
Please allow creating APP+BL (but not SD) DFU packages in nrfutil!

This is an issue especially on devices with less flash space, such as the nrf52810, where APP+BL+SD updates are not possible because the SD it too big. [...]
"

@kenr
Copy link
Contributor

kenr commented Jan 17, 2023

We do do not have capacity to maintain and release new versions of this utility.
The utility can be found here: https://www.nordicsemi.com/Products/Development-tools/nrf-util

@kenr kenr closed this Jan 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants