You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
1.1 KiB

  1. # Maxim Integrated MAX32620 OpenOCD target configuration file
  2. # www.maximintegrated.com
  3. # adapter speed
  4. adapter speed 4000
  5. # reset pin configuration
  6. reset_config srst_only
  7. if {[using_jtag]} {
  8. jtag newtap max32620 cpu -irlen 4 -irmask 0xf -expected-id 0x4ba00477 -ignore-version
  9. jtag newtap maxtest tap -irlen 4 -irmask 0xf -ircapture 0x1 -ignore-version
  10. } else {
  11. swd newdap max32620 cpu -irlen 4 -irmask 0xf -expected-id 0x2ba01477 -ignore-version
  12. }
  13. # target configuration
  14. target create max32620.cpu cortex_m -chain-position max32620.cpu
  15. max32620.cpu configure -work-area-phys 0x20005000 -work-area-size 0x2000
  16. # Config Command: flash bank name driver base size chip_width bus_width target [driver_options]
  17. # flash bank <name> max32xxx <base> <size> 0 0 <target> <flc base> <sector> <clk> <burst>
  18. # max32620 flash base address 0x00000000
  19. # max32620 flash size 0x200000 (2MB)
  20. # max32620 FLC base address 0x40002000
  21. # max32620 sector (page) size 0x2000 (8kB)
  22. # max32620 clock speed 96 (MHz)
  23. flash bank max32620.flash max32xxx 0x00000000 0x200000 0 0 max32620.cpu 0x40002000 0x2000 96