Hi All,
I would like to add a new script under directory scripts/target/ . I
copy from lpc4350.cfg [1], and rename it
as lpc4337.cfg [2]. They are nearly the same, but with a few different below:
-----------
$ diff -ruN lpc4337.cfg lpc4350.cfg
--- lpc4337.cfg 2015-05-22 11:31:44.420000000 +0800
+++ lpc4350.cfg 2015-03-06 15:46:49.968841600 +0800
@@ -4,7 +4,7 @@
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
- set _CHIPNAME lpc4337
+ set _CHIPNAME lpc4350
}
#
@@ -34,8 +34,11 @@
set _M0_JTAG_TAPID 0x0ba01477
}
-jtag newtap $_CHIPNAME m4 -irlen 4 -ircapture 0x1 -irmask 0xf
-expected-id $_M4_JTAG_TAPID
-jtag newtap $_CHIPNAME m0 -irlen 4 -ircapture 0x1 -irmask 0xf
-expected-id $_M0_JTAG_TAPID
+jtag newtap $_CHIPNAME m4 -irlen 4 -ircapture 0x1 -irmask 0xf \
+ -expected-id $_M4_JTAG_TAPID
+
+jtag newtap $_CHIPNAME m0 -irlen 4 -ircapture 0x1 -irmask 0xf \
+ -expected-id $_M0_JTAG_TAPID
target create $_CHIPNAME.m4 cortex_m -chain-position $_CHIPNAME.m4
-----------
While running openocd, it gives me errors below:
-----------
Debug: 43 68 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_jtag newtap lpc4350 m4 -irlen 4 -ircapture 0x1
-irmask 0xf -expected-id 0x4ba00477
Debug: 44 69 command.c:145 script_debug(): command - usage ocd_usage
jtag newtap lpc4350 m4 -irlen 4 -ircapture 0x1 -irmask 0xf
-expected-id 0x4ba00477
User : 46 71 command.c:666 command_run_line(): Runtime Error:
share\openocd\scripts/target\lpc4337.cfg:37: jtag newtap lpc4350 m4
-irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x4ba00477: command
requires more arguments
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'jtag' called at file
"share\openocd\scripts/target\lpc4337.cfg", line 37
-----------
Any idea on what might go wrong? Thanks.
Regards,
chenwj
[1] http://pasted.co/7258bcbd
[2] http://pasted.co/c6c79e3d
--
Wei-Ren Chen (陳韋任)
Homepage: http://people.cs.nctu.edu.tw/~chenwj
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel