I tried soruce-ing the lpc1768.cfg file, even though it shouldn't be
needed, but that gives tcl errors as well:
Open On-Chip Debugger 0.5.0-dev-gbe77026-dirty (2011-11-08-15:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'swd'
User : 24 2 command.c:557 command_print(): debug_level: 3
Debug: 25 2 configuration.c:87 find_file(): found tcl/target/lpc1768.cfg
Debug: 26 2 configuration.c:87 find_file(): found tcl/target/swj-dp.tcl
Debug: 27 2 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_adapter_nsrst_delay 200
Debug: 28 2 command.c:151 script_debug(): command -
adapter_nsrst_delay ocd_adapter_nsrst_delay 200
User : 30 2 command.c:557 command_print(): adapter_nsrst_delay: 200
Debug: 31 2 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 32 2 command.c:151 script_debug(): command - ocd_transport
ocd_transport select
Debug: 33 2 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_swd newdap lpc1768 cpu -irlen 4 -expected-id
0x4ba00477
Debug: 34 2 command.c:151 script_debug(): command - usage ocd_usage
swd newdap lpc1768 cpu -irlen 4 -expected-id 0x4ba00477
User : 36 2 command.c:679 command_run_line(): Runtime Error:
tcl/target/swj-dp.tcl:24: swd newdap lpc1768 cpu -irlen 4 -expected-id
0x4ba00477: command requires more arguments
in procedure 'swj_newdap' called at file "tcl/target/lpc1768.cfg", line 35
in procedure 'swd' called at file "tcl/target/swj-dp.tcl", line 24
Unfortunately I cannot find out what arguments are missing, and
neither the place where that error is emmitted...
Regards,
Ákos
On 8 November 2011 15:15, Akos Vandra <[email protected]> wrote:
> Hi!
>
> I am trying to get openocd+libswd to work, however I keep getting:
> Error: 57 7 target.c:406 get_current_target(): BUG: current_target out of
> bounds
>
> After a lot of tracking and debuging and printf-ing, it turns out that
>
> oocd_swd_transport_init() is calling the get_current_target() which
> calls get_target_by_num(0) function, but the all_targets list is
> empty.
>
> What is this list for, and where should it be filled? It seems a
> little strange that the transport_init is expecting the target list to
> be ready whereas (as far as I'm concerned) the target list can be
> retrieved only if the transport is ready, and the device list can be
> read out right?
>
> Can anyone help me out with this?
>
> Regards,
> Ákos
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Openocd-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel