Re: [Openocd-development] Fwd: SWD?

2011-09-26 Thread Akos Vandra
Also, I get a build error for ./src/transport/swd_libswd_drv_openocd.c. I suspect it is because I have an x64 system where pointers are 64bits in size. The lines listed below try to cast a pointer to an int (signed 32bit), for producing log messages. I don't know why the address pointed is useful

Re: [Openocd-development] Fwd: SWD?

2011-09-26 Thread Peter Stuge
Akos Vandra wrote: I suspect it is because I have an x64 system where pointers are 64bits in size. The lines listed below try to cast a pointer to an int (signed 32bit), for producing log messages. I don't know why the address pointed is useful log information, and don't really know how to

Re: [Openocd-development] Fwd: SWD?

2011-09-26 Thread Tomek CEDRO
On Mon, Sep 26, 2011 at 11:48 AM, Peter Stuge pe...@stuge.se wrote: Akos Vandra wrote: I suspect it is because I have an x64 system where pointers are 64bits in size. The lines listed below try to cast a pointer to an int (signed 32bit), for producing log messages. I think %p should work.

Re: [Openocd-development] Fwd: SWD?

2011-09-26 Thread Peter Stuge
Akos Vandra wrote: Thank you for the advice, I will do my best to live up to them :) Cool. I'm new to git as well, I tried making the patch you requested: Some feedback. First, please see if you can send patches as text/plain attachments (optionally with a Content-Disposition: inline MIME

Re: [Openocd-development] Fwd: SWD?

2011-09-26 Thread Tomek CEDRO
On Mon, Sep 26, 2011 at 9:27 AM, Akos Vandra axo...@gmail.com wrote: swd_libswd_drv_openocd.c: In function ‘swd_drv_mosi_8’: swd_libswd_drv_openocd.c:61: error: cast from pointer to integer of different size swd_libswd_drv_openocd.c:61: error: cast from pointer to integer of different size

Re: [Openocd-development] Fwd: SWD?

2011-09-25 Thread Tomek CEDRO
Regarding the LibSWD and OpenOCD relationship: OpenOCD use LibSWD git submodule from the libswd git repository tag v0.2 which can differ a bit from the head. I am working on the v0.2 and periodically add those changes to head. v0.2 is meant to build off the shelf as it has configure scripts

Re: [Openocd-development] Fwd: SWD?

2011-09-25 Thread Akos Vandra
Hi! Bingo, I am working on Ubuntu 10.10, x64, gcc 4.4.5 (shipped with ubuntu). I have been getting some warnings (treated as errors) due to some retvals didn't have initial value set, but I set them to ERROR_OK, and now it passes those points. Right now build gets stuck at In file included

Re: [Openocd-development] Fwd: SWD?

2011-09-25 Thread Tomek CEDRO
On Sun, Sep 25, 2011 at 4:39 PM, Akos Vandra axo...@gmail.com wrote: Bingo, I am working on Ubuntu 10.10, x64, gcc 4.4.5 (shipped with ubuntu). cool :-) i will prepare the vm then :-) ../../src/helper/types.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘be_to_h_u16’

Re: [Openocd-development] Fwd: SWD?

2011-09-25 Thread Peter Stuge
Hi Akos, Akos Vandra wrote: Bingo, I am working on Ubuntu 10.10, x64, gcc 4.4.5 (shipped with ubuntu). 10.10 is soon one year old, which can be a long time in open source. Also keep in mind that pretty much every major distribution is applying significant amounts of patches in their toolchain

Re: [Openocd-development] Fwd: SWD?

2011-09-25 Thread Akos Vandra
Hi! Thank you for the advice, I will do my best to live up to them :) I'm new to git as well, I tried making the patch you requested: Cheers, Ákos From 88a430100be4d9685863aa2912173ddc5b83e92f Mon Sep 17 00:00:00 2001 From: Akos akos@FM12BQ.(none) Date: Sun, 25 Sep 2011 23:55:36 +0200