Created
December 20, 2018 21:16
-
-
Save Megabytte/4398302ff049d4e4b076739dcf00d38e to your computer and use it in GitHub Desktop.
Config file to debug MAX32660 with OpenOCD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# MAX32660 HDK CMSIS-DAP SWD firmware load script | |
# | |
interface cmsis-dap | |
# adapter speed | |
adapter_khz 2000 | |
# reset pin configuration | |
reset_config srst_only | |
#reset_config none | |
# transport configuration | |
swd newdap max32660 cpu -irlen 4 -irmask 0xf -ircapture 0x1 -expected-id 0x07f67197 | |
# target configuration | |
target create max32660.cpu cortex_m -chain-position max32660.cpu | |
max32660.cpu configure -work-area-phys 0x20005000 -work-area-size 0x2000 | |
# Config Command: flash bank name driver base size chip_width bus_width target [driver_options] | |
# flash bank <name> maxim <base> <size> 0 0 <target> <flc base> <sector> <clk> <burst> | |
# max32660 flash base address 0x00000000 | |
# max32660 flash size 0x40000 (256kB) | |
# max32660 FLC base address 0x40002000 | |
# max32660 sector (page) size 0x2000 (8kB) | |
# max32660 clock speed 96 (MHz) | |
flash bank max32660.flash maxim 0x00000000 0x40000 0 0 max32660.cpu 0x40029000 0x2000 96 | |
init | |
reset halt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment