Reply by tclarke1 December 12, 20082008-12-12
--- In l..., "capiman26061973"
wrote:
>
> Hello,
>
> > Maybe I misunderstood what the terminal feature is supposed to do.
> > If I try:
> > #lpc21isp -termonly -control DTR RTS a.hex com5 115200 12000
> >
> > The reset and the P2.10 are toggled, but what I see is the output of
> > the running application. Is that what -termonly is supposed to do? I
> > thought ISP mode would be entered, and I would be allowed to
> manually
> > type in ISP commands.
> > The build-in terminal is for communicating with the loaded
> application, like a terminal programm afterwards. You can't
> communicate with the boot loader itself (or at least it was not
> planned to do this).
>
> Sequence of lpc21isp has two parts
> 1) A programming part
> 2) A (somewhat limited) build-in terminal programm
>
> I also think that above command line is wrong,
> because "-control DTR RTS" should be "-control".
>
> So command line looks like:
>
> lpc21isp -termonly -control DTR RTS a.hex com5 115200 12000
>
> Regards,
>
> Martin
>

Thanks, I think you mean:
#lpc21isp -termonly -control a.hex com5 115200 12000

Now that I know what it is supposed to do, I can see it is working,
but perhaps not intuitively. If you are using -termonly or
-detectonly, the util still reads and converts the hex file, and it
really should not.

An Engineer's Guide to the LPC2100 Series

Reply by capiman26061973 December 11, 20082008-12-11
Hello,

> Maybe I misunderstood what the terminal feature is supposed to do.
> If I try:
> #lpc21isp -termonly -control DTR RTS a.hex com5 115200 12000
>
> The reset and the P2.10 are toggled, but what I see is the output of
> the running application. Is that what -termonly is supposed to do? I
> thought ISP mode would be entered, and I would be allowed to
manually
> type in ISP commands.
>

The build-in terminal is for communicating with the loaded
application, like a terminal programm afterwards. You can't
communicate with the boot loader itself (or at least it was not
planned to do this).

Sequence of lpc21isp has two parts
1) A programming part
2) A (somewhat limited) build-in terminal programm

I also think that above command line is wrong,
because "-control DTR RTS" should be "-control".

So command line looks like:

lpc21isp -termonly -control DTR RTS a.hex com5 115200 12000

Regards,

Martin
Reply by capiman26061973 December 10, 20082008-12-10
Hello,

> What are all the tricks to get the lpc21isp (v1.48) utility to
> actually work?
> I have the EA LPC2478 board. I have a ulink and flashmagic, but I'd
> like to know all the options for burning code. I finally figured out
> that the lpc util does not control the state of RST and P2.10 like
> flashmagic does, so I have learned to press the two related buttons on
> the board as needed.
> When I try:
> >lpc21isp -detectonly a.hex com5 38400 12000
> and do the two finger shuffle, the detect string is read properly
> When I try:
> >lpc21isp -termonly a.hex com5 38400 12000
> and do the two finger shuffle plus '?' key, I get 'Synchronized', but
> additional commands like 'J' or 'K' only give me garbage chars. It
> looks like the baud is not correct.
> Flashmagic uses the exact same interface so what am I missing?

have you tried adding "-control" ? Call lpc21isp without any arguments
to get a full list of possible options. I think, you can even go higher
with your baudrate, i think i flashed the mentioned EA board (or
general LPC2478 at 12 MHz) with 115200.

BTW: Uptodate version of lpc21isp is 1.63. You can get it from file
section of
http://groups.yahoo.com/group/lpc21isp/

Regards,

Martin

Reply by tclarke1 December 10, 20082008-12-10
What are all the tricks to get the lpc21isp (v1.48) utility to
actually work?

I have the EA LPC2478 board. I have a ulink and flashmagic, but I'd
like to know all the options for burning code. I finally figured out
that the lpc util does not control the state of RST and P2.10 like
flashmagic does, so I have learned to press the two related buttons on
the board as needed.

When I try:
>lpc21isp -detectonly a.hex com5 38400 12000
and do the two finger shuffle, the detect string is read properly

When I try:
>lpc21isp -termonly a.hex com5 38400 12000
and do the two finger shuffle plus '?' key, I get 'Synchronized', but
additional commands like 'J' or 'K' only give me garbage chars. It
looks like the baud is not correct.

Flashmagic uses the exact same interface so what am I missing?