Re: [Openocd-development] [PATCH] CMake Support

2009-04-14 Thread Øyvind Harboe
I am not very keen on changing anything in terms of tools around openocd as there are a lot of developers out there that are familiar with the current situation. Every so often we get a request to use some new tool, switch version control, etc. I believe that it is a good thing that any such

Re: [Openocd-development] [PATCH] Cmake part 2

2009-04-14 Thread Nico Coesel
Here is another grazy idea regarding build tools: how about adding Eclipse project definitions? From experience I know that Eclipse projects can be transferred between Windows and Linux without problems. I agree the autotools aren't ideal especially when cross-compiling. When cross compiling

[Openocd-development] [PATCH] Cmake part 2

2009-04-14 Thread Dick Hollenbeck
This adds config.h.cmake which was missing in the first patch. It seems that I will need help getting this committed. CMake fans please step forward and make your voices heard. CMake has been accused of being off the beaten path. From my perspective, those that take the

Re: [Openocd-development] [PATCH] CMake Support

2009-04-14 Thread Dick Hollenbeck
Øyvind Harboe wrote: I am not very keen on changing anything in terms of tools around openocd as there are a lot of developers out there that are familiar with the current situation. Every so often we get a request to use some new tool, switch version control, etc. I believe that it is a

Re: [Openocd-development] [PATCH] CMake Support

2009-04-14 Thread Dick Hollenbeck
Kishore, Thank you for your efforts to make this usable by those who would. Attached is a single comprehensive patch, which should be used instead of my two previous patches. For those who would like to give it a spin, remember to use an out of source build, and to use the ccmake command

[Openocd-development] Keil AGDI interface to openOCD?

2009-04-14 Thread Pedro Martos
Dear people, I am looking for a way to use keil uvision with openOCD; I found that keil has an API to talk to third party debuggers, but I can not find a driver to talk to openOCD. So, is there any imposibility to do that, or just nobody wrote it yet? Thanks in advance for your help. best

[Openocd-development] Beginners help with OpenOCD, STM3210E-EVAL and Olimex ARM-USB-TINY JTAG connector.

2009-04-14 Thread Robert Taylor
Hello, I'm new to embedded development and I've just bought a STM3210E-EVAL board and an Olimex ARM-USB-TINY JTAG connector to play with. I've managed to set the tool chain and such up and I'm having trouble flashing an application. The application is from the ST example code and blinks the LEDs

Re: [Openocd-development] Beginners help with OpenOCD, STM3210E-EVAL and Olimex ARM-USB-TINY JTAG connector.

2009-04-14 Thread Freddie Chopin
Instead of all the commands you use, just do 'reset halt' and then flash write_image erase file_name.extension 0 bin 4\/3!! ___ Openocd-development mailing list Openocd-development@lists.berlios.de

Re: [Openocd-development] Segfault when using breakpoints

2009-04-14 Thread Magnus Lundin
Hi, The patch does not have any side effects and problem seems to be solved so I have committed the patch with minor cosmetic changes. Thanks. Regards, Magnus Zach Welch wrote: Given your information and the code, the attached patch should work around the problem, unless there are

Re: [Openocd-development] Beginners help with OpenOCD, STM3210E-EVAL and Olimex ARM-USB-TINY JTAG connector.

2009-04-14 Thread Magnus Lundin
Hi You are just erasing one sector of the flash memory, 1k, and probalby your bin file is larger. Try something like: flash erase_sector 0 0 10 Magnus Robert Taylor wrote: Hello, I'm new to embedded development and I've just bought a STM3210E-EVAL board and an Olimex ARM-USB-TINY JTAG

[Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Magnus Lundin
Hi I have commited a patch that gives more readable error reporting for STM32 flash writing errors. But still all errors are reported with the error code ERROR_FLASH_OPERATION_FAILED (-902) as return code wich is not very helpul about the cause of the error. My suggestion is to return the

Re: [Openocd-development] jlink vrs ft2232 tap transitions - some differences.

2009-04-14 Thread Dick Hollenbeck
Dick Hollenbeck wrote: Duane Ellis wrote: Dick I am working on the ft232 stuff starting today. I am to - we should coordinate... my changes are non-trivial. -Duane. OK, send me what you have and what your thought are to Personal Mail if you want. Until I get that,

Re: [Openocd-development] xsvf patch

2009-04-14 Thread Dick Hollenbeck
Johann F. wrote: I can't make out the important changes from the gratuitous ones. Can you please revert all the u8 - uint8_t changes as well as whitespace changes? -- Rick Altherr kc8...@kc8apf.net Its been a week now. I can boil it down and find the essence of the changes.

[Openocd-development] [PATCH] xsvf.c

2009-04-14 Thread Dick Hollenbeck
This patch adds a couple of lines from Johann's patch, but mostly it is merely a matter of left indenting the big switch statement by one tab stop. Since the function is big, and indentation levels are used liberally, I felt we needed to scoot left one tab stop. This is consistent with the

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Øyvind Harboe
On Tue, Apr 14, 2009 at 7:25 PM, Magnus Lundin lun...@mlu.mine.nu wrote: Hi I have commited a patch that gives more readable error reporting for STM32 flash writing errors. But still all errors are reported with the  error code ERROR_FLASH_OPERATION_FAILED (-902) as return code wich is not

Re: [Openocd-development] How to go on with Cortex-A8 support

2009-04-14 Thread Magnus Lundin
Hi The following patch is a first step towards support for sevaral AP in one dap. - Adds a apsel variable, corresponding to the corresponding field in the DP SELECT register, to the swjdap structure. - adds a function swjdp_apselect(swjdp_common_t *swjdp,u8 apsel) to set this variable. -

Re: [Openocd-development] [PATCH] xsvf.c

2009-04-14 Thread Øyvind Harboe
Committed. I haven't followed this discussion, but I take your word for that there is a consensus that this should be committed. Please check that the patch applied correctly. -- Øyvind Harboe PayBack incident management system Reduce costs and increase quality, free Starter Edition

[Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Michael Fischer
Hello list, I am working on a Mac OS X installer for OpenOCD. If I only install the openocd executable, I got an error that the dynamic library for libusb and libftdi can not be found. This is correct, because this libraries was not installed. For the toolchain build I could use

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Dick Hollenbeck
Michael Fischer wrote: Hello list, I am working on a Mac OS X installer for OpenOCD. If I only install the openocd executable, I got an error that the dynamic library for libusb and libftdi can not be found. Are you saying that you want to use: 1) static libraries for libusb and

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Michael Fischer
Hello Dick, I want to build OpenOCD for FT2232 device, which use later static libraries for libusb and libftdi. This mean that the user do not need to install the libftdi and libusb. Best regards, Michael -Ursprüngliche Nachricht- Von: Dick Hollenbeck [mailto:d...@softplc.com]

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Michael Fischer
Hello Dick, I try to understand how the libftdi test is working, I think the test source look like (conftest.c): #include stdio.h #include ftdi.h int main( int argc, char **argv ) { struct ftdi_context *p; p = ftdi_new(); if( p != NULL ){ return 0; }

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Rick Altherr
On Apr 14, 2009, at 12:09 PM, Øyvind Harboe wrote: On Tue, Apr 14, 2009 at 7:25 PM, Magnus Lundin lun...@mlu.mine.nu wrote: Hi I have commited a patch that gives more readable error reporting for STM32 flash writing errors. But still all errors are reported with the error code

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Rick Altherr
On Apr 14, 2009, at 11:56 AM, Michael Fischer wrote: Hello list, I am working on a Mac OS X installer for OpenOCD. If I only install the openocd executable, I got an error that the dynamic library for libusb and libftdi can not be found. This is correct, because this libraries was not

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Michael Fischer
Hello Rick, OpenOCD is already part of MacPorts. But here the user must install MacPorts. Do you know my windows page, www.yagarto.de ? Here the user will find a toolchain, and openocd which works out of the box without to install anything else. For the Mac I want to create a solution like

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Øyvind Harboe
I'd rather know _why_ something failed rather than having to dig through the code to figure out which layer and why.  Not every user is a UNIX programmer with intimate knowledge of the targets, interfaces, and general protocols. That's what the LOG_ERROR()'s are for. They tell you where and

Re: [Openocd-development] How to go on with Cortex-A8 support

2009-04-14 Thread Magnus Lundin
The reasons First there is no support for interactive commands in cortex_swjdp.c, and ther should not be any. All commands use a swjdp structure for state information. This structure is owned by the target device structure, in our case the cortex_m3 target type so that is the natural place

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Rick Altherr
On Apr 14, 2009, at 1:44 PM, Øyvind Harboe wrote: I'd rather know _why_ something failed rather than having to dig through the code to figure out which layer and why. Not every user is a UNIX programmer with intimate knowledge of the targets, interfaces, and general protocols. That's

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Rick Altherr
As a general matter, anyone doing OSS development on a Mac will already have MacPorts installed. It correctly handles dependency tracking and updating components independently. If you really want to build a standalone package for this, you should just include the libftdi and libusb

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Dick Hollenbeck
Rick Altherr wrote: On Apr 14, 2009, at 1:44 PM, Øyvind Harboe wrote: I'd rather know _why_ something failed rather than having to dig through the code to figure out which layer and why. Not every user is a UNIX programmer with intimate knowledge of the targets, interfaces, and general

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Øyvind Harboe
So because it isn't that way today, we shouldn't set a policy to do so in the future? I think that would be moving in the wrong direction, yes. I'm in favour of a boolean success/failure return value and other mechanisms to convey other information. Why should information about what went

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Rick Altherr
On Apr 14, 2009, at 2:09 PM, Michael Fischer wrote: Hello Rick, As a general matter, anyone doing OSS development on a Mac will already have MacPorts installed. It correctly handles dependency tracking and updating components independently. Yes you are sure, for OSS development. But I

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Rick Altherr
On Apr 14, 2009, at 2:11 PM, Øyvind Harboe wrote: So because it isn't that way today, we shouldn't set a policy to do so in the future? I think that would be moving in the wrong direction, yes. I'm in favour of a boolean success/failure return value and other mechanisms to convey other