Re: [OpenOCD-devel] trigger tools/checkpatch.sh on push review

2012-01-20 Thread Spencer Oliver
On Jan 20, 2012 10:18 PM, "Mathias K." wrote: > > Hello, > > is there a way to trigger this script before the push review is executed? This > would make the life easier. > > Just execute manually: tools/checkpatch.sh Spen --

[OpenOCD-devel] trigger tools/checkpatch.sh on push review

2012-01-20 Thread Mathias K.
Hello, is there a way to trigger this script before the push review is executed? This would make the life easier. Thanks, Mathias -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online le

[OpenOCD-devel] [PATCH]: 5536e27 STLINK: Test device version (v1/v2) on usb transfers

2012-01-20 Thread gerrit
This is an automated email from Gerrit. Mathias K?ster ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/396 -- gerrit commit 5536e270db8e39a6b45a737a416dddf5863d01f8 Author: Mathias K Date: Fri Jan 20 23:02:27 2012 +0100 STLINK:

[OpenOCD-devel] [PATCH]: d2914e9 STLINK: verify the device version/vid/pid on open

2012-01-20 Thread gerrit
This is an automated email from Gerrit. Mathias K?ster ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/395 -- gerrit commit d2914e9a69066b79a1c5897f650b45ab23669c64 Author: Mathias K Date: Fri Jan 20 22:11:09 2012 +0100 STLINK:

[OpenOCD-devel] [PATCH]: 7fb0109 Add stlink jtag support

2012-01-20 Thread gerrit
This is an automated email from Gerrit. Mathias K?ster ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/394 -- gerrit commit 7fb0109960b4f86bcd6fa5dab7eb8ea1e77703b4 Author: Mathias K Date: Fri Jan 20 20:45:52 2012 +0100 Add stl

[OpenOCD-devel] [PATCH]: df207fa swd transport renamed and jtag+swim transport added

2012-01-20 Thread gerrit
This is an automated email from Gerrit. Mathias K?ster ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/393 -- gerrit commit df207fa39c06305fc4481a339ac046fa913d998d Author: Mathias K Date: Fri Jan 20 20:37:38 2012 +0100 swd tra

Re: [OpenOCD-devel] stlink swim interface

2012-01-20 Thread CeDeROM
On Fri, Jan 20, 2012 at 7:38 PM, CeDeROM wrote: > On Thu, Jan 19, 2012 at 11:23 PM, Mathias K. wrote: >> You are right, but the jtag and swd are registering itself to the transport >> class without any >> interface. How to address it in the configuration? To be more specific on your question -

Re: [OpenOCD-devel] stlink swim interface

2012-01-20 Thread CeDeROM
On Thu, Jan 19, 2012 at 11:23 PM, Mathias K. wrote: > You are right, but the jtag and swd are registering itself to the transport > class without any > interface. How to address it in the configuration? Configuration file use "transport" command. Because OpenOCD did not have generic data transfe

Re: [OpenOCD-devel] GDB remote: Who is responsible for stack setup after load

2012-01-20 Thread Mathias K.
Hello, if you upload to flash the reset routine gets the sp from the vector table and jumps to the correct location. If you upload to ram the sp is not initialized because it is the first entry in the vector table. You should do it in your reset function. This is the same problem if you use a b

[OpenOCD-devel] GDB remote: Who is responsible for stack setup after load

2012-01-20 Thread Uwe Bonnes
Hello, when trying to run a STM32 programm compiled at 0x2000 (SRAM) after loading to ram with > arm-none-eabi-gdb owi_test.elf (gdb) target extended-remote localhost:4242 (gdb) load owi_test.elf (gdb) c I had all kind of strange effects until I realized that I need to setup the stack before

[OpenOCD-devel] [PATCH]: 9bea074 cfg: add missing Stellaris Blizzard info

2012-01-20 Thread gerrit
This is an automated email from Gerrit. Spencer Oliver ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/392 -- gerrit commit 9bea0742e91335118eb669c5cbb01c93f3692401 Author: Spencer Oliver Date: Fri Jan 20 14:35:10 2012 +

Re: [OpenOCD-devel] Help needed to modify the stm32f1x flash helper

2012-01-20 Thread Jonathan Dumaresq
Hi, freddie_chopin wrote: > W dniu 2012-01-20 14:38:37 użytkownik Jonathan Dumaresq > napisał: >> The 2 thumb mode not supported I probably can try to modify it to use >> more generic instruction. I try to find why the compile error with >> >> cannot honor width suffix -- `ldrh r6,[r5],#2' >>

Re: [OpenOCD-devel] Help needed to modify the stm32f1x flash helper

2012-01-20 Thread freddie_chopin
W dniu 2012-01-20 14:38:37 użytkownik Jonathan Dumaresq napisał: > The 2 thumb mode not supported I probably can try to modify it to use more > generic instruction. I try to find why the compile error with > > cannot honor width suffix -- `ldrh r6,[r5],#2' > > I have no idea why i get this err

