Re: [OpenOCD-devel] Gerrit: updating someone elses patch?

2012-03-18 Thread Paul Fertser
Hi, On Sun, Mar 18, 2012 at 10:55:43AM +0100, Attila Kinali wrote: After getting a patch from gerrit with git fetch... How do i update the very same patch without submitting a new one? Just use commit --amend or rebase -i and do not change the Change-Id: field that is already present there.

Re: [OpenOCD-devel] Problem compiling

2012-03-19 Thread Paul Fertser
On Mon, Mar 19, 2012 at 12:55:53PM -0400, Jonathan Dumaresq wrote: if that does not work you can try pruning the src tree - this will DELETE all files not part of the OpenOCD git src tree. git clean -f -d -x Same thing. As I expected. What if you try removing old jim-tcl files from

Re: [OpenOCD-devel] Problem compiling

2012-03-20 Thread Paul Fertser
On Tue, Mar 20, 2012 at 09:12:01AM -0400, Jonathan Dumaresq wrote: Paul Fertser wrote: On Mon, Mar 19, 2012 at 12:55:53PM -0400, Jonathan Dumaresq wrote: if that does not work you can try pruning the src tree - this will DELETE all files not part of the OpenOCD git src tree. git clean -f

Re: [OpenOCD-devel] RTOS?

2012-04-26 Thread Paul Fertser
On Thu, Apr 26, 2012 at 07:23:38PM +0200, Akos Vandra wrote: Is the RTOS support stable? Since when? I tried it a few months ago, but it didn't work for me. LPC17xx + FreeRTOS. Can you please try again and report the actual issue you're facing? There was a FreeRTOS related bug (crashing

Re: [OpenOCD-devel] RTOS?

2012-04-26 Thread Paul Fertser
Hi :) On Thu, Apr 26, 2012 at 07:44:43PM +0200, Freddie Chopin wrote: I added -rtos auto to target create line in configuration file for LPC1768, I start GDB (with GDB Hardware Debugging in Eclipse) and see nothing - or rather the same as always, no threads. Oh - I'm talking about

Re: [OpenOCD-devel] RTOS?

2012-04-26 Thread Paul Fertser
On Thu, Apr 26, 2012 at 09:02:38PM +0200, Freddie Chopin wrote: Could you show me how does your OpenOCD start? Maybe there's some compilation switch to enable RTOS support (but I don't see anything in configure.ac)? Sorry, but i'm not able to: i do not have the board and the programmer

Re: [OpenOCD-devel] RTOS?

2012-04-26 Thread Paul Fertser
On Thu, Apr 26, 2012 at 09:11:13PM +0200, Freddie Chopin wrote: W dniu 2012-04-26 20:57, Paul Fertser pisze: But you can add a breakpoint to rtos_thread_packet() and see what's actually happening. Not really - I (cross-)compile OpenOCD in Linux, and use it in Windows /; I think you can copy

Re: [OpenOCD-devel] RTOS?

2012-04-26 Thread Paul Fertser
On Thu, Apr 26, 2012 at 09:30:38PM +0200, Freddie Chopin wrote: W dniu 2012-04-26 21:15, Paul Fertser pisze: Great, so it means everything's working and you're missing my two patches that fix that and are already in git HEAD. But that OpenOCD is compiled on 6th of April, and these patches

Re: [OpenOCD-devel] RTOS?

2012-04-26 Thread Paul Fertser
On Thu, Apr 26, 2012 at 09:56:23PM +0200, Freddie Chopin wrote: Maybe full debug log will make it easier for you to find the issue(s)? There are two problem, probably related: 1. I cannot make RTOS support work This's with eclipse i assume and that requires working without Eclipse first.

Re: [OpenOCD-devel] RTOS?

2012-04-26 Thread Paul Fertser
Morning, On Thu, Apr 26, 2012 at 11:01:49PM +0200, Freddie Chopin wrote: W dniu 2012-04-26 22:07, Paul Fertser pisze: On Thu, Apr 26, 2012 at 09:56:23PM +0200, Freddie Chopin wrote: 1. I cannot make RTOS support work This's with eclipse i assume and that requires working without Eclipse

Re: [OpenOCD-devel] Release annouce

2012-05-09 Thread Paul Fertser
Hi, On Wed, May 09, 2012 at 09:42:21AM +0100, John wrote: source [find interface/arm-usb-ocd.cfg] source [find target/stm32.cfg] I meant that for me ./configure make did not work and I had to figure out lots of --things then hack various makefiles etc to create anything at all. Oh,

Re: [OpenOCD-devel] RTOS?

2012-05-12 Thread Paul Fertser
Hi, Freddie :) On Sat, May 12, 2012 at 12:54:40PM +0200, Freddie Chopin wrote: OK, I've updated by build environment and OpenOCD does not crash anymore. But I still have problems with RTOS support... I'm glad it finally works at least on the OpenOCD side for you :) But if I hard-reset

Re: [OpenOCD-devel] RTOS?

2012-05-12 Thread Paul Fertser
Hi, On Sat, May 12, 2012 at 03:45:28PM +0200, Freddie Chopin wrote: OK, we're getting closer - now I see the threads in Eclipse most of the time. Nice, that's at least something :) I have two threads and a breakpoint in each of them. I run the code and hit the breakpoint in first thread

Re: [OpenOCD-devel] [PATCH]: a673d41 rtos: support FreeRTOS over stlink

2012-05-17 Thread Paul Fertser
On Thu, May 17, 2012 at 09:59:02PM +0200, Peter Stuge wrote: ger...@openocd.zylin.com wrote: Author: Paul Fertser fercer...@gmail.com Date: Thu May 17 23:38:25 2012 +0400 rtos: support FreeRTOS over stlink Since stlink is a special case it presents the same CPU core

Re: [OpenOCD-devel] Thread awareness with eCos problem

2012-05-19 Thread Paul Fertser
Hi, On Sat, May 19, 2012 at 02:50:30PM +0200, Stanislav Meduna wrote: (it depends on what symbols the OpenOCD has an access to), Basically, if you can load the elf file in gdb and you can print the needed variable, then OpenOCD has access to it too (because it basically asks gdb for the offset

Re: [OpenOCD-devel] J-Link v8 with FW newer than May 20, 2010?

2012-05-24 Thread Paul Fertser
Hi, On Thu, May 24, 2012 at 07:24:31PM +0400, Alexander Osipenko wrote: I've added EMU_CMD_SELECT_IF command to the jlink_init(). At least initial setup steps are passed now, my cores is detected normally. Cool, congratulations! I have problem connecting to gerrit from behind firewall;

Re: [OpenOCD-devel] [PATCH]: 76be9f5 target.c, jim_target_md using command_print_sameline

2012-05-24 Thread Paul Fertser
Hi, On Fri, May 25, 2012 at 01:05:00AM +, ger...@openocd.zylin.com wrote: Akos Vandra (axo...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/669 ... commit 76be9f5c5ce82812d22a98ba3759897174928246 Author: Vandra Akos axo...@gmail.com

Re: [OpenOCD-devel] Thread awareness with eCos problem

2012-05-28 Thread Paul Fertser
Hi, On Mon, May 28, 2012 at 05:04:54PM +0200, Stanislav Meduna wrote: On 19.05.2012 16:49, Paul Fertser wrote: Basically, if you can load the elf file in gdb and you can print the needed variable, then OpenOCD has access to it too (because it basically asks gdb for the offset of a variable

Re: [OpenOCD-devel] OpenOCD-BOX

2012-06-04 Thread Paul Fertser
Hi, On Mon, Jun 04, 2012 at 07:44:48PM +0200, Peter Stuge wrote: DHCP server in the MCU is important for usability. What about using something like this instead: $ ping6 -I usb0 ff02::1 And you'll get the reply from the connected device, then you can use its link-local address, e.g. if it was

Re: [OpenOCD-devel] OpenOCD-BOX

2012-06-07 Thread Paul Fertser
Hi, On Thu, Jun 07, 2012 at 08:50:47AM +0100, Dave Marples wrote: Has anyone considered using RasberryPi as a base, at least for development? It does seem to have some uncommitted I/O, SPI and I2C. It doesn't have level converters or any of the other bits and pieces needed in the real

Re: [OpenOCD-devel] JTAG through USB and TRACE

2012-07-04 Thread Paul Fertser
On Wed, Jul 04, 2012 at 01:47:20PM +0800, Antonio Borneo wrote: On Wed, Jul 4, 2012 at 7:35 AM, Andrew Leech coronasen...@gmail.com wrote: ... Again, there's probably a simpler way for you too, look up ST UM0412 Getting started with DfuSe USB device firmware upgrade. Looks like ST have it

Re: [OpenOCD-devel] Unable to submit patch

2012-09-20 Thread Paul Fertser
On Thu, Sep 20, 2012 at 09:40:32AM +0300, Sergey A. Borshch wrote: On 19.09.2012 11:19, Spencer Oliver wrote: try putting signed off line after changeid Sorry, I'm new in git and gerrit. How can I do that? I mean How can I edit the commit message? git commit --amend -- Be free, use

[OpenOCD-devel] C++, OOP, language practicies (was: Re: Internals reorganization)

2013-01-15 Thread Paul Fertser
Hi, On Mon, Jan 14, 2013 at 09:45:24PM +0100, CeDeROM wrote: Well in fact after over year I got used to current C code, but the problem with that is the code readability, program flow, names, etc. Using C++ would give us objects and methods, that would dramatically increase readability,

Re: [OpenOCD-devel] gerrit question

2013-01-21 Thread Paul Fertser
On Mon, Jan 21, 2013 at 12:12:43PM +, John wrote: If you can formulate a decent patch, then learning Gerrit will be a walk in the park. In this light, the list isn't terribly concerned about those patches that we miss out on because someone doesn't want to spend the time to learn

Re: [OpenOCD-devel] [PATCH]: a6b830d stm32: enable flash bank size override

2013-02-05 Thread Paul Fertser
On Tue, Feb 05, 2013 at 04:42:53PM +, ger...@openocd.zylin.com wrote: It has been seen on some stm32 targets that the flash size register that is probed by the driver may contain an invalid size. Not only that, I've been told at ##stm32 that all of the STM32F103C8T6 (e.g. as found

Re: [OpenOCD-devel] Runtime Error in olimex-jtag-tiny.cfg

2013-04-15 Thread Paul Fertser
On Mon, Apr 15, 2013 at 02:39:51PM +, Grant Edwards wrote: The ft2232 driver is more or less deprecated. It's slow and has a number of problems. Um, OK, but how can you use an Olimex JTAG tiney without an ft2232 driver when that device is based on the ft2232? ftdi driver takes care of

Re: [OpenOCD-devel] Debugging LPC1768 with NGX USB = JTAG (FT2322)

2013-04-27 Thread Paul Fertser
Hi, On Sat, Apr 27, 2013 at 11:14:15AM +0530, rakesh ranjan wrote: gdb_memory_map enable This is already the default in current version. interface ft2232 Please use ftdi interface adapter driver instead, ft2232 is effectively deprecated. ft2232_device_desc NGX JTAG ft2232_layout jtagkey

Re: [OpenOCD-devel] Introduce Andes architecture to OpenOCD

2013-05-03 Thread Paul Fertser
Hi, On Fri, May 03, 2013 at 07:43:00PM +0800, Kai Hsiang-kai Wang (王相凱) wrote: Thanks for your reminding. I am really confused by Laurent's message. Laurent meant that it would be rather nice if your target would be supported not only by your high-level adapter but also by generic adapters

Re: [OpenOCD-devel] OpenOCD-0.7.0 released

2013-05-05 Thread Paul Fertser
Hi, On Sun, May 05, 2013 at 10:57:49AM +0200, Freddie Chopin wrote: OpenOCD-0.7.0 release is done! Files are available on sourceforge and relevant changes are in the repository. Congratulations :) However, I would expect Debian (and other distro) people would be a bit unhappy about FTBFS on

Re: [OpenOCD-devel] question about Pandaboard ES ETB/ETM setting

2013-05-08 Thread Paul Fertser
On Wed, May 08, 2013 at 09:26:09PM +0800, loody wrote: I add below 2 lines at omap4460.cfg etm config $_TARGETNAME 16 normal full etb etb config $_TARGETNAME $_CHIPNAME.etb but it said Runtime Error: ./build/share/openocd/scripts/target/omap4460.cfg:129: invalid command name etm The idea is

Re: [OpenOCD-devel] question about Pandaboard ES ETB/ETM setting

2013-05-09 Thread Paul Fertser
Hi, On Thu, May 09, 2013 at 01:57:25PM +0800, loody wrote: if so far openocd doesn't support etm/etb in cortex, do I have the pleasure try to realize it? ^^ Yes, it looks like you have to proceed from here digging further yourself, good luck with it :) -- Be free, use free

Re: [OpenOCD-devel] olimex arm-usb-tiny-h and openocd suddenly quit working — RESOLVED

2013-06-10 Thread Paul Fertser
On Mon, Jun 10, 2013 at 04:23:42PM +1000, Stuart Longland (VK4MSL) wrote: Okay, I located pin 15 on the ribbon, scored either side with a scalpel, then cut it neatly with a pair of side cutters. Is it possible you can disassemble your usb-tiny-h dongle and draw the schematics by visually

Re: [OpenOCD-devel] Intagrate an StlinkV2 on our board ?

2013-06-13 Thread Paul Fertser
On Thu, Jun 13, 2013 at 01:18:18PM -0400, Jonathan Dumaresq wrote: I would like to plug only an USB on our board and debug it with openocd. We will have an STM32F4 devices on the board. If you integrate BlackMagicProbe on your board you'll be able to debug it, without OpenOCD even. Or you can

Re: [OpenOCD-devel] OpenOCD and NXP LPC4088

2013-06-14 Thread Paul Fertser
Hi, On Fri, Jun 14, 2013 at 01:58:47PM +0200, i...@herbrecher.de wrote: Is it possible to programm/debug the LPC4088? And how should the configuration look like? Take a look at target/lpc1788.cfg , try to prepare your own config based on that example and the datasheet. Do not forget to share

Re: [OpenOCD-devel] Instructions on doing (semi-)manual JTAG boundary scan with OpenOCD

2013-06-22 Thread Paul Fertser
Hi, On Sat, Jun 22, 2013 at 10:03:33AM +0200, Michael Schwingen wrote: Here go draft instructions: Thank you for documenting this! You're welcome :) All kinds of feedback are appreciated, I am going to consolidate it and add to the official texinfo document once I see what areas need more

Re: [OpenOCD-devel] Instructions on doing (semi-)manual JTAG boundary scan with OpenOCD

2013-06-23 Thread Paul Fertser
On Sat, Jun 22, 2013 at 09:41:00PM -0400, Evan Foss wrote: I would be happy to join an active project to add BSDL and boundary scan to OpenOCD. I was already thinking about writing a BSDL parser library. If there is one already a project going to write one I would be happy to join it. But

Re: [OpenOCD-devel] OpenOCD on Windows and USB issues due to misunderstanding

2013-06-23 Thread Paul Fertser
Hi, On Sun, Jun 23, 2013 at 11:00:04PM +0800, Xiaofan Chen wrote: On Sun, Jun 23, 2013 at 4:34 AM, Paul Fertser fercer...@gmail.com wrote: Hi Freddie, Today my coworker called me complaining he can't use OpenOCD on his Windows XP (yeah, lame!) with an Olimex adapter. So you

Re: [OpenOCD-devel] Instructions on doing (semi-)manual JTAG boundary scan with OpenOCD

2013-06-23 Thread Paul Fertser
Hi, Please do not think I was going to start a language war, of course everyone's free to make his own choices. And you're absolutely right it is much easier to get some C language module included in a project that's written in C itself. On Sun, Jun 23, 2013 at 01:40:12PM -0400, Evan Foss wrote:

Re: [OpenOCD-devel] OpenOCD on Windows and USB issues due to misunderstanding

2013-06-23 Thread Paul Fertser
On Mon, Jun 24, 2013 at 09:15:28AM +0800, Xiaofan Chen wrote: On Sun, Jun 23, 2013 at 11:20 PM, Paul Fertser fercer...@gmail.com wrote: On Sun, Jun 23, 2013 at 11:00:04PM +0800, Xiaofan Chen wrote: Take note there is no libusb-compat under Windows, only libusb-win32. Eh, now that's

Re: [OpenOCD-devel] OpenOCD on Windows and USB issues due to misunderstanding

2013-06-24 Thread Paul Fertser
On Mon, Jun 24, 2013 at 02:47:10PM +0800, Xiaofan Chen wrote: On Mon, Jun 24, 2013 at 11:49 AM, Paul Fertser fercer...@gmail.com wrote: So for OpenOCD users it looks like always installing plain WinUSB driver and employing libusb-compat-0.1 for the older code would be a fine solution, or am

Re: [OpenOCD-devel] OpenOCD on Windows and USB issues due to misunderstanding

2013-06-25 Thread Paul Fertser
Hello, On Tue, Jun 25, 2013 at 05:36:24PM +0800, Xiaofan Chen wrote: And right now the best supported driver for libusbx is still WinUSB, so yes it makes sense to recommend users to use Zadig to install WinUSB drivers. But for the instructions to be fully streamlined (i.e.

Re: [OpenOCD-devel] OpenOCD on Windows and USB issues due to misunderstanding

2013-06-25 Thread Paul Fertser
Hi, On Tue, Jun 25, 2013 at 03:02:25PM +0200, Andreas Fritiofson wrote: If we want to unify the API, I see no reasonable option other than porting the remaining drivers you listed over to the libusb-1.0 API, replacing the common layer in drivers using it with it's libusb-1.0 version and then

Re: [OpenOCD-devel] OpenOCD on Windows and USB issues due to misunderstanding

2013-06-28 Thread Paul Fertser
On Fri, Jun 28, 2013 at 04:15:33PM +0800, Xiaofan Chen wrote: As mentioned before, there is no libusb-compat-0.1 as the libusb 0.1 API provider for Windows, Why can't be OpenOCD linked against libusb-compat-0.1 which would be linked against libusbx which would just use WinUSB? Call me stupid, I

Re: [OpenOCD-devel] OpenOCD on Windows and USB issues due to misunderstanding

2013-06-28 Thread Paul Fertser
On Fri, Jun 28, 2013 at 11:36:15AM +0200, Andreas Fritiofson wrote: But as Xiaofan said, libusb-compat-0.1 doesn't build out of the box on Windows today. If I had a windows box handy, I'd prove that's quite easy to fix. Sorry folks for such a lengthy and useless discussion, especially given

Re: [OpenOCD-devel] Cortex M0/FT2232

2013-07-02 Thread Paul Fertser
On Mon, Jul 01, 2013 at 08:09:19PM -0700, John Warren wrote: I'm new to openocd so bear with me. Welcome :) I'd like to imbed a FT2232 onto a board I'm working on that contains a Cortex M0, in my case it's a nRF51xxx series chip, so it would be easier for the end user to re-flash for changes

Re: [OpenOCD-devel] [PATCH]: 51054c4 aice: fix FTBFS on ARM

2013-07-06 Thread Paul Fertser
On Sat, Jul 06, 2013 at 10:45:41AM +0200, Michael Schwingen wrote: On Sat, Jul 06, 2013 at 07:23:47AM +, ger...@openocd.zylin.com wrote: Paul Fertser (fercer...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/1477 Also, the aice

Re: [OpenOCD-devel] gerrit server problem

2013-07-09 Thread Paul Fertser
Hi, On Tue, Jul 09, 2013 at 07:48:23AM -0500, Brad Riensche wrote: remote: Branch refs/heads/master: add push = HEAD:refs/for/master to your .git/config for the [review] remote. Also consider changing the http password please. HTH -- Be free, use free

Re: [OpenOCD-devel] Problems with DM368

2013-07-15 Thread Paul Fertser
Hi, On Mon, Jul 15, 2013 at 12:09:30PM +0100, Joel Holdsworth wrote: 1. I'm having trouble connecting. The only way I can get it to enumerate the TAPs is if I press the board reset button with the ribbon cable disconnected, then connect the ribbon, then run openocd. If I don't follow this

Re: [OpenOCD-devel] OpenOCD-devel Digest, Vol 21, Issue 17

2013-07-19 Thread Paul Fertser
Hi, First of all, please do not highjack threads, and in particular never ever reply to the mailing list digests mails (and if you ever plan to write to this mailing list, please disable the digests!). On Fri, Jul 19, 2013 at 02:33:27PM +0800, feng Gao wrote: I have a board which has four

Re: [OpenOCD-devel] libusbx problems, automake problems

2013-07-20 Thread Paul Fertser
On Sat, Jul 20, 2013 at 07:47:55PM +0200, Freddie Chopin wrote: On Sat, Jul 20, 2013 at 10:28:50AM +0200, Freddie Chopin wrote: The first issue is that configure does not detect libusb_error_name(), but this is present in the lib, so the actual build fails: Can you please show your full

Re: [OpenOCD-devel] libusbx problems, automake problems

2013-07-20 Thread Paul Fertser
On Sat, Jul 20, 2013 at 08:31:56PM +0200, Freddie Chopin wrote: Take a look at my first message in the thread - all the details, with my version of the test that works - are there. I've read that but you're workarounding the real issue by making the prototypes match. The real question is why

Re: [OpenOCD-devel] libusbx problems, automake problems

2013-07-20 Thread Paul Fertser
On Sat, Jul 20, 2013 at 08:31:56PM +0200, Freddie Chopin wrote: (and add the parameter to the actuall call) everything works perfectly. And the only differences are: - WINAPI - single parameter. Ooh, now I see what you're saying, sorry for the misunderstanding. I couldn't have imagined it's

Re: [OpenOCD-devel] libusbx problems, automake problems

2013-07-20 Thread Paul Fertser
Hi, Checking for linkage is actually a hack compared to checking for version here. So I'll just add a pkg-config version check instead of AC_SEARCH_LIBS to the require pkg-config support patch. Freddie, you're probably the most active windows user here, what's your opinion on depending on

Re: [OpenOCD-devel] libusbx problems, automake problems

2013-07-22 Thread Paul Fertser
Hi, On Tue, Jul 23, 2013 at 11:16:44AM +0800, Xiaofan Chen wrote: On Tue, Jul 23, 2013 at 10:18 AM, Peter Stuge pe...@stuge.se wrote: *This* is what pkg-config does! I so hope that makes sense, but I honestly don't dare to expect anything.. There are patches which will fix the issue.

Re: [OpenOCD-devel] arm-linux-gnueabihf jenkins build added

2013-08-01 Thread Paul Fertser
On Thu, Aug 01, 2013 at 12:21:22AM +0100, Spencer Oliver wrote: Due to a libusb-1.0 header issue (https://github.com/libusbx/libusbx/issues/120) we are configuring this build with --disable-werror Strange, at least that's not an issue with a native armhf build because gcc doesn't normally

Re: [OpenOCD-devel] mem2array script command double read issue

2013-08-02 Thread Paul Fertser
Hi, Please do not send HTML to the mailing list, plain text is much easier and consistent. On Thu, Aug 01, 2013 at 06:34:42PM -0700, Kenneth Lee wrote: I am using the ST Link V2 integrated on the STM32F4 Discovery Board and OpenOCD 0.8.0. Yep, that's a very important detail. mem2array

Re: [OpenOCD-devel] Build problem with --enable-stlink

2013-08-02 Thread Paul Fertser
Hi, On Fri, Aug 02, 2013 at 04:55:24PM -0700, Tim Wescott wrote: Without libusb-0.1-4 installed I do: ./configure --enable-ft2232_libftdi --enable-stlink Please do not use ft2232_libftdi at all, --enable-ftdi is the current driver for those devices. And you can remove libusb-0.1 altogether,

Re: [OpenOCD-devel] Command line programming

2013-09-04 Thread Paul Fertser
Hi, On Wed, Sep 04, 2013 at 08:53:44AM +, steel wrote: I want add my own command to openocd terminal. what are the places i shold have to add my stuff. Your own openocd.cfg most probably. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!

Re: [OpenOCD-devel] bug in svf

2013-09-10 Thread Paul Fertser
Hi, On Tue, Sep 10, 2013 at 11:11:43AM +0200, Nicolas Produit wrote: this is my first mail to this list so sorry if I do something wrong. I posted a bug report on sparkfun openocd forum but did not get a lot of answers there... https://forum.sparkfun.com/viewtopic.php?f=18t=36484e=0 Heh, I

Re: [OpenOCD-devel] bug in svf

2013-09-10 Thread Paul Fertser
Hi, On Tue, Sep 10, 2013 at 06:40:33PM +0800, 徐光晓 wrote: It seemed that I've been in this bug before. The reason cause this bug I guess is from the new line characters are much different between linux (\n) and windows(\r\n). The file in question has no 0x0d's, only 0x0a's, so that's probably

Re: [OpenOCD-devel] bug in svf

2013-09-10 Thread Paul Fertser
On Tue, Sep 10, 2013 at 06:40:33PM +0800, 徐光晓 wrote: I did not post a bug report, because I did not check the real reason of this bug. The new line character reason is only from my suspection. Imagine the current position is 0. We're going to write the character itself, an (optional) space and

Re: [OpenOCD-devel] bug in svf

2013-09-10 Thread Paul Fertser
On Tue, Sep 10, 2013 at 01:51:14PM +0200, Nicolas Produit wrote: I checked that file do contain \r\n. File was created on windows... Perhaps mailer attachment changed that? I have a feeling that it's your MUA :) Anyway, the parser handles \r just fine, I've checked it already. Please try the

Re: [OpenOCD-devel] bug in svf

2013-09-10 Thread Paul Fertser
Hi, Please, refrain from top-posting. On Tue, Sep 10, 2013 at 03:44:41PM +0200, Nicolas Produit wrote: Error: tdo check error at line 76 Error: read = 0x2F9FF, want = 0x3, mask = 0x3 This means the device answered something that it's not expected to. I guess that if it went so far, it

Re: [OpenOCD-devel] high output drive capability in raspberry pi

2013-09-18 Thread Paul Fertser
Hi, On Wed, Sep 18, 2013 at 02:48:27PM +0200, Nicolas Produit wrote: I have no idea where the person that wrote this document knows about that... Gert van Loo can certainly be trusted here, good find! Please try http://openocd.zylin.com/1633 and keep us updated about your progress :) -- Be

Re: [OpenOCD-devel] high output drive capability in raspberry pi

2013-09-19 Thread Paul Fertser
Hi, On Thu, Sep 19, 2013 at 06:13:49PM +0200, Nicolas Produit wrote: it looks good. Nothing burned. Nothing could have been burned just because RPi should be using stronger pulls to drive the GPIO lines :) It would be nice if you confirmed that with a 'scope as I do not have neither RPi nor

Re: [OpenOCD-devel] profiling of svf

2013-09-23 Thread Paul Fertser
Hi, Sorry about that failing mmap() call, I hope I've now fixed it (see the new version on Gerrit). On Fri, Sep 20, 2013 at 05:46:54PM +0200, Nicolas Produit wrote: The svf file is a flashing verify, it goes for a short while and then stop because verification fails. Yes, this is no good for

Re: [OpenOCD-devel] high output drive capability in raspberry pi

2013-09-23 Thread Paul Fertser
Hi, On Mon, Sep 23, 2013 at 01:08:07PM +0200, Nicolas Produit wrote: your new code does not make mmap error anymore. But it is not correct, from documentation: Physical addresses range from 0x2000 to 0x20FF for peripherals. The bus addresses for peripherals are set up to map onto the

Re: [OpenOCD-devel] high output drive capability in raspberry pi

2013-09-23 Thread Paul Fertser
Hi, On Mon, Sep 23, 2013 at 01:38:09PM +0200, Nicolas Produit wrote: I am not sure to understand fully myself. GPIO IO registers (set reset read) in the recent documentation are also given in the 0x7E2xxx range and not in the 0x20... range. For some reason something (MMU?) remap 7E range to

Re: [OpenOCD-devel] high output drive capability in raspberry pi

2013-09-24 Thread Paul Fertser
Hi, On Tue, Sep 24, 2013 at 11:32:43AM +0200, Nicolas Produit wrote: ok patch tested. I looked with a scope and it seems I see 0.2V difference between setting 1 (2mA) and 7 (16 mA) on TCK, I was expecting much more difference (I have 1k to gnd). Ok, thank you again for your interest and for

[OpenOCD-devel] Running on bare hardware: approximate flash size requirements

2013-09-30 Thread Paul Fertser
Hi, Just for the kicks I decided to try cross-building for arm-none-eabi with newlib. Basically, LIBS=-lc -lnosys ./configure --host=arm-none-eabi, disabling eventloop and file jimtcl modules (and making its final linking step manually since it doesn't honour LIBS), adding few stubs, I got it

Re: [OpenOCD-devel] OpenOCD on MX51

2013-10-06 Thread Paul Fertser
On Sun, Oct 06, 2013 at 04:16:42PM +, Bojan M. wrote: I am observing the same problems with iMX51 and openocd version 0.7.0. Was there any progress on this? I am using iMX51evk board. Any help will be appriciated! First thing, try current git HEAD and report the debug log (run openocd with

Re: [OpenOCD-devel] cJTAG on CC2538

2013-10-11 Thread Paul Fertser
On Fri, Oct 11, 2013 at 02:41:31PM +0200, Damjan Marion wrote: On Sep 23, 2013, at 11:04 AM, Paul Fertser fercer...@gmail.com wrote: On Wed, Sep 18, 2013 at 04:50:33PM +0200, Damjan Marion wrote: So to speak 1149.1 with this device special sequence needs to be sent to this device to switch

Re: [OpenOCD-devel] cJTAG on CC2538

2013-10-11 Thread Paul Fertser
On Fri, Oct 11, 2013 at 06:12:37PM +0200, Damjan Marion wrote: I tried to do that with following: jtag newtap $_CHIPNAME unknown0 -irlen 4 jtag configure $_CHIPNAME.unknown0 -event setup my_proc $_CHIPNAME.unknown0 but my_proc is not called, Instead I'm getting following: Error: JTAG

[OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-10-15 Thread Paul Fertser
Hi, Some time ago Jan Lübbe (shoragan) asked an interesting question on IRC: why the hell some Tcl functions do not return anything at all when he's calling them via the RPC interface? After quite some digging through the code I finally understood that: 1. OpenOCD has a smart cool trick to make

[OpenOCD-devel] SRST is pulled twice, breaking assumptions and some targets; other reset issues

2013-10-15 Thread Paul Fertser
Hi, As Freddie Chopin already reported, dual-core LPC microcontrollers do not work properly. It was also discussed on IRC with some user I do not remember the name of. First time SRST is pulled in jtag_init_reset(). Second time it's pulled from ocd_process_reset_inner Tcl procedure. It also

Re: [OpenOCD-devel] Support for low-cost development boards as JTAG adapters

2013-10-20 Thread Paul Fertser
Hi, On Sun, Oct 20, 2013 at 03:44:45PM +0300, Paul Sokolovsky wrote: With the plenitude of low-cost development boards (LCB in following text) on the market (proverbial Arduino is an example *1), I find it surprising that none of them is supported in OpenOCD mainline. RaspberryPi is

Re: [OpenOCD-devel] Support for low-cost development boards as JTAG adapters

2013-10-20 Thread Paul Fertser
On Sun, Oct 20, 2013 at 04:28:59PM +0200, Michael Schwingen wrote: I wonder if one of the existing HLA protocols might be useable. They're even higher level, about the Gdb serial protocol, so no, unlikely. abstraction that it can be used on STM32, ATMega etc.. with different Who would use

Re: [OpenOCD-devel] checkpatch doesn't like jenkins ?

2013-10-26 Thread Paul Fertser
Hi, On Fri, Oct 25, 2013 at 11:38:44PM +0200, Jens Bauer wrote: When I run checkpatch, I get the following error... Should now be taken care of by http://openocd.zylin.com/1785 and http://openocd.zylin.com/1786, thanks for reporting! -- Be free, use free

Re: [OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-11-01 Thread Paul Fertser
Hi, On Tue, Oct 15, 2013 at 11:45:20AM +0400, Paul Fertser wrote: As I think the 1. trick is a good one (and ocd_bouncer is a bad one), I'm proposing to: 1. Eliminate ocd_bouncer altogether; 2. Disable auto-printing return values to the openocd console; 3. Add back whatever important

Re: [OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-11-02 Thread Paul Fertser
On Fri, Nov 01, 2013 at 07:29:18PM +0100, Andreas Fritiofson wrote: Myself, I'm far too confused by the command/Jim interactions to provide any useful input. I think I'm starting to grasp enough of it already, so will hopefully be able to work on the most pressing issues. The way it's done is

Re: [OpenOCD-devel] SVF file for XC3S4000

2013-11-02 Thread Paul Fertser
Hi, On Fri, Nov 01, 2013 at 07:40:07PM +, Voltner, Jiří wrote: Xilinx Spartan 3 device XC3S4000, but OpenOCD stops with error. I found that there is probably problem with svf buffer size and svf SDR command with length 11316992. Wow, that's one monster SDR command here, over 10MiB. The

Re: [OpenOCD-devel] SVF file for XC3S4000

2013-11-03 Thread Paul Fertser
Hi, On Fri, Nov 01, 2013 at 07:40:07PM +, Voltner, Jiří wrote: SDR command with length 11316992. Is there any solution to force it work? Please try http://openocd.zylin.com/1792 , I was undoubtly seeing issues with the file you sent me and this patch fixed them. You can use

[OpenOCD-devel] OpenOCD SVF player buffer limitation

2013-11-11 Thread Paul Fertser
Hi, First of all, thank you for the SVF player, it seems many people around the globe enjoy using it. Out of curiousity I got an SVF file for the largest FPGA around here at $dayjob (targetting XC4VFX100) and tried playing it back with OpenOCD. It has an SDR 33065440 bits long (4133180 bytes)

Re: [OpenOCD-devel] Mismatch in number of MIPS registers

2013-11-12 Thread Paul Fertser
Hi, On Wed, Nov 13, 2013 at 12:57:41AM +, Gregory Fong wrote: Are there plans to change this? Just verified that HEAD is also broken with mipsel-linux-gnu gdb 7.6.1. Changing Someone should implement code to enable gdb target description generation like

Re: [OpenOCD-devel] OpenOCD SVF player buffer limitation

2013-11-13 Thread Paul Fertser
Hi, On Mon, Nov 11, 2013 at 02:35:03PM +0100, Andreas Fritiofson wrote: On Mon, Nov 11, 2013 at 2:22 PM, Paul Fertser [1]fercer...@gmail.com wrote: It has an SDR 33065440 bits long (4133180 bytes) and so the buffer is not enough, report to author message is output. What

Re: [OpenOCD-devel] TCL API inconsistency: problem getting results back

2013-11-25 Thread Paul Fertser
Hi, On Fri, Nov 01, 2013 at 07:29:18PM +0100, Andreas Fritiofson wrote: What's the difference between log output and return values? Why should any command output what could be the return value through the log facility? One of the main problems with the telnet interface is the lack of sane

Re: [OpenOCD-devel] SRST is pulled twice, breaking assumptions and some targets; other reset issues

2013-11-25 Thread Paul Fertser
Bumping the thread, adding new thoughts. On Tue, Oct 15, 2013 at 12:29:48PM +0400, Paul Fertser wrote: As Freddie Chopin already reported, dual-core LPC microcontrollers do not work properly. It was also discussed on IRC with some user I do not remember the name of. First time SRST

[OpenOCD-devel] Default procedures for gdb-* hooks

2013-11-25 Thread Paul Fertser
Hi, Would it make sense to add something like this to default configuration? What are the objections? $_TARGETNAME configure -event gdb-attach { halt wait_halt } $_TARGETNAME configure -event gdb-flash-erase-start { reset init } $_TARGETNAME configure -event gdb-flash-write-end {

[OpenOCD-devel] Debugging an arm920t target with MMU and caches enabled is a PITA

2013-11-25 Thread Paul Fertser
Hi again, Since I'm still unaware of any better way to report bugs for OpenOCD, here it goes. Trying to debug Linux code on Samsung S3C2442 results in at least the following issues: 1. Software breakpoints crash execution. It's impossible to continue once you stop on one (Linux reports Oops

[OpenOCD-devel] Transcript of SWO features discussion with karlp

2013-11-25 Thread Paul Fertser
Hi, Karl Palsson was digging this topic extensively (down to the usb level traces) lately so I think OpenOCD community can benefit from his opinion. He implemented a standalone tool to talk to stlink that allows to turn on/off different stimuli interactively and draws a real-time plot. karlp

Re: [OpenOCD-devel] [PATCH]: 06542c5 [EXPERIMENTAL][RFC] Handle Tcl return values consistently

2013-11-25 Thread Paul Fertser
On Tue, Nov 26, 2013 at 10:31:04AM +0800, Antonio Borneo wrote: while I agree on such development, a single patch with ~800 modifications is difficult to review and handle. Do you think possible to split it in a sequence of few patches? Sure, possible and reasonable. But I need to be sure the

Re: [OpenOCD-devel] Default procedures for gdb-* hooks

2013-11-26 Thread Paul Fertser
On Mon, Nov 25, 2013 at 09:49:10PM +0100, Andreas Fritiofson wrote: On Mon, Nov 25, 2013 at 11:00 AM, Paul Fertser [1]fercer...@gmail.com wrote: Would it make sense to add something like this to default configuration? What are the objections? Depends what you mean by default

Re: [OpenOCD-devel] Debugging an arm920t target with MMU and caches enabled is a PITA

2013-11-26 Thread Paul Fertser
On Mon, Nov 25, 2013 at 11:04:37PM +0100, Andreas Fritiofson wrote: On Mon, Nov 25, 2013 at 11:04 AM, Paul Fertser [1]fercer...@gmail.com wrote: As I noticed in [2]http://openocd.zylin.com/1220 the handling of MMU and cache in the arm7/9 memory access functions is messy and probably incorrect

Re: [OpenOCD-devel] debug kernel on pandaboardES + flyswatter2

2013-11-27 Thread Paul Fertser
Hi, On Wed, Nov 27, 2013 at 11:41:05AM +0100, Denis CIOCCA wrote: I'm trying to use OpenOCD and Flyswatter2 debugger on PandaBoard ES to debug kernel code. My procedure: - start uboot and stop it. - start openocd and then gdb. - on gdb: - target remote localhost: I recommend

Re: [OpenOCD-devel] Unneeded libusb dependencies

2013-12-01 Thread Paul Fertser
Hi, On Sun, Dec 01, 2013 at 10:39:02PM +0100, Drasko DRASKOVIC wrote: I tried to cross-compile latest git for OpenWRT MIPS with --enable-remote-bitbang. I am hitting this error: Package openocd is missing dependencies for the following libraries: libusb-0.1.so.4 libusb-1.0.so.0 What

Re: [OpenOCD-devel] FTDI automatisation PID

2013-12-03 Thread Paul Fertser
Hi, On Tue, Dec 03, 2013 at 07:51:38AM +, Raghavendra wrote: I am using openocd to program my ralink through ft2232 jtag board. it is workign fine before. but now i have changed jtag ic to ft4232. Are you using the new nice ftdi driver or the old ft2232? Please just enable the new driver

Re: [OpenOCD-devel] undefined reference to `isascii'

2013-12-13 Thread Paul Fertser
On Fri, Dec 13, 2013 at 04:33:01PM +0800, loody wrote: hi all: When I follow below link to compile openocd over xp system http://www.tincantools.com/wiki/Compiling_OpenOCD_Win7 Please do not use ft2232 driver that requires libftdi. If you need support for ft2232 devices please use

Re: [OpenOCD-devel] SAM3N with wrong device id

2013-12-22 Thread Paul Fertser
On Sun, Dec 22, 2013 at 11:43:02AM +0100, axel wrote: CPUTAPID is now correct. Furthermore I adjusted the -irlen to 3 and -ircapture to 0x1 (seen in the appropriate BSDL file). Even though the BSDL file says IR length is only three bits, it seems wrong as ADIv5 mandates IR to be of at least 4

Re: [OpenOCD-devel] SAM3N with wrong device id

2013-12-22 Thread Paul Fertser
On Sun, Dec 22, 2013 at 03:37:33PM +0100, axel wrote: My fault: JTAGSEL was high; I thought the JTAG is activated instead of IO operation. Now the original 'at91sam3nXX.cfg' is working. But the error: Ok, nice. So it presents the usual Cortex-M ID when it's not in JTAG Boundary Scan mode.

Re: [OpenOCD-devel] SAM3N with wrong device id

2013-12-22 Thread Paul Fertser
On Sun, Dec 22, 2013 at 06:14:04PM +0100, axel wrote: BTW: 'reset init' and 'reset halt' in the *.cfg didn't work, unknown command :-( Wasn't supposed to be used in a config file. Either you perform them manually (via telnet or gdb) or you add them after init command. I'd appreciate it if you

  1   2   3   4   5   6   7   8   >