Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
Hi, Spencer Oliver wrote: > On 10 January 2012 15:11, Jonathan Dumaresq > wrote: >> Hi all, >> >> Is there a way to use an stlink with swd right now with openocd ? I >> will use the stm32 M0 devices >> > > Only the stlink-v2 is supported at the moment - swd mode is used by > default. > With

[OpenOCD-devel] [PATCH]: 5c84ffb optimize: replace while loop by memcpy

2012-01-10 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/364 -- gerrit commit 5c84ffb81f6ec64e17b9117c5e36197ba0f9c27f Author: Mathias K Date: Tue Jan 10 22:28:07 2012 +0100 optimiz

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
Hi, Spencer Oliver wrote: > On 10 January 2012 15:46, Jonathan Dumaresq > wrote: >> Hi, >> Spencer Oliver wrote: > > yes - however as it has only just been merged so there may be a few > issues to resolve. What driver should I use on windows ? Libusb or the stlink driver ? I tried with

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
Hi Mathias, Mathias K. wrote: > Looks good. > > $ git branch -a > * master > remotes/origin/HEAD -> origin/master > remotes/origin/master Good > > With that command you see the latest commit from origin: > > $ git show origin > commit 80df024c806014885ce1a6524ba05352651c0ac3 > Author: Spe

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Mathias K.
Looks good. $ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master With that command you see the latest commit from origin: $ git show origin commit 80df024c806014885ce1a6524ba05352651c0ac3 Author: Spencer Oliver Date: Wed Jan 4 22:55:49 2012 + You can a

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
Hi, > $ git pull -v --rebase origin That's worked. But I don't have the latest changes. $ git branch -a * master stm32_cfi remotes/origin/HEAD -> origin/master remotes/origin/master Is this corect ? Git pull tell my that i'm already up to date. It look like i'm not on the head, but a c

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Mathias K.
Hello, i got the same error: $ git pull --rebase origin/master fatal: 'origin/master' does not appear to be a git repository fatal: The remote end hung up unexpectedly The only things that work are: $ git pull -v --rebase origin >From http://repo.or.cz/r/openocd = [up to date] master

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
HI, I got some error when I try to use the stlinkF4 discovery board. I look into the source of stlink_interface.c and I see that in my openocd tree, I don't have the same file that it's on the gitweb interface. I try this Cimeq@windowsxppro /home/openocd $ git pull --rebase origin/master And I

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread CeDeROM
On Tue, Jan 10, 2012 at 3:11 PM, Jonathan Dumaresq wrote: > Is there a way to use an stlink with swd right now with openocd ? I > will use the stm32 M0 devices You can use local fork for swd implementation it will detect IDCODE so you can test if the cable works but the fork is based on code from

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
Hi Spencer Oliver wrote: > On 10 January 2012 15:46, Jonathan Dumaresq > wrote: >> Hi, >> Spencer Oliver wrote: Do you know if the discovery bord for the F4 have an stlink-v2 or the original stlink ? >>> >>> F4 discovery has stlink-v2 >> >> Ok, So I can use this one as a

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread David Riley
On Jan 10, 2012, at 10:42 AM, Jonathan Dumaresq wrote: > Do you know if the discovery bord for the F4 have an stlink-v2 or the > original stlink ? All of the modern boards have the v2. The v1 was an ugly hack which used mass storage protocol as a transport; you'll know if you have a v1 because

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Spencer Oliver
On 10 January 2012 15:46, Jonathan Dumaresq wrote: > Hi, > >>> Spencer Oliver wrote: >>> Do you know if the discovery bord for the F4 have an stlink-v2 or >>> the original stlink ? >>> >> >> F4 discovery has stlink-v2 > > Ok, So I can use this one as a debugger. This is now supported in openocd in

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
Hi, >> Spencer Oliver wrote: >> Do you know if the discovery bord for the F4 have an stlink-v2 or >> the original stlink ? >> > > F4 discovery has stlink-v2 Ok, So I can use this one as a debugger. This is now supported in openocd in swd mode? Jonathan

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Spencer Oliver
On 10 January 2012 15:42, Jonathan Dumaresq wrote: > Hi Spencer, > > Spencer Oliver wrote: >> >> Only the stlink-v2 is supported at the moment - swd mode is used by >> default. >> With regards to using with M0 - not tested ST, are not great at >> supporting Open Source projects. > > Do you know if

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
Hi Spencer, Spencer Oliver wrote: > > Only the stlink-v2 is supported at the moment - swd mode is used by > default. > With regards to using with M0 - not tested ST, are not great at > supporting Open Source projects. Do you know if the discovery bord for the F4 have an stlink-v2 or the origin

Re: [OpenOCD-devel] Swd on stlink

2012-01-10 Thread Spencer Oliver
On 10 January 2012 15:11, Jonathan Dumaresq wrote: > Hi all, > > Is there a way to use an stlink with swd right now with openocd ? I > will use the stm32 M0 devices > Only the stlink-v2 is supported at the moment - swd mode is used by default. With regards to using with M0 - not tested ST, are no

[OpenOCD-devel] Swd on stlink

2012-01-10 Thread Jonathan Dumaresq
Hi all, Is there a way to use an stlink with swd right now with openocd ? I will use the stm32 M0 devices Regards Jonathan -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app developme

[OpenOCD-devel] [PATCH]: 0bc901b flash: pre-check flash unlock for stm32f2x

2012-01-10 Thread gerrit
This is an automated email from Gerrit. Bruno FLEURETTE ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/362 -- gerrit commit 0bc901bbd1c4a9e33517eee4c86b0a7b0db743bc Author: Bruno FLEURETTE Date: Tue Jan 10 16:21:00 2012 +01

