Commit 4986d37
committed
[nrf fromtree] soc: nordic: uicr: Add safety flag for permanent device transition
Add --permit-permanently-transitioning-device-to-deployed safety flag
to gen_uicr.py, required when enabling both UICR.LOCK and
UICR.ERASEPROTECT together. This prevents accidental permanent locking
of devices since this combination makes the configuration irreversible.
The safety flag must be explicitly provided through the Kconfig option
GEN_UICR_PERMIT_PERMANENTLY_TRANSITIONING_DEVICE_TO_DEPLOYED to enable
this dangerous combination. This ensures developers are aware of the
permanent consequences before locking their devices.
Without this safety mechanism, developers might accidentally create
devices that cannot be updated or debugged, requiring hardware
replacement.
Signed-off-by: Sebastian Bøe <[email protected]>
(cherry picked from commit 35b89ab)1 parent 18c8780 commit 4986d37
File tree
2 files changed
+23
-3
lines changed- scripts/ci
- soc/nordic/common/uicr
2 files changed
+23
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
1307 | | - | |
| 1307 | + | |
1308 | 1308 | | |
1309 | 1309 | | |
1310 | 1310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
435 | 443 | | |
436 | 444 | | |
437 | 445 | | |
| |||
624 | 632 | | |
625 | 633 | | |
626 | 634 | | |
627 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
628 | 649 | | |
629 | 650 | | |
630 | | - | |
631 | 651 | | |
632 | 652 | | |
633 | 653 | | |
| |||
0 commit comments