Yahoo Groups archive

Lpc2000

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

Thread

Re: Bootloader: Wrong answer on Prepare-Command (2) (Sector 2) CMD_SUCCESS

Re: Bootloader: Wrong answer on Prepare-Command (2) (Sector 2) CMD_SUCCESS

2004-04-01 by Andreas Schwarz

Robert Adsett wrote:
> At 06:41 PM 4/1/04 +0000, you wrote:
>>Hello,
>>
>>I'm using lpc21isp to program my LPC2106. When I try to download the
>>test2 hex file from the Aeolus newlib example, I get the following output:
>>
>>(...)
>>Writing Sector 0: ....(...)
>>Sector 0 written
>>Writing Sector 1: ....(...)
>>Sector 1 written
>>Writing Sector 2: ....(...)...Wrong answer on Prepare-Command (2) (Sector 2)
>>CMD_SUCCESS
>>
>>...and the program doesn't work (no traffic on TXD). If I change "#if 1" to
>>"#if 0" and vice-versa (to disable the UART echo example), the program loads
>>ok, and I can receive the "hello world"-message over the UART.
>>
>>What's wrong here?
> 
> Can you run the Philips ISP program? If so, does it work?

I just tried it, works perfectly.

Re: [lpc2000] Re: Bootloader: Wrong answer on Prepare-Command (2) (Sector 2) CMD_SUCCESS

2004-04-01 by Robert Adsett

At 07:39 PM 4/1/04 +0000, you wrote:
>Robert Adsett wrote:
> > Can you run the Philips ISP program? If so, does it work?
>
>I just tried it, works perfectly.

OK, that narrows it down to the download program which is probably a 
simpler problem.  Consider the debug print I suggested.  Martin, do you 
want to jump in here?

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Re: [lpc2000] Re: Bootloader: Wrong answer on Prepare-Command (2) (Sector 2) CMD_SUCCESS

2004-04-01 by Robert Adsett

At 07:53 PM 4/1/04 +0000, you wrote:
>Robert Adsett wrote:
> > printf("Expected [%s] -- Received [%s]\n", tmpString, Answer);
>
>Expected [P 2 2
>0
>] -- Received [P 2 2
>RESEND
>]

That fits with Martins description (and exhausts my knowledge of the 
program).  I'll leave it to Martin for the moment to fix.  At least you can 
use the Philips Utility as a work around.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.