Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
openocd
Commits
90d82818
Commit
90d82818
authored
Jun 21, 2019
by
schneider
Browse files
fix(max32665): config file support for second flash bank
parent
f90ee7fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
tcl/target/max32665.cfg
View file @
90d82818
...
...
@@ -7,8 +7,10 @@ adapter_nsrst_delay 200
# Set flash parameters
set FLASH_BASE 0x10000000
set FLASH_SIZE 0x300000
set FLASH_BASE1 0x10080000
set FLASH_SIZE 0x80000
set FLC_BASE 0x40029000
set FLC_BASE1 0x40029400
set FLASH_SECTOR 0x2000
set FLASH_CLK 96
set FLASH_OPTIONS 0x01
...
...
tcl/target/max32xxx.cfg
View file @
90d82818
...
...
@@ -93,3 +93,8 @@ if { [info exists FLASH_OPTIONS] } {
flash bank $_CHIPNAME.flash max32xxx $_FLASH_BASE $_FLASH_SIZE 0 0 $_CHIPNAME.cpu \
$_FLC_BASE $_FLASH_SECTOR $_FLASH_CLK $_FLASH_OPTIONS
if { [info exists FLASH_BASE1] } {
flash bank $_CHIPNAME.flash1 max32xxx $FLASH_BASE1 $_FLASH_SIZE 0 0 $_CHIPNAME.cpu \
$FLC_BASE1 $_FLASH_SECTOR $_FLASH_CLK $_FLASH_OPTIONS
}
Write
Preview
Supports
Markdown
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