[Openocd-development] usb_bulk_read failed on j-link adapter with STM32

2011-04-10 Thread Damjan Marion
Hi, I'm trying to use j-link adapter with latest openocd code from git master branch on STM32F103 device and it fails with usb_bulk_read failed. On the same machine when I use original segger tools in vmware WinXP, it works ok. Any idea how to fix this? Thanks, Damjan Open On-Chip Debugger

Re: [Openocd-development] usb_bulk_read failed on j-link adapter with STM32

2011-04-10 Thread Damjan Marion
On Apr 10, 2011, at 2:47 PM, Xiaofan Chen wrote: > On Sun, Apr 10, 2011 at 7:24 PM, Damjan Marion > wrote: >> I'm trying to use j-link adapter with latest openocd code from git master >> branch on STM32F103 device and it fails with usb_bulk_read failed. >> O

[Openocd-development] [PATCH] buspirate: fix building on some OSes

2011-04-21 Thread Damjan Marion
--- src/jtag/drivers/buspirate.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/jtag/drivers/buspirate.c b/src/jtag/drivers/buspirate.c index 7813f33..a360d23 100644 --- a/src/jtag/drivers/buspirate.c +++ b/src/jtag/drivers/buspirate.c @@ -55,6 +55,11 @@ static vo

Re: [Openocd-development] [PATCH] buspirate: fix building on some OSes

2011-04-21 Thread Damjan Marion
On Apr 21, 2011, at 10:23 PM, Peter Stuge wrote: > Damjan Marion wrote: >> +/* Not all OSes have this speed defined */ >> +#if !defined(B100) >> +#define B100 0010010 >> +#endif > > The real fix of course being to make the device not pretend that it&#x

[Openocd-development] Overlapping NAND Flash IDs

2011-05-23 Thread Damjan Marion
Hi, I just realized that my NAND flash is not recognized correctly because there are overlapping IDs in src/flash/nand/core.c Flash is Samsung K9GAG08U0E and it uses device code 0xd5. core.c have 2 entries: {"NAND 4MiB 3.3V 8-bit",0xd5, 512, 4, 0x2000, 0}, {"NAND 2GiB

Re: [Openocd-development] Overlapping NAND Flash IDs

2011-05-23 Thread Damjan Marion
On May 23, 2011, at 11:42 AM, Øyvind Harboe wrote: >> Is there any plans to improve flash detection (i.e. detecting on >> vendor,device pairs)? > > Please see if you can't write up a patch? > > Doesn't sound awfully hard to implement. Yes, I can write a patch. I think that we should change de

[Openocd-development] [PATCH 1/2] Reorganize NAND flash table

2011-05-23 Thread Damjan Marion
- added manufacturer field - name moved to the end for better text alignment --- src/flash/nand/core.c | 154 + src/flash/nand/core.h |3 +- 2 files changed, 81 insertions(+), 76 deletions(-) diff --git a/src/flash/nand/core.c b/src/flash/nand/

[Openocd-development] [PATCH 2/2] Improve NAND flash detection

2011-05-23 Thread Damjan Marion
Detect based on both manufacturer id and chip id if manufacturer id is defined in table --- src/flash/nand/core.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/flash/nand/core.c b/src/flash/nand/core.c index a9fc3cd..c4d9248 100644 --- a/src/flash/nand/core.c +++

Re: [Openocd-development] [PATCH 1/2] Reorganize NAND flash table

2011-05-24 Thread Damjan Marion
I need to make small changes in flash definitions for Samsung chips so I will resend patches to the list. Damjan On May 23, 2011, at 2:25 PM, Øyvind Harboe wrote: > Any objections to these patches? > > > > -- > Øyvind Harboe > > Can Zylin Consulting help on your project? > > US toll free

[Openocd-development] [PATCH 2/2] Improve NAND flash detection

2011-05-24 Thread Damjan Marion
Detect based on both manufacturer id and chip id if manufacturer id is defined in table --- src/flash/nand/core.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/flash/nand/core.c b/src/flash/nand/core.c index 4ab9436..03deabd 100644 --- a/src/flash/nand/core.c +++

[Openocd-development] [PATCH 1/2] Reorganize NAND flash table

2011-05-24 Thread Damjan Marion
- adds manufacturer field - name moved to the end for better text alignment - adds support for two Samsung NAND devices --- src/flash/nand/core.c | 154 + src/flash/nand/core.h |3 +- 2 files changed, 81 insertions(+), 76 deletions(-) diff --gi

[Openocd-development] [PATCH] Fixed values for Samung NAND chips

2011-05-28 Thread Damjan Marion
--- src/flash/nand/core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flash/nand/core.c b/src/flash/nand/core.c index c4d9248..03deabd 100644 --- a/src/flash/nand/core.c +++ b/src/flash/nand/core.c @@ -53,8 +53,8 @@ void nand_device_add(struct nand_device *c) s

[Openocd-development] [PATCH] SMDK6410 is not target, move file to board

2011-05-29 Thread Damjan Marion
--- tcl/board/smdk6410.cfg |9 + tcl/target/smdk6410.cfg |9 - 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 tcl/board/smdk6410.cfg delete mode 100644 tcl/target/smdk6410.cfg diff --git a/tcl/board/smdk6410.cfg b/tcl/board/smdk6410.cfg new file mod

[Openocd-development] [PATCH] Board definition for mini6410/tiny6410 (ARM1176)

2011-05-29 Thread Damjan Marion
The following mini6410/tiny6410 functions are available: init_6410 - initialize clock, timer, DRAM init_6410_flash - initializes NAND flash support install_6410_uboot - copies u-boot image into RAM and runs it --- tcl/board/mini6410.cfg | 112 1 fi

[Openocd-development] Flashing STM32 F2

2011-12-14 Thread Damjan Marion
Hi, I tried to flash STM32 F2 in the same way like i do on F1 devices and hit some issues: My 1st try was with "stm32f2x mass_erase 0" but seems that there is no subcommands registered. Help lists: stm32f2x stm32f2x flash command group (command valid any time) stm32f2x.c: static const