On Wed, Nov 21, 2012 at 10:38 AM, Freddie Chopin <[email protected]> wrote:
> This approach would not work for cross-compilation and Windows (; My
> configure command was equivalent to the script (maintainer mode,
> ft2232-libftdi), yet it does not work like for you...
Hmm, interesting! :-)
The problem is in src/transport/swd.c in the int
oocd_transport_swd_setup(struct command_context *ctx);
For some reason oocd_feature_add(jtag_interface->features,
&oocd_transport_swd_libswd_arm_dap_feature) fails to add the feature:
oocd_feature_t oocd_transport_swd_libswd_arm_dap_feature = {
.name = OOCD_FEATURE_ARM_DAP,
.description = "ARM DAP SWD transport features based on LibSWD.",
.body = (void*) &oocd_dap_ops_swd_libswd,
.next = NULL
};
Maybe because of the definition of the feature structure:
typedef struct oocd_feature {
/** Feature name. */
char name[OOCD_FEATURE_NAME_MAXLEN];
/** Description is a one line feature summary. */
char description[OOCD_FEATURE_DESCRIPTION_MAXLEN];
/** Body points to feature contents. */
void *body;
/** Next points to next feature on the list. */
struct oocd_feature *next;
} oocd_feature_t;
Could you please try with:
typedef struct oocd_feature {
/** Feature name. */
char *name;
/** Description is a one line feature summary. */
char *description;
/** Body points to feature contents. */
void *body;
/** Next points to next feature on the list. */
struct oocd_feature *next;
} oocd_feature_t;
Maybe this is the problem...?
Otherwise there is a problem with OOCD_FEATURE_ARM_DAP visibility (the
'' part in the log of your binary).
Best regards :-)
Tomek
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel