From: Freddie C. <fre...@op...> - 2014-06-17 09:55:02
|
W dniu 2014-06-17 10:12, Mike McCauley pisze: > On Tuesday, June 17, 2014 08:52:17 AM Freddie Chopin wrote: >> W dniu 2014-06-17 08:06, Mike McCauley pisze: >>> Hi, >>> Has anyone successfully used openocd with a JTAG-lock-pick Tiny 2 with SWD >>> with, for example, a STM32F1? >> >> There are a couple of success reports, but I guess you should be looking >> for them on the "devel" list, not here. > > I did search and didnt find anything helpful except your patch reports. From what I remember Jens Bauer was trying the SWD patches. >>> If so, how did you build and configure openocd for that? >> >> For now (until this is fully merged) you need to compile OpenOCD with >> this patch series - http://openocd.zylin.com/#/c/2136/2 > > Thanks. > Your changes are in patch set 2, is that correct. > Its not clear to me how to get the patched version from git. Can you please > advise the process? 1. Go to http://openocd.zylin.com/#/c/2136/2 2. In the upper right click on "download" 3. Click on the "copy to clipboard" button next to "checkout" - currently "git fetch http://openocd.zylin.com/openocd refs/changes/36/2136/2 && git checkout FETCH_HEAD" 4. Execute this command in a git clone of OpenOCD. This should pull the whole series, up to the point which is selected in the "Related changes" window. > Also, what is the ./configure command for building? ie what --enable options > should I use for this device? Looks like maybe its --enable-ftdi?? Exactly - --enable-ftdi is the only one that is needed here, but others will do no harm. Regards, FCh |