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

Revert PR 349 #389

Merged
merged 11 commits into from
Sep 28, 2022
Merged

Revert PR 349 #389

merged 11 commits into from
Sep 28, 2022

Conversation

jornbh
Copy link
Contributor

@jornbh jornbh commented Sep 28, 2022

Accepting PR 349 caused a critical issue, resulting in a critical issue when --sd-req is 0x00.

This PR is a hotfix that simply reverts the changes of that PR.

kenr
kenr previously approved these changes Sep 28, 2022
nordicsemi/dfu/package.py Outdated Show resolved Hide resolved
nordicsemi/dfu/package.py Outdated Show resolved Hide resolved
nordicsemi/dfu/package.py Outdated Show resolved Hide resolved
Comment on lines 191 to 192
# before the `self.add_firmware_info` is called can lead to customers potentially
# bricking their devices. There may be configurations that avoid the
Copy link

Choose a reason for hiding this comment

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

Suggested change
# before the `self.add_firmware_info` is called can lead to customers potentially
# bricking their devices. There may be configurations that avoid the
# before the `self.add_firmware_info` call for HexType.EXTERNAL_APPLICATION can lead to customers potentially
# bricking their devices when updating the external app. There may be configurations that avoid the

jornbh and others added 4 commits September 28, 2022 10:09
Co-authored-by: Martin Galvan <[email protected]>
Co-authored-by: Martin Galvan <[email protected]>
Co-authored-by: Martin Galvan <[email protected]>
ghost
ghost previously approved these changes Sep 28, 2022
# softdevice. Moving the setting of the `REQUIRED_SOFTDEVICES_ARRAY`
# field to be `sd_req` to before the `self__.add_firmware_info` call
# for HexType.EXTERNAL_APPLICATION can lead customers potentially
# bricking their devices. There may be configurations that avoid the
Copy link

Choose a reason for hiding this comment

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

I'd explicitly say "bricking their devices when trying to update the app software", to emphasize that it's ok to use a 0 sd_req for bootloader and softdevice changes (assuming it actually is, of course).

kenr
kenr previously approved these changes Sep 28, 2022
@jornbh jornbh merged commit 804bc0f into master Sep 28, 2022
@jornbh jornbh deleted the fix/jira-issue-NCP-3900 branch September 28, 2022 11:14
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.

2 participants