-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: ap-protect: edit nrfjprog to nrfutil #19913
base: main
Are you sure you want to change the base?
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:more detailsGithub labels
List of changed files detected by CI (0)
Outputs:ToolchainVersion: Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
76baa95
to
a8a0817
Compare
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
Outdated
Show resolved
Hide resolved
a8a0817
to
1aae4b3
Compare
You can find the documentation preview for this PR at this link. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
doc/nrf/security/ap_protect.rst
Outdated
|
||
.. note:: | ||
|nrfjprog_deprecation_note| | ||
nrfutil device protection-set All |
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.
To lock both the network core and application core in nrf53, you actually have to do both:
nrfutil device protection-set All --core Network
nrfutil device protection-set All
And in this order.
This is the same with nrfjprog, but I think that this should be updated in here.
doc/nrf/security/ap_protect.rst
Outdated
|
||
.. note:: | ||
|nrfjprog_deprecation_note| | ||
nrfutil device protection-set All |
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.
With nrf54l15 (using my nRF54L15-PDK):
nrfutil device protection-set All
Fails with: [Probe] Device error: Unknown device: Unknown part number 0x0000001c and revision 0x00000001 , code: Generic
Debugger can be connected after this.
nrfjprog --rbp ALL also fails, but the debugger cannot be connected after that.
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.
@MarkusLassila: Which version is this? (nrfutil device --version
)
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.
nrfutil-device 2.3.6 (20652ac 2024-05-30)
commit-hash: 20652ac7e517947958af060dcb956b9de5fe5456
commit-date: 2024-05-30
host: x86_64-unknown-linux-gnu
build-timestamp: 2024-05-30T11:22:59.088218653Z
classification: nrf-external
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 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.
Too old version, I think. The version (2.3.6) also sounds like the latest on the old package index, so needs an upgrade of nrfutil itself as well.
@MarkusLassila: Could you run nrfutil self-upgrade
and nrfutil upgrade device
and try again?
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.
nrfutil device --version
nrfutil-device 2.7.11 (7005884 2025-01-15)
commit-hash: 70058847a6226212a758c274d19aa8f95dc23cdc
commit-date: 2025-01-15
host: x86_64-unknown-linux-gnu
build-timestamp: 2025-01-16T09:13:44.207691632Z
classification: nrf-external
Detected SEGGER J-Link version: JLink_V7.94i
nrfutil device protection-set All
❌ Failed to set protection on 1057792717, [Probe] Device error: Memory access error at 0x00ffd000. Probably a memory prot
Error: One or more set protection tasks failed:
- 1057792717: [Probe] Device error: Memory access error at 0x00ffd000. Probably a memory protection issue. Probe access is Secure, code: Generic
nrfutil device protection-set SecureRegions
✔️ Protection was set on 1057792717
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.
Well, that was disappointing. Sounds like a bug, thanks for discovering this.
I'll contact Markus directly about this so that I don't spam down the PR review with debugging questions.
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.
I can reproduce the Memory access error at 0x00ffd000 error if I try to run nrfutil device protection-set All after flashing an application to the nRF54L15. The command works if nrfutil device recover is run before protection-set All
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.
The failure seemed to be specific for TF-M builds (/NS) for regular builds, it seemed to work.
1aae4b3
to
340882e
Compare
Changed nrfjprog commands to nrfutil in the AP-Protect documentation. NCSDK-30148. Signed-off-by: Grzegorz Ferenc <[email protected]>
340882e
to
680155e
Compare
Changed nrfjprog commands to nrfutil in the AP-Protect documentation. NCSDK-30148.