[OpenOCD-devel] stm32f103xG XL Density programming

2012-02-28 Thread Liam Staskawicz
Hi, Firstly: openocd 0.5.0, win7 64bit, Olimex ARM-USB-OCD-H I'm attempting to program a new stm32F103RG on a dev board of mine, and running into trouble. I've been using an STM32F105RB for some time with no issues. My program commands look like: openocd -f stm32/olimex.cfg \ -c init \ -

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread Ken Smith
On Mon, Feb 27, 2012 at 11:09 PM, Peter Stuge wrote: > Øyvind Harboe wrote: >> How about this approach to the problem of scripting? >> >> - make OpenOCD a library >> - make that library usable from Python & Lua. > > Lua works the other way around. It was, again, designed and > implemented from gro

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread Ken Smith
On Mon, Feb 27, 2012 at 10:46 PM, Peter Stuge wrote: > It's not about use, it's about development. "I don't know Tcl" comes > up again and again. Me, I *did* know Tcl rather well, but haven't > used it for more than 15 years and I am utterly disinterested in > starting to use it again. Not so with

[OpenOCD-devel] Additional check for NULL in str9xpec enable_turbo

2012-02-28 Thread Fredrik Hederstierna
HelloI got an Segmentation Fault in OpenOCD 0.5.0 when running "enable_turbo" with str9xpec.Maybe its better to check 'tap0' for NULL before doing dereference of pointer, to get a more instructive error message back to user.Now I just got SegFault without knowing what was wrong.diff --git a/src/fla

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread Drasko DRASKOVIC
On Tue, Feb 28, 2012 at 11:18 AM, Attila Kinali wrote: > On Tue, 28 Feb 2012 11:10:36 +0100 > Drasko DRASKOVIC wrote: > >> I would be more convinced with Python. I see no reason why would >> anybody choose Lua ove Python : it is more mature, has bigger >> community, bunch of documentation... It c

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread David Riley
On Feb 28, 2012, at 3:06 AM, Øyvind Harboe wrote: > I actually thought of a killer feature of switching to scripting > programming language: > > How about if we could replace 80% of the C code with a scripting > language without sacrificing performance and make 80% of the OpenOCD > code unit-tes

Re: [OpenOCD-devel] [PATCH]: f5a7d5a ftdi: add rtck and high speed support

2012-02-28 Thread David Riley
On Feb 27, 2012, at 5:36 PM, Peter Stuge wrote: > John wrote: wish i could help, but i am no tcl expert either. >>> >>> Does anyone feel very strongly against replacing jimtcl with say lua? >> >> Only that it means rewriting and then re-debugging every script > > Yes, but on the other hand

[OpenOCD-devel] [PATCH]: 8711efa SAM3: Remove unused reference to SUPC registers

2012-02-28 Thread gerrit
This is an automated email from Gerrit. Attila Kinali (att...@kinali.ch) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/495 -- gerrit commit 8711efaf490a4d0eb648605c1787d2e5e0740260 Author: Attila Kinali Date: Tue Feb 28 12:39:41 2012 +0100 SAM3:

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread Attila Kinali
On Tue, 28 Feb 2012 11:10:36 +0100 Drasko DRASKOVIC wrote: > I would be more convinced with Python. I see no reason why would > anybody choose Lua ove Python : it is more mature, has bigger > community, bunch of documentation... It can be made small, and even > embedded on the chip (http://code.g

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread Attila Kinali
On Tue, 28 Feb 2012 09:46:56 + Spencer Oliver wrote: > In my original statement i was referring to the fact i am not familiar > with integrating TCL-C. I can work my around tcl enough for OpenOCD > usage. > > The other argument is how many people understand lua - probably the same as > tcl.

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread Drasko DRASKOVIC
On Tue, Feb 28, 2012 at 10:46 AM, Spencer Oliver wrote: > In my original statement i was referring to the fact i am not familiar > with integrating TCL-C. I can work my around tcl enough for OpenOCD > usage. > > The other argument is how many people understand lua - probably the same as > tcl. >

Re: [OpenOCD-devel] gerrit and patch dependencies

2012-02-28 Thread Attila Kinali
On Tue, 28 Feb 2012 10:16:39 +0100 Øyvind Harboe wrote: > Gerrit interprets this as three commits where one is dependent on the > previous. > > This is harmless. Ok, then i leave it like this. Thanks Attila Kinali -- The trouble with you, Shev, is you don't say anyt

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread Spencer Oliver
On 28 February 2012 06:46, Peter Stuge wrote: >> I don't believe that there is much, if any, programming at all that >> 95% of use cases involves and therefore there would not be much >> advantage to a better language(I'm not saying Lua is). > > It's not about use, it's about development. "I don't

Re: [OpenOCD-devel] gerrit and patch dependencies

2012-02-28 Thread Øyvind Harboe
On Tue, Feb 28, 2012 at 10:04 AM, Attila Kinali wrote: > Moin, > > I just send in two additional patches for the SAM3 code. > Gerrit now seems to think that my 3 pending patches are dependend > on each other. While they should be all applied for a working system, > the actually do not depend on ea

[OpenOCD-devel] gerrit and patch dependencies

2012-02-28 Thread Attila Kinali
Moin, I just send in two additional patches for the SAM3 code. Gerrit now seems to think that my 3 pending patches are dependend on each other. While they should be all applied for a working system, the actually do not depend on each other. Now the question for me is, what did i do wrong that ger

[OpenOCD-devel] [PATCH]: c6d01a5 SAM3: Add missing architecture names for SAM3S and SAM3N

2012-02-28 Thread gerrit
This is an automated email from Gerrit. Attila Kinali (att...@kinali.ch) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/494 -- gerrit commit c6d01a50097860ea8c056d9bd1da719883b2c26e Author: Attila Kinali Date: Tue Feb 28 09:50:09 2012 +0100 SAM3:

[OpenOCD-devel] [PATCH]: 36b285d SAM3S: correct flash sector sizes.

2012-02-28 Thread gerrit
This is an automated email from Gerrit. Attila Kinali (att...@kinali.ch) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/493 -- gerrit commit 36b285dfb5af88bd8ea2fe8d1915450781f0a9c9 Author: Attila Kinali Date: Tue Feb 28 09:44:25 2012 +0100 SAM3S

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread Øyvind Harboe
I actually thought of a killer feature of switching to scripting programming language: How about if we could replace 80% of the C code with a scripting language without sacrificing performance and make 80% of the OpenOCD code unit-testable? The idea is to get exception handling and resources tra

Re: [OpenOCD-devel] Scripting languages

2012-02-28 Thread CeDeROM
On Tue, Feb 28, 2012 at 7:44 AM, Øyvind Harboe wrote: >> Anyway, I did not ask for buy-in. I asked if someone was strongly >> against replacing Tcl. Not many, if any, were. I think this is good! :) > > I am strongly against replacing Jim Tcl. I don't think a very > convincing case has been made th