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 thomas.petazz...@free-electrons.com a écrit : Hello, (Resending to the list @berlios.de since the list @lists.sourceforge.net doesn't seem to work) I am trying

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-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

[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

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

2011-11-03 Thread Xiaofan Chen
On Thu, Nov 3, 2011 at 4:42 PM, Vaclav Peroutka vacla...@seznam.cz 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

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 freddie_cho...@op.pl 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,

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 freddie_cho...@op.pl 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

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 thomas.petazz...@free-electrons.com 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

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

2011-11-03 Thread Spencer Oliver
On 2 November 2011 20:03, Øyvind Harboe oyvind.har...@zylin.com 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

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 freddie_cho...@op.pl 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.

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] 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 and

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] 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!!

[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 oyvind.har...@zylin.com Date: Thu Nov 3

[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 oyvind.har...@zylin.com Date: Thu Nov 3

[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 s...@spen-soft.co.uk Date: Thu Nov 3

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.

[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 oyvind.har...@zylin.com Date: Thu Nov 3

[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 oyvind.har...@zylin.com Date: Thu Nov 3

[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 oyvind.har...@zylin.com Date: Thu Nov 3

[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 oyvind.har...@zylin.com Date: Thu Nov 3

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)

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

Re: [Openocd-development] pointers modification within functions

2011-11-03 Thread Tomek CEDRO
On Thu, Nov 3, 2011 at 10:43 PM, Tomek CEDRO tomek.ce...@gmail.com 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

[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 s...@spen-soft.co.uk Date: Thu Nov 3