Re: [Openocd-development] OpenOCD Cortex-A8 / S5PC100 support...?

2010-12-03 Thread David Brownell
--- On Fri, 12/3/10, Austin, Alex wrote: > I imagine the problem is voltage, > actually. The OMAP3530 and other similar devices run their > JTAG ports at 1.8V, True, and important. Thought I'm not sure quite what you mean by "Similar". Don't the Sitara chips run at 3V3 not 1V8? And I though

Re: [Openocd-development] OpenOCD Cortex-A8 / S5PC100 support...?

2010-12-03 Thread Dirk Behme
On 04.12.2010 07:12, Austin, Alex wrote: I imagine the problem is voltage, actually. The OMAP3530 and other similar devices run their JTAG ports at 1.8V, and the ARM-USB-OCD doesn't like working below 3V. Therefore the Flyswatter http://www.tincantools.com/product.php?productid=16134&cat=0&p

Re: [Openocd-development] [PATCH 1/2] add " cortex m3 reset config= = ..." to stm32.cfg

2010-12-03 Thread David Brownell
--- On Fri, 12/3/10, Spencer Oliver wrote: > Date: Friday, December 3, 2010, 2:34 PM > On 03/12/2010 17:24, David Brownell > wrote: > > > > > > --- On Fri, 12/3/10, Spencer Oliver  > wrote: > Sorry i am slightly confused this patch as such has nothing to do with > the standard reset_config.

Re: [Openocd-development] OpenOCD Cortex-A8 / S5PC100 support...?

2010-12-03 Thread Austin, Alex
I imagine the problem is voltage, actually. The OMAP3530 and other similar devices run their JTAG ports at 1.8V, and the ARM-USB-OCD doesn't like working below 3V. From: openocd-development-boun...@lists.berlios.de [openocd-development-boun...@lists.berli

[Openocd-development] multiple STM32 chips in JTAG daisy chain