[OpenOCD-devel] [PATCH]: dc49a3e flash: pre-check flash unlock for stm32f2x

2012-01-10 Thread gerrit
This is an automated email from Gerrit. Bruno FLEURETTE ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/363 -- gerrit commit dc49a3e0ed702dde71b7127c1a3270df8b9aeed5 Author: Bruno FLEURETTE Date: Tue Jan 10 16:24:06 2012 +01

[OpenOCD-devel] ZY1000 licensing options

2012-01-10 Thread Øyvind Harboe
There were some questions w.r.t. building a hardware unit where OpenOCD could run on the unit rather than on the developer PC and then talking to this unit via TCP/IP. Anyone interested in doing this would probably be interested in checking with Ultimate Solutions and their licensing options for t

Re: [OpenOCD-devel] Tegra2

2012-01-10 Thread Damjan Marion
Sure, I did that. But when I create cortex_a8 target it fails. I suspect that this TAP is JRC, lie ICEPICK on TI/OMAP. Regards, Damjan On Jan 10, 2012, at 2:13 PM, Mathias K. wrote: > Hello, > > the id are fine but you should edit your configuration and not use the auto > tap thing. > >

Re: [OpenOCD-devel] TI DM8148, Cortex A8 not halting (OpenOCD 0.5.0 and 0.6.0-dev-00297-g115f538)

2012-01-10 Thread Kyle Manna
On 01/10/2012 03:38 AM, Delio Brignoli wrote: > Hi Kyle, > > No I haven't tried the XDS100v2 yet because the issue does not seem to be > related to the debugger HW. As you say, the issue appears to be lack of > documentation. My immediate need for this is U-Boot debugging and would like > to avo

Re: [OpenOCD-devel] Patch for stm32f2x nor flash driver

2012-01-10 Thread Øyvind Harboe
Please submit it to Gerrit for review. Instructions are in the HACKING file. Thanks! -- Øyvind Harboe - Can Zylin Consulting help on your project? US toll free 1-866-980-3434 http://www.zylin.com/ -- Write once. Port to

Re: [OpenOCD-devel] Tegra2

2012-01-10 Thread Mathias K.
Hello, the id are fine but you should edit your configuration and not use the auto tap thing. Regards, Mathias On 10.01.2012 10:25, Damjan Marion wrote: > > > Hi, > > I just hooked up openocd on tegra2 device (TRIMSLICE) and openocd founds only > one tap > which doesn't look like Cortex-A

Re: [OpenOCD-devel] Patch for stm32f2x nor flash driver

2012-01-10 Thread Bruno Fleurette
Hi Øyvind, Here you are the patch. Bruno -Original Message- From: Øyvind Harboe [mailto:[email protected]] Sent: mardi 10 janvier 2012 10:36 To: Bruno Fleurette Cc: [email protected] Subject: Re: [OpenOCD-devel] Patch for stm32f2x nor flash driver Hi, please subm

Re: [OpenOCD-devel] Patch for stm32f2x nor flash driver

2012-01-10 Thread Mathias K.
Hello, you are right, you have add the pre-check. Regards, Mathias On 10.01.2012 12:01, Bruno Fleurette wrote: > Hi Mathias, > > My tree was up to date and I think you didn't understand my fix. > I am talking about checking the FLASH_CR register BEFORE trying to unlock: > when the flash acce

Re: [OpenOCD-devel] Patch for stm32f2x nor flash driver

2012-01-10 Thread Bruno Fleurette
Hi Mathias, My tree was up to date and I think you didn't understand my fix. I am talking about checking the FLASH_CR register BEFORE trying to unlock: when the flash access is already unlocked and the stm32x_unlock_reg() function is called, it just fails... Regards, Bruno -Original Message-

Re: [OpenOCD-devel] Patch for stm32f2x nor flash driver

2012-01-10 Thread Mathias K.
Hello, you should rebase your tree to get the latest changes. http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=commit;h=c132304ee9fe43c3078caaf64ae0ee2f3a9542fe Regards, Mathias On 10.01.2012 10:12, Bruno Fleurette wrote: > (plain text version) > Hi, > > I was sometimes

Re: [OpenOCD-devel] TI DM8148, Cortex A8 not halting (OpenOCD 0.5.0 and 0.6.0-dev-00297-g115f538)

2012-01-10 Thread Delio Brignoli
Hi Kyle, No I haven't tried the XDS100v2 yet because the issue does not seem to be related to the debugger HW. As you say, the issue appears to be lack of documentation. My immediate need for this is U-Boot debugging and would like to avoid using CCSv5 if possible. Did you use CCSv5 to debug U-

Re: [OpenOCD-devel] Patch for stm32f2x nor flash driver

2012-01-10 Thread Øyvind Harboe
Hi, please submit this patch to Gerrit for review. Read the HACKING document for details on how to do this. Thanks! -- Øyvind Harboe - Can Zylin Consulting help on your project? US toll free 1-866-980-3434 http://www.zylin.com/ -

[OpenOCD-devel] Tegra2

2012-01-10 Thread Damjan Marion
Hi, I just hooked up openocd on tegra2 device (TRIMSLICE) and openocd founds only one tap which doesn't look like Cortex-A9 CPU. Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -expected-id 0x320173d7 ..." Warn : AUTO auto0.tap - use "... -irlen 2" > scan_chain TapName Enab

[OpenOCD-devel] Patch for stm32f2x nor flash driver

2012-01-10 Thread Bruno Fleurette
(plain text version) Hi, I was sometimes faced to the following errors when I was trying to erase or write a fw to the my STM32 flash: Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x2352, MEM_AP_TAR 0x40023c08 Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x2352, MEM_AP_TAR 0x40023c08 A