Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Re: Help: Rowley CrossStudio & Wiggler Problem

2004-04-19 by Michael Johnson

Message: 1
   Date: Mon, 19 Apr 2004 12:10:03 +1000
   From: "microbit" <microbit@...>
Subject: Re: Re: Help: Rowley CrossStudio & Wiggler Problem

Kris/HAO

As Jon suggested - try the 1.2 version. We've added a lot more
initialisation to the reset script to try to get something that
resembles a reset on the LPC2000.

Regards
Michael

  TargetInterface.setNSRST(0);
  TargetInterface.setNSRST(1);
  TargetInterface.delay(100);
  TargetInterface.trst();
  TargetInterface.setICEBreakerBreakpoint(0, 0x00000000, 0xFFFFFFFF,
0x00000000, 0xFFFFFFFF, 0x100, 0xF7);
  TargetInterface.waitForDebugState(1000);
  TargetInterface.getICEBreakerRegister(5); /* Clear out Debug Comms
Data */
  TargetInterface.pokeWord(0xE0000000, 0); /* Reset Watchdog */
  TargetInterface.pokeWord(0xE0028008, 0); /* Reset IODIR */
  TargetInterface.pokeWord(0xE002C000, 0); /* Reset PINSEL0 */
  TargetInterface.pokeWord(0xE01FC000, 0); /* Reset MAMCR */
  TargetInterface.pokeWord(0xE01FC080, 0);  /* Reset PLL */
  TargetInterface.pokeWord(0xE01FC08C, 0xAA);  /* Feed PLL */
  TargetInterface.pokeWord(0xE01FC08C, 0x55);  /* Feed PLL */
  TargetInterface.pokeWord(0xFFFFF014, 0xFFFFFFFF); /* Disable all
interrupts */
  TargetInterface.setICEBreakerBreakpoint(0, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x000, 0x00);


> I also have the same timeout errors with an Olimex LPC-P1 board and
> the Olimex JTAG cable using CrossStudio Eval.
>
> I tried with different PC configuration (PII and PIII, Win2K and XP,
> ECP and EPP parallel port) but I gave up and I am using the RAM
> configuration for the moment.
>
> HAO

Hi,

As I had mentioned before, if you're able to briefly assert P0.14 LOW
while you start the debug (ie. while loader.exe is programming), then
that
will solve the problem, I'm quite sure.
I have NO idea why this should be.
I've reported this erroneous condition to Rowley Asscs ages ago, but
they
weren't
able to reproduce the problem I think. I run on WIN98SE, so it's good to
see
that the good old "it's because you're running 98SE" argument indeed is
irrelevant,
since the problem is observed on the _magic_ XP as well  :-)
In my situation I used a homebrew "wiggler" I quickly banged together on
some veroboard for the test.

-- Kris

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.