Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Shawn

#1
LPC2xxx / Shared Serial Port
November 02, 2007, 11:58:45 AM
Hi (Andy?).

My target device uses a LPC2378.  The serial port on the device is always connected to the PC and communicating data between the micro and our own software app.  In our micro app there is a command that the PC an send that will put the 2378 into the boot block. 

With an unprogrammed device, it will startup in the boot block.  Our PC app can not detect that the unit is in the boot block so it sends the command to put the unit into the boot block.

My questions are:

If data is sent to the 2378 before the "?" character for autobaud, what happens?  Does the bootblock go off in the weeds never to return?

If the unit is already in the bootblock, is there a way we can detect that?  Can we interact with the bootblock at all?

Thanks,

Shawn
#2
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 25, 2007, 10:19:06 AM

Does the clock setting in the device command set the clock?  Is there a reason NOT to set it higher?

Shawn
#3
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 24, 2007, 01:56:40 PM

Hi Andy.

Don't hate me yet.

I tried highspeed mode (in the GUI) and recorded these results.  I get a failed to read device signature when I try to program.  I answer NO when it asks if I want to continue.  I answered yes once but it still failed.

Is there anything in these files that would help you guide me to be able to use highspeed mode?

Shawn
#4
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 24, 2007, 12:52:37 PM
I am writing for the command line interface.  But your answer gives me what I need.  For the LPC2378, the option is unused and sent as a 0.

Thanks yet again.

Shawn
#5
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 24, 2007, 12:37:45 PM

I will let you know if I find something with the laptop.  The sniffer i installed is interesting in that you have to load a driver for it and it puts its software between the windows calls and the physical com port, so there is no cabling, its a soft sniffer.

For the highspeed command, what does the "clocks per cycle" mean?  The manual says it can be 6 or 12.  I am not sure what its asking for.

Shawn
#6
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 24, 2007, 10:39:49 AM
It works perfectly on 3 other PCs. 

OK, I can deal with that.  Just can't test with my laptop.

Can I tack no a second question?

It works fine at 19.2, but higher baud rates seem to fail more often than we would like.  Is this the nature of the beast, or is there steps to take to allow highspeed programming.  We are using an LPC2378.  The clock specified in the device command is 12 MHZ incase that matters.

THanks so much, you have been very helpfull and responsive.

Shawn
#7
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 01:57:02 PM

I just emailed it to you.

Shawn
#8
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 01:33:22 PM

All on one line.  I broke them up in email for readability
#9
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 01:27:01 PM

The command line gets as far as sending 12000 (clock setting from the device line) and having it echoed back.  Then the port gets closed and reopened.  I did this three times, with a power cycle between each time.

This is weird.  Since installing the sniffer, the FM GUI now gets to trying to erase block 0 before it fails.

If we have to pick on, I need the command line to work much more than I need the GUI to work.

I attached fmd files for both GUI operation and Command Line operation.

Shawn
#10
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 01:14:20 PM
The FlashMagic IDE gives me failed at step 1.

The command line gives me invalid command

#11
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 01:10:54 PM

The shaded rows are FROM flash magic
The unshaded rows are from the NXP

Did I answer the right question?

Shawn
#12
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 01:05:40 PM

I installed a port sniffer and reran my original command line
Attached is what the port sniffer reported as well as the FM debug file.

Let me know if that uncovers anything helpfull.

Shawn
#13
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 12:43:46 PM

Hi Andy.

Same cable is in use no matter what I am doing.  I just change apps.
Its a DB-9 serial port on a laptop.
Hyperterm still reports Synchronized as soon as I hit ?

Please let me know what to do next.

Shawn
#14
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 12:25:16 PM
You got it.  Here is teh FMD that results from:

Double-check RTS disabled setting in FM
Put device in boot block
Click Read Device Signature
#15
LPC2xxx / Re: FlashMagic from Dell Core Duo Laptop
October 23, 2007, 12:17:13 PM
I got the same error withing the GUI.  I don't know how to make a debug file from the gui, so I modified my command file to be:

QUIET(FMOutput.txt)
COM(1, 9600)
DEBUG
DEVICE(LPC2378, 12.000000)
READSIGNATURE

The FMOutput is the same as before: Connection failed: invalid command

The FMD file is attached.

Shawn