Re: [Openocd-development] Flash driver for em357

2011-01-11 Thread Spencer Oliver
On 11/01/2011 07:28, Erik Botö wrote: 2011/1/10 Spencer Olivers...@spen-soft.co.uk: On 10/01/2011 20:33, Øyvind Harboe wrote: Is it similar enough that it should share code with stm32x? I have to see excessive duplicate and modify code. Otherwise it looks OK. I thought all these devices

Re: [Openocd-development] Flash driver for em357

2011-01-11 Thread Øyvind Harboe
Having said that having something may be better than nothing, it just would make tweaks to the stm driver easier to maintain. Wouldn't we be doing the ember support a disservice by having it in some untested copy paste code off the beaten path? -- Øyvind Harboe Can Zylin Consulting help

Re: [Openocd-development] SWD progress

2011-01-11 Thread simon qian
Hi, I'm back for SWD, I have about 3-5 weeks holiday(hope my company will not call me back at holiday). So I can prepare for the Versaloon SWD driver in OpenOCD. Is the SWD transport usable now in OpenOCD? I compile the latest OpenOCD, but with this error: adi_v5_jtag.c:448: error: unknown field

[Openocd-development] transport BUG

2011-01-11 Thread simon qian
In transport.c: 1. I use transport select jtag, in jim_transport_select, argv[0]-bytes is select, so argv[1]-bytes should be used. 2. In allow_transports function: [code] while (*vector) LOG_DEBUG(allow transport '%s', *vector++); [/code] LOG_DEBUG is: [code] #define LOG_DEBUG(expr ...) \

Re: [Openocd-development] transport BUG

2011-01-11 Thread simon qian
All LOG_DEBUG should be checked for such operation. It may not perform as people expect. 2011/1/12 simon qian simonqian.open...@gmail.com In transport.c: 1. I use transport select jtag, in jim_transport_select, argv[0]-bytes is select, so argv[1]-bytes should be used. 2. In allow_transports

Re: [Openocd-development] transport BUG

2011-01-11 Thread Øyvind Harboe
Nice catch! The same problem applies to all LOG_ statements really. Patch? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash

Re: [Openocd-development] [PATCH 2/2] svf: implement sleep for RUNTEST min_time

2011-01-11 Thread Andrew Leech
On Mon, Jan 10, 2011 at 2:59 PM, Andrew Leech coronasen...@gmail.com wrote: On Mon, Jan 10, 2011 at 1:20 PM, Jon Povey jon.po...@racelogic.co.uk wrote: Andrew Leech wrote: On 06/01/2011, at 3:12 PM, Jon Povey wrote: Ping. I never delved much into the actual SVF commands, so can't comment

Re: [Openocd-development] SWD progress

2011-01-11 Thread David Brownell
--- On Tue, 1/11/11, simon qian simonqian.open...@gmail.com wrote: I'm back for SWD welcome back!   Is the SWD transport usable now in OpenOCD? Not yet; There's only infrastructure, not an entire transport (going down to driver level). I have two patches in the works: (a) init, e..g. call

Re: [Openocd-development] SWD progress

2011-01-11 Thread David Brownell
--- On Tue, 1/11/11, Tomek CEDRO tomek.ce...@gmail.com wrote: others). David provided his sources for SWD some time ago, I'll disagree a bit ... I've provided a bunch of mid-level infrastructure, but nothing I'd yet call (usable-as) SWD, since no driver is all there. That's on the way

[Openocd-development] (no subject)

2011-01-11 Thread sunyuanxu
专业维修核潜艇,核弹头翻新,改装,抛光,喷漆.回收二手航母,大修核反应堆,、清洗 航母油槽、航天飞机保养换三滤.高空作业擦洗卫星表面除尘.批发歼10,F22 F35 B2 轰炸机,各类核弹头。量大从优!有发票!全面接受预定歼20歼30,3个月内提机,送 两年保养,送前风玻璃贴膜。还有惊喜小礼品钥匙扣,打火机等.. ___ Openocd-development mailing list Openocd-development@lists.berlios.de

[Openocd-development] 答复: Re: SWD progress

2011-01-11 Thread sunyuanxu
专业维修核潜艇,核弹头翻新,改装,抛光,喷漆.回收二手航母,大修核反应堆,、清洗 航母油槽、航天飞机保养换三滤.高空作业擦洗卫星表面除尘.批发歼10,F22 F35 B2 轰炸机,各类核弹头。量大从优!有发票!全面接受预定歼20歼30,3个月内提机,送 两年保养,送前风玻璃贴膜。还有惊喜小礼品钥匙扣,打火机等.. David Brownell davi...@pacbell.net 发件人: openocd-development-boun...@lists.berlios.de 12/01/2011 11:00 收件人 simon qian

Re: [Openocd-development] SWD progress

2011-01-11 Thread simon qian
FWIW, my workspace builds error-free... adi_v5_jtag.c:448: error: unknown field 'queue_dp_scan' specified in initializer queue_dp_scan is not defined in dap_ops. Looks like a JTAG call. I just did a grep on my workspace and don't see that symbol. And it didn't appear to be in any patches

Re: [Openocd-development] transport BUG

2011-01-11 Thread simon qian
Here is the patch. See attachment. 2011/1/12 Øyvind Harboe oyvind.har...@zylin.com Nice catch! The same problem applies to all LOG_ statements really. Patch? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27

Re: [Openocd-development] transport BUG

2011-01-11 Thread Øyvind Harboe
It's only the first change in this diff that is a bugfix, right? There were two extra whitespace changes that I'll drop for this commit. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html

Re: [Openocd-development] transport BUG

2011-01-11 Thread Peter Stuge
Øyvind Harboe wrote: It's only the first change in this diff that is a bugfix, right? I think there are two bugfixes. There were two extra whitespace changes that I'll drop for this commit. Note the argv[] index change. Maybe two commits though.. //Peter

Re: [Openocd-development] transport BUG

2011-01-11 Thread Øyvind Harboe
Hi Simon, Peter Stuge pointed out that there are two changes in this patch. The first is the bugfix you've spoken about, but what is the second change? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27

Re: [Openocd-development] SWD progress

2011-01-11 Thread Peter Stuge
simon qian wrote: SWD in Versaloon is based on operation. For example: A read operation consists of : 1. Host send the 8-bit command, and trn 2. read 3-bit ack 3. read the 32-bit data and 1-bit parity 4. host send the last trn So Versaloon can do some error handler. Tomek, does it sound

Re: [Openocd-development] SWD progress

2011-01-11 Thread David Brownell
--- On Tue, 1/11/11, Peter Stuge pe...@stuge.se wrote: From: Peter Stuge pe...@stuge.se Subject: Re: [Openocd-development] SWD progress To: openocd-development@lists.berlios.de Date: Tuesday, January 11, 2011, 11:06 PM simon qian wrote: SWD in Versaloon is based on operation. For