2010-12-03 Thread Eric Smith
If I have a bunch (say 65) of STM32 chips in a daisy chain, will it be difficult to use OpenOCD to program them? Ideally I'd like to program the first one from one object file, and all of the remaining ones from a second object file. Does anyone have a sample configuration file showing how to

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Rolf Meeser
Hi Freddie, On 12/03/2010 11:11 PM, Freddie Chopin wrote: How can this be unreliable? LPC23xx/LPC24xx after reset use 4MHz internal clock. Doing "reset halt" sets that clock and prevents any code from changing that (let's not talk about broken cases, because a broken case can be found everywhe

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Michael Schwingen
On 12/03/2010 11:11 PM, Freddie Chopin wrote: > How can this be unreliable? LPC23xx/LPC24xx after reset use 4MHz > internal clock. Doing "reset halt" sets that clock and prevents any > code from changing that (let's not talk about broken cases, because a > broken case can be found everywhere), so w

Re: [Openocd-development] [PATCH 1/2] add " cortex m3 reset config= = ..." to stm32.cfg

2010-12-03 Thread Freddie Chopin
On 2010-12-03 23:29, Spencer Oliver wrote: On 03/12/2010 19:13, Freddie Chopin wrote: On 2010-12-03 12:49, Spencer Oliver wrote: On 02/12/2010 13:15, Spencer Oliver wrote: How about something like this: http://repo.or.cz/w/openocd/ntfreak.git/shortlog/refs/heads/stm32reset No objections to

Re: [Openocd-development] [PATCH 1/2] add " cortex m3 reset config= = ..." to stm32.cfg

2010-12-03 Thread Spencer Oliver
On 03/12/2010 17:24, David Brownell wrote: --- On Fri, 12/3/10, Spencer Oliver wrote: On 02/12/2010 12:42, freddie_cho...@op.pl wrote: "Spencer Oliver" napisał(a): As we know the current behaviour of cortex_m3 reset_config is to override the std 'reset_config' setting - I've lost tra

Re: [Openocd-development] [PATCH 1/2] add " cortex m3 reset config= = ..." to stm32.cfg

2010-12-03 Thread Spencer Oliver
On 03/12/2010 19:13, Freddie Chopin wrote: On 2010-12-03 12:49, Spencer Oliver wrote: On 02/12/2010 13:15, Spencer Oliver wrote: How about something like this: http://repo.or.cz/w/openocd/ntfreak.git/shortlog/refs/heads/stm32reset No objections to this then i will commit later today. If I

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Freddie Chopin
On 2010-12-03 22:42, Michael Schwingen wrote: On 12/03/2010 10:06 PM, Freddie Chopin wrote: On 2010-12-03 21:39, Rolf Meeser wrote: The clock parameter is vital for correct and reliable flash programming. It must be possible for the user to select the frequency that he is using. I don't know h

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Michael Schwingen
On 12/03/2010 10:06 PM, Freddie Chopin wrote: > On 2010-12-03 21:39, Rolf Meeser wrote: >> The clock parameter is vital for correct and reliable flash programming. >> It must be possible for the user to select the frequency that he is >> using. > I don't know how about you, but me (and 99% of "norm

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Michael Schwingen
On 12/03/2010 10:12 PM, Freddie Chopin wrote: > > Crazy idea nr 2 - why not set max frequency - this way this pulse will > always be long enough (I don't see any reason for problems with longer > pulse) - maybe this way this parameter would not be required too? I don't know about the flash in the L

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Freddie Chopin
On 2010-12-03 21:39, Rolf Meeser wrote: If for instance the flash is empty, the device will enter ISP mode automatically. It will activate the PLL, and from then on run with 14.748 MHz. When in this situation you program the flash with the clock parameter set to 4 MHz, the programming pulse will

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Freddie Chopin
On 2010-12-03 21:39, Rolf Meeser wrote: On 12/03/2010 08:09 PM, Freddie Chopin wrote: First of all, the chip frequency after reset actually is 4MHz due to internal RC oscillator, so this "default frequency" assumption seems pretty correct (actually it was probably me who added that script to Ope

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Rolf Meeser
Hi Freddie, On 12/03/2010 08:09 PM, Freddie Chopin wrote: First of all, the chip frequency after reset actually is 4MHz due to internal RC oscillator, so this "default frequency" assumption seems pretty correct (actually it was probably me who added that script to OpenOCD). Incorrect. Yes, the

Re: [Openocd-development] [PATCH 1/2] add " cortex m3 reset config= = ..." to stm32.cfg

2010-12-03 Thread Freddie Chopin
On 2010-12-03 12:49, Spencer Oliver wrote: On 02/12/2010 13:15, Spencer Oliver wrote: How about something like this: http://repo.or.cz/w/openocd/ntfreak.git/shortlog/refs/heads/stm32reset No objections to this then i will commit later today. If I understand your path correctly - it removes

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Freddie Chopin
On 2010-12-03 14:31, Rolf Meeser wrote: This patch allows a board script to specify the CPU clock of the LPC2478 target. The clock frequency used to be fixed to 4 MHz. However, there is no default frequency for this CPU. You mustn't assume prior knowledge of the clock frequency, but rather dem

[Openocd-development] OpenOCD Cortex-A8 / S5PC100 support...?

2010-12-03 Thread Nick Pelling
Hi everyone, I've just plugged my trusty old Olimex ARM-USB-OCD (the Swiss Army Knife of JTAG debuggers) into my shiny new S5PC100-based board and... I'm struggling to see how to get it working even slightly. Has anyone got anywhere with the s5pc100 or other CoreSight-based Cortex A8s (apart

Re: [Openocd-development] [PATCH 1/2] add " cortex m3 reset config= = ..." to stm32.cfg

2010-12-03 Thread David Brownell
--- On Fri, 12/3/10, Spencer Oliver wrote: > > On 02/12/2010 12:42, freddie_cho...@op.pl > wrote: > >> "Spencer Oliver" > napisał(a): > >> > As we know the current behaviour of cortex_m3 > reset_config is to > >> > override the std 'reset_config' setting - I've lost track of the discussion her

Re: [Openocd-development] Need help to create config files for a currently unsupported board - Logic 35x Development Kit (aka LogicPD OMAP3530 SOM LV)

2010-12-03 Thread Peter Stuge
Gabi Voiculescu wrote: > Do I actually need a new config file for the Logic 35x development board? Quite possibly not. I have just added the CPU and adapter source/find lines to openocd.cfg in some projects of mine. > The only difference is the fact this board uses a 20 pin ARM JTAG > connector

Re: [Openocd-development] Need help to create config files for a currently unsupported board - Logic 35x Development Kit (aka LogicPD OMAP3530 SOM LV)

2010-12-03 Thread Gabi Voiculescu
Do I actually need a new config file for the Logic 35x development board? The CPU is the same OMAP3530. The JTAG header has 1.8V supply. The only difference is the fact this board uses a 20 pin ARM JTAG connector instead of the Ti-14 JTAG connector. As far as I see, this different header only

Re: [Openocd-development] Issue connecting JTAGKEY2 to NETX500 based board

2010-12-03 Thread Laurent Gauch
it's embarrassing to see how long it took to explain my problem in a message and how short you took to answer, but it's so. A "jtag_khz 4000" in my target script solved the problem and the TAP id now is effectively the same reported in netx500.cfg. Thank you a lot Massimo 2010/12/3 Laurent Gauc

Re: [Openocd-development] Issue connecting JTAGKEY2 to NETX500 based board

2010-12-03 Thread giuseppe massimo bertani
It's embarrassing to see how long it took to explain my problem in a message and how short you took to answer, but it's so. A "jtag_khz 4000" in my target script solved the problem and the TAP id now is effectively the same reported in netx500.cfg. Thank you a lot Massimo 2010/12/3 Laurent Gauch

Re: [Openocd-development] Issue connecting JTAGKEY2 to NETX500 based board

2010-12-03 Thread Laurent Gauch
Hello, I have built and installed openocd-0.4 in a cygwin environment, enabling the FTD2XX driver support. I'd like to connect my jtagkey2 dongle to a NETX500 board. Notice that it's not the NXSB100 board reported by Martin Kaul one year ago but it's an application board containing, besides

[Openocd-development] Issue connecting JTAGKEY2 to NETX500 based board

2010-12-03 Thread giuseppe massimo bertani
Hello, I have built and installed openocd-0.4 in a cygwin environment, enabling the FTD2XX driver support. I'd like to connect my jtagkey2 dongle to a NETX500 board. Notice that it's not the NXSB100 board reported by Martin Kaul one year ago but it's an application board containing, besides netx

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Øyvind Harboe
Looks good to me. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-

[Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Rolf Meeser
Hi, This patch allows a board script to specify the CPU clock of the LPC2478 target. The clock frequency used to be fixed to 4 MHz. However, there is no default frequency for this CPU. You mustn't assume prior knowledge of the clock frequency, but rather demand that the user (board script) spec

Re: [Openocd-development] (patch) Hitex LPC2929 board script fix

2010-12-03 Thread Øyvind Harboe
Will merge. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-develo

Re: [Openocd-development] (patch) New board config for Embedded Artists LPC2478-32

2010-12-03 Thread Øyvind Harboe
Any objections to merging? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___

[Openocd-development] (patch) New board config for Embedded Artists LPC2478-32

2010-12-03 Thread Rolf Meeser
Hi, This is a new board support file for the Embedded Artists LPC2478 board with 32-bit SDRAM (V1.2) Regards, Rolf From fd162eff391213c4c3c4ee3194feecb52e442a16 Mon Sep 17 00:00:00 2001 From: Rolf Meeser Date: Fri, 3 Dec 2010 14:03:28 +0100 Subject: [PATCH 3/5] Add board config for Embedded Ar

Re: [Openocd-development] (patch) Fix sector layout for 512-KiB LPC2300/2400 parts

2010-12-03 Thread Øyvind Harboe
You're the expert. I'll merge after cooloff. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _

[Openocd-development] (patch) Hitex LPC2929 board script fix

2010-12-03 Thread Rolf Meeser
Hi, Simple patch to change the name of the external flash of the Hitex LPC2929 board. Avoids a name conflict with the on-chip flash. Regards, Rolf From b0a147ca2233f0b2a2972db36ef9d89c9ff96f0f Mon Sep 17 00:00:00 2001 From: Rolf Meeser Date: Fri, 3 Dec 2010 13:54:47 +0100 Subject: [PATCH 2/5]

[Openocd-development] (patch) Fix sector layout for 512-KiB LPC2300/2400 parts

2010-12-03 Thread Rolf Meeser
Hi, This patch fixes the sector layout of the 512-KiB LPC2000 parts that use the "lpc2000_v2" variant. This affects LPC2300/2400 devices. Older devices (LPC213x) had only 27 sectors available (500 KiB), but the LPC2300 have 28 sectors (504 KiB). Regards, Rolf From dc19097c753aa3185fe8111b4408

Re: [Openocd-development] [PATCH 1/2] add " cortex m3 reset config= = ..." to stm32.cfg

2010-12-03 Thread Spencer Oliver
On 02/12/2010 13:15, Spencer Oliver wrote: On 02/12/2010 12:42, freddie_cho...@op.pl wrote: "Spencer Oliver" napisał(a): > As we know the current behaviour of cortex_m3 reset_config is to > override the std 'reset_config' setting - this has undesired effects > for people who expect srst for exam