[OpenOCD-devel] Help needed to modify the stm32f1x flash helper

2012-01-20 Thread Jonathan Dumaresq
HI, I try to compile the flash helper from the stm32f1x to support the armv6 arch too. I got some error when I try to assemble it. stm32f1x.S: Assembler messages: stm32f1x.S:51: Error: cannot honor width suffix -- `ldrh r6,[r5],#2' stm32f1x.S:52: Error: cannot honor width suffix -- `strh r6,[r

Re: [OpenOCD-devel] WG: openocd + Kinetis

2012-01-20 Thread Tomas Frydrych
On 20/01/12 11:17, thomas haas wrote: > PS: please could you add that script in the K60-target standard script Please don't do that; you don't necessarily want the target halted when attaching a gdb, and you can easily do this from your config file or the command line. Tomas ---

Re: [OpenOCD-devel] STM32W

2012-01-20 Thread Spencer Oliver
On 20 January 2012 11:37, Luke wrote: >>> Also if i remember correctly the flash controller is not exactly the >>> same as the stm32f1x, may be worth checking the em357 driver. >>> The em35x family are the same device as the stm32w. > > The chip I have is the STM32w108CB, which has 8kb of ram and

Re: [OpenOCD-devel] STM32W

2012-01-20 Thread Spencer Oliver
On 20 January 2012 10:55, Luke wrote: >> It has been a while but it should work. >> >> I would check your cfg first - seems to be a few errors. >> jtag newtap $_CHIPNAME bs -irlen 4 -ircapture 0x0e -irmask 0xf >> -expected-id $_BSTAPID10 \ >> remove the line continuation char and ircapture and irm

Re: [OpenOCD-devel] STM32W

2012-01-20 Thread Luke
>> Also if i remember correctly the flash controller is not exactly the >> same as the stm32f1x, may be worth checking the em357 driver. >> The em35x family are the same device as the stm32w. The chip I have is the STM32w108CB, which has 8kb of ram and 128kb of flash. The Ember 351 and 357 both h

Re: [OpenOCD-devel] WG: openocd + Kinetis

2012-01-20 Thread thomas haas
Hello,  I have added the script to the target and it is working !!! Download is working and debugging is working also.   Thanks for your help & have a nice week Schöne grüße aus Deutschland   PS: please could you add that script in the K60-target standard script (or docu ) . I think I will not be

Re: [OpenOCD-devel] STM32W

2012-01-20 Thread Luke
> It has been a while but it should work. > > I would check your cfg first - seems to be a few errors. > jtag newtap $_CHIPNAME bs -irlen 4 -ircapture 0x0e -irmask 0xf > -expected-id $_BSTAPID10 \ > remove the line continuation char and ircapture and irmask should not > be required, eg. > # Wireles

Re: [OpenOCD-devel] WG: openocd + Kinetis

2012-01-20 Thread Mathias K.
Hello, try this in your target configuration: $_TARGETNAME configure -event gdb-attach { echo "Halting target" halt } If gdb connect the target is halted. Regards, Mathias On 20.01.2012 11:20, thomas haas wrote: > > Hello, > thanks for that very quick reply! > > I use hardware simi

Re: [OpenOCD-devel] STM32W

2012-01-20 Thread Spencer Oliver
On 19 January 2012 23:42, Luke wrote: > I'm trying to use OpenOCD with an STM32W108B as part of the > STM32W108B-KEXT kit.  The boards are equipped with JTAG cables and I > have an Olimex ARM-USB-TINY-H cable. > > There was a Sparkfun forum post [0] and a couple of mailing list > messages about th

Re: [OpenOCD-devel] WG: openocd + Kinetis

2012-01-20 Thread Mathias K.
Hello, i use the kinetis kwikstick tcl/board/kwikstik.cfg and this device works. I have never used it with gdb. Can you start openocd with the -d parameter and check what happens? Regards, Mathias On 20.01.2012 09:07, thomas haas wrote: > > Hello OpenOcd-Team, > first of all thanks for that

Re: [OpenOCD-devel] WG: openocd + Kinetis

2012-01-20 Thread Tomas Frydrych
Hi, On 20/01/12 08:07, thomas haas wrote: > I have a kinetis K60 tower also. I have connected the tower with the > jtagkey compatible hardware and started the debugger with the > tower-board-configuration. The debugger is starting correctly (ID is > recognized , watchpoints and breakpoints are cor

[OpenOCD-devel] WG: openocd + Kinetis

2012-01-20 Thread thomas haas
Hello OpenOcd-Team, first of all thanks for that great tool that is working perfectly with Stellaris Ti. I am using latest source from git. The built is done for windows with original latest ftdi-driver. I am using a amontec-jtagkey kompatibel hardware, and ICDI from TI also. The toolchain is