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

Reply via email to