[Openocd-development] openocd patch: b6d2fa6 tools: add checkpatch script

2011-11-03 Thread gerrit
This is an automated email from Gerrit. Spencer Oliver (s...@spen-soft.co.uk) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/167 -- gerrit commit b6d2fa6a9f0892500b5c632dccc46f0f24cb6031 Author: Spencer Oliver Date: Thu Nov 3 23:33:37 2011 +

Re: [Openocd-development] pointers modification within functions

2011-11-03 Thread Tomek CEDRO
On Thu, Nov 3, 2011 at 10:43 PM, Tomek CEDRO wrote: > I have to perform execute queue on read operation. Luckily it only requires minor change of SWD_OPERATION_ENQUEUE into SWD_OPERATION_EXECUTE parameter :-P :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info __

Re: [Openocd-development] pointers modification within functions

2011-11-03 Thread Tomek CEDRO
With current design of OpenOCD it is impossible to queue read operations as results are returned using single pointers, the read operation needs to be performed inside of a function that will return a result, otherwise we can only get a value given at queue time but not a flush time. LibSWD can qu

Re: [Openocd-development] pointers modification within functions

2011-11-03 Thread Tomek CEDRO
Hmm, things seems to be more suble :-) I have tried a trick with using int *a; fun(int* &a); and it indeed works but the address is trimmed no matter what type "a" is (int*, long*, void*) and this causes problems. 21 int a1=0, a2=0; (gdb) s 22 double *a3; (gdb) 23 a3=NULL; (gdb)

[Openocd-development] openocd patch: 4d060d2 avr32_regs: add missing error propagation

2011-11-03 Thread gerrit
This is an automated email from Gerrit. ?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/166 -- gerrit commit 4d060d29f5cbafd6703bd36d3ce096d19bdc3a9e Author: Øyvind Harboe Date: Thu Nov 3 21:51:31 2011 +0100

[Openocd-development] openocd patch: 4f112d1 etm: fix warning by removing assignment that is immediately overwritten

2011-11-03 Thread gerrit
This is an automated email from Gerrit. ?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/165 -- gerrit commit 4f112d1b8d93eed59fa5e41b4937475cb52b05ac Author: Øyvind Harboe Date: Thu Nov 3 21:49:59 2011 +0100

[Openocd-development] openocd patch: 1307ca4 rtos: fix warning by checking post condition

2011-11-03 Thread gerrit
This is an automated email from Gerrit. ?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/164 -- gerrit commit 1307ca49a71a8977e76818ecd062498f608acd51 Author: Øyvind Harboe Date: Thu Nov 3 21:48:04 2011 +0100

[Openocd-development] openocd patch: 8a04e8e cortex_m: initialize unused CPU variables to 0 for poll info output

2011-11-03 Thread gerrit
This is an automated email from Gerrit. ?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/163 -- gerrit commit 8a04e8e3c997a8ce0808af0ddf3f4702e16e3cd7 Author: Øyvind Harboe Date: Thu Nov 3 21:45:38 2011 +0100

Re: [Openocd-development] Amontec - Out of business?

2011-11-03 Thread Ananda Regmi
I was hoping I was done with Amontec Saga but unfortunately I have one more thing to report. Today, my boss informed me that that thing that I had ordered from Europe that cost 30 Euro, cost us $130.00 in shipping. After I placed my order only thing that was asked to me was my UPS account info. T

[Openocd-development] openocd patch: b311a1a cfi: fix gaffe in fixing warnings

2011-11-03 Thread gerrit
This is an automated email from Gerrit. ?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/162 -- gerrit commit b311a1a7920d24b7436be3e390b8139700d3ba18 Author: Øyvind Harboe Date: Thu Nov 3 21:43:31 2011 +0100

[Openocd-development] openocd patch: 6a59e2b flash: update luminary device table

2011-11-03 Thread gerrit
This is an automated email from Gerrit. Spencer Oliver (s...@spen-soft.co.uk) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/161 -- gerrit commit 6a59e2bbe6089b74828bfeab681ae84ccc70ced2 Author: Spencer Oliver Date: Thu Nov 3 20:42:50 2011 +

[Openocd-development] openocd patch: 4a9cbe6 at91sam9: fix broken error propagation

2011-11-03 Thread gerrit
This is an automated email from Gerrit. ?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/159 -- gerrit commit 4a9cbe6c424a6b40f04a6657c71914cd851f500c Author: Øyvind Harboe Date: Thu Nov 3 21:34:00 2011 +0100

[Openocd-development] openocd patch: 68f4516 at91sam3: fix warnings

2011-11-03 Thread gerrit
This is an automated email from Gerrit. ?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/160 -- gerrit commit 68f4516e3aa75a29ed3c16a812e4219209f40fab Author: Øyvind Harboe Date: Thu Nov 3 21:39:23 2011 +0100

Re: [Openocd-development] pointers modification within functions

2011-11-03 Thread Freddie Chopin
On 2011-11-03 17:38, Tomek CEDRO wrote: The problem is that C (or GCC) can only change variable out of function using "*variable=value" construct. That's how C works - everything is passed to the function by value, so when you pass a pointer, you just pass a value which is an address. 4\/3!!

Re: [Openocd-development] pointers modification within functions

2011-11-03 Thread Tomek CEDRO
Uhm, I have found a solution :-) The problem is that C (or GCC) can only change variable out of function using "*variable=value" construct. This "*variable" syntax is essential. This is the only possible way of using pointer to pass information outside function. But this way it is only possible to

Re: [Openocd-development] Still J-Link problems

2011-11-03 Thread Vaclav Peroutka
> 4.35h is a beta version, probably you can try the new release version > which is 4.36g. > http://www.segger.com/jlink-software.html > > Or you can try to the old version to get OpenOCD to work again. > http://www.segger.com/j-link-older-versions.html In the meantime I tried versions 4.34, 4.14

Re: [Openocd-development] Can't halt Calao USB A9263 with OpenOCD 0.5.0

2011-11-03 Thread freddie_chopin
); Sorry, no more ideas from my side... Maybe someone else will be able to help you. Generally the code you are running on the chip can be somehow blocking JTAG access so, if you can, try halting chip with empty flash. I think (I'm not sure) that issuing "poll" command from telnet performs the

Re: [Openocd-development] Can't halt Calao USB A9263 with OpenOCD 0.5.0

2011-11-03 Thread Thomas Petazzoni
Le Thu, 03 Nov 2011 11:21:33 +0100, freddie_chopin a écrit : > Notice that first you set srst_pulls_trst and then another config > file sets that back to "separate". Try adding the command to openocd > call: openocd -f ... -c "reset_config trst_and_srst srst_pulls_trst" Ah, right. Unfortunately,

Re: [Openocd-development] include linux/scripts in OpenOCD project?

2011-11-03 Thread Spencer Oliver
On 2 November 2011 20:03, Øyvind Harboe wrote: > Should we? > i guess it makes sense, i will sort out and add a tools/scripts dir. Spen ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/

Re: [Openocd-development] Can't halt Calao USB A9263 with OpenOCD 0.5.0

2011-11-03 Thread freddie_chopin
W dniu 2011-11-03 11:08:39 użytkownik Thomas Petazzoni napisał: > > You may also try "reset_config srst_pulls_trst" or other > > configurations... > > Not better, unfortunately. Still the exact same behaviour. Here is my > interface file: > > none srst_pulls_trst > trst_and_srst separate srst_g

Re: [Openocd-development] Can't halt Calao USB A9263 with OpenOCD 0.5.0

2011-11-03 Thread Thomas Petazzoni
Hello, Le Thu, 03 Nov 2011 11:01:00 +0100, freddie_chopin a écrit : > What's the core speed of your chip? It's a AT91SAM9263 at 180 Mhz. > Probably something high, so try high speed of JTAG - 1000 kHz (1MHz) > - 5kHz is really slow, "rclk 2" should give something like 2MHz > (6MHz / (2+1)), bu

Re: [Openocd-development] Can't halt Calao USB A9263 with OpenOCD 0.5.0

2011-11-03 Thread freddie_chopin
W dniu 2011-11-03 10:52:11 użytkownik Thomas Petazzoni napisał: > > 1. Try changing the speed of JTAG to be 1/8th of core speed. > > I have tried with adapter_khz 5 or jtag_rclk 2, and not better. Since > the JTAG is capable of finding the tap/device, doesn't that mean that > the communication i

Re: [Openocd-development] Can't halt Calao USB A9263 with OpenOCD 0.5.0

2011-11-03 Thread Thomas Petazzoni
Hello, Thanks for your feedback! Le Thu, 03 Nov 2011 09:27:49 +0100, freddie_chopin a écrit : > 1. Try changing the speed of JTAG to be 1/8th of core speed. I have tried with adapter_khz 5 or jtag_rclk 2, and not better. Since the JTAG is capable of finding the tap/device, doesn't that mean th

Re: [Openocd-development] Still J-Link problems

2011-11-03 Thread Xiaofan Chen
On Thu, Nov 3, 2011 at 4:42 PM, Vaclav Peroutka wrote: > I updated FW, but it was rolled back to some older version from Sep 2008. > Whenever I run JLink commander, I am getting the message about old FW. I run > updater: > SEGGER J-Link Commander V4.35h ('?' for help) > Compiled Sep 27 2011 18:09

[Openocd-development] pandaboard with busblaster v2

2011-11-03 Thread Ramkumar Jayaraman
Hi, I am trying to get OpenOCD working with a Pandaboard. I m getting "Warn : Invalid ACK 0x6 in JTAG-DP transaction" followed by the "Polling target failed, GDB will be halted. Polling again in 6300ms". Machine : Fedora Linux Debugger : Busblaster v2 (v1.3.jtagkey) My config files are all stand

[Openocd-development] Still J-Link problems

2011-11-03 Thread Vaclav Peroutka
Hello all, I noticed that people use new firmware because of problems. I got FW 4.35h and tried to update it. With really bad results. Before, OpenOCD wrote: Info : J-Link initialization started / target CPU reset initiated Info : J-Link ARM V8 compiled Dec 1 2009 11:42:48 Info : JLink caps 0xb

Re: [Openocd-development] Can't halt Calao USB A9263 with OpenOCD 0.5.0

2011-11-03 Thread freddie_chopin
1. Try changing the speed of JTAG to be 1/8th of core speed. 2. Try doing "reset halt" from the telnet first. 3. Make sure your board has the same reset configuration as you pass to OpenOCD - separate lines of TRST and SRST. 4\/3!! ___ Openocd-developme

Re: [Openocd-development] Can't halt Calao USB A9263 with OpenOCD 0.5.0

2011-11-03 Thread Thomas Petazzoni
Hello, Any idea on this JTAG problem on Calao USB A9263 ? Thanks! Thomas Le Mon, 31 Oct 2011 23:52:18 +0100, Thomas Petazzoni a écrit : > Hello, > > (Resending to the list @berlios.de since the list > @lists.sourceforge.net doesn't seem to work) > > I am trying to use OpenOCD 0.5.0 on the C