Skip to content
Snippets Groups Projects
Forked from card10 / firmware
908 commits behind the upstream repository.
  • Techy's avatar
    3f4677f8
    fix(openocd-scripts): Always use SWD · 3f4677f8
    Techy authored and rahix's avatar rahix committed
    OpenOCD tried
    
        Info : auto-selecting first available session transport "jtag".
               To override use 'transport select <transport>'.
    
    using a JLink debugger.  Overriding it with SWD is what I did. With the
    CMSIS debugger OpenOCD you get lucky:
    
        Info : auto-selecting first available session transport "swd".
    
    Hope forcing it always to SWD will make it easier for others using
    different debuggers.
    3f4677f8
    History
    fix(openocd-scripts): Always use SWD
    Techy authored and rahix's avatar rahix committed
    OpenOCD tried
    
        Info : auto-selecting first available session transport "jtag".
               To override use 'transport select <transport>'.
    
    using a JLink debugger.  Overriding it with SWD is what I did. With the
    CMSIS debugger OpenOCD you get lucky:
    
        Info : auto-selecting first available session transport "swd".
    
    Hope forcing it always to SWD will make it easier for others using
    different debuggers.
max32665.cfg 533 B
# Maxim Integrated MAX32665 OpenOCD target configuration file
# www.maximintegrated.com

# selecting transport method, to prevenet auto-selecting something else
transport select swd

# Set the reset pin configuration
reset_config none

#reset_config srst_only
#adapter_nsrst_delay 200

# Set flash parameters
set FLASH_BASE 0x10000000
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

source [find target/max32xxx.cfg]