Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
card10
openocd
Commits
87c03ca7
Commit
87c03ca7
authored
Dec 17, 2018
by
Kevin Gillespie
Committed by
Kevin
Apr 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding reset-init handler to enable 256 bit key.
Change-Id: I264977d732e9dfaff8c333634492898b0fea90bc
parent
c8feb1b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tcl/target/max32520.cfg
tcl/target/max32520.cfg
+10
-0
No files found.
tcl/target/max32520.cfg
View file @
87c03ca7
...
...
@@ -17,3 +17,13 @@ set FLASH_CLK 40
set FLASH_OPTIONS 0x23
source [find target/max32xxx.cfg]
proc max32520_aes256_reset_init {} {
# Enable encryption and 256 bit key
mww 0x40000000 0x320002
}
# Create custom reset sequence to set the AES keysize
if { [expr $FLASH_OPTIONS & 0x40] } {
$_CHIPNAME.cpu configure -event reset-init { max32520_aes256_reset_init }
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment