I built openocd from 6060545458f6863710d576fc4bd2512d34f88f89 commit-id, but
cant make SWD working. I get `invalid command name "swd"` error message when I
run "sudo openocd -f max3263x_hdk.cfg" command on my Ubuntu 16.04.
Is SWD not supported in my build or in openocd? In fact, I assume that
cmsis-dap will enable SWD.
Here are my commands to build;
./bootstrap
./configure --prefix=~/tools/openocd_bin --cache-file=/dev/null --srcdir=.
--enable-maintainer-mode --enable-cmsis-dap --enable-hidapi-libusb
make clean;make -j8
make install
Open On-Chip Debugger 0.10.0+dev-00517-g60605454 (2018-08-22-10:59)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 2000 kHz
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
/home/ismail/w/projects/wearables_MBED/scripts/jtag/max3263x_hdk.cfg:12: Error:
invalid command name "swd"
in procedure 'script'
at file "embedded:startup.tcl", line 60
at file "/home/ismail/w/projects/wearables_MBED/scripts/jtag/max3263x_hdk.cfg",
line 12
Here is max3263x_hdk.cfg file content;
# MAX3263x HDK CMSIS-DAP SWD firmware load script
interface cmsis-dap
# adapter speed
adapter_khz 2000
# reset pin configuration
reset_config srst_only
# SWD DAP
swd newdap max32630 cpu -irlen 4 -irmask 0xf -ircapture 0x1 -expected-id
0x07f67197 -ignore-version
# target configuration
target create max32630.cpu cortex_m -chain-position max32630.cpu
max32630.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>
# max32630 flash base address 0x00000000
# max32630 flash size 0x200000 (2MB)
# max32630 FLC base address 0x40002000
# max32630 sector (page) size 0x2000 (8kB)
# max32630 clock speed 96 (MHz)
flash bank max32630.flash maxim 0x00000000 0x200000 0 0 max32630.cpu 0x40002000
0x2000 96
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel