We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c256f4 commit 8bbc314Copy full SHA for 8bbc314
scripts/reglock.py
@@ -21,6 +21,7 @@
21
from intelhex import IntelHex
22
import argparse
23
import sys
24
+import warnings
25
26
SIZE_MAX_KB = 31
27
@@ -57,7 +58,8 @@ def main():
57
58
sys.exit("error: requested size not aligned to 1k")
59
size = size // 1024
60
if size > SIZE_MAX_KB:
- sys.exit("error: requested size too big")
61
+ warnings.warn("warning: requested size too big; Setting to allowed maximum")
62
+ size = SIZE_MAX_KB
63
64
payload = bytearray([
65
READ_ALLOWED | EXECUTE_ALLOWED | SECURE | OWNER_NONE,
0 commit comments