On Fri, Feb 08, 2008 at 09:03:13PM -0800, K wrote:
> 
> 
> (86'd the attachment, mailing list zaps it.)
> 
> 
> Well Mark, I just got started. I found this
> in the user's manual, though I've only just made the
> board talk to me ("OK") through the serial port, so
> I may not be looking at the same thing.
> 
> There seems to be a flash "unlock" command that
> must be issued once per programming session. <DEL>*Attached
> is a screen cap of the page.</DEL> The manual I found
> at:
> 
> (Very long link, may wrap...)
> 
> http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2141.lpc2142.lpc2144.lpc2146.lpc2148.pdf
> 
> (end link.)
> 
> LPC214x User Manual Rev 02 25 July 2006
> 
> By the way, sparkfun has the jtag USB OCD back in stock.
> (Is the the programmer you are using?)
> 
> http://www.sparkfun.com/commerce/product_info.php?products_id=7834

I'm using the parallel port wiggler JTAG.  I do have one of the USB ones
on order now.  I hope it shows up soon.

BTW using the ISP boot loader I am able to erase the flash using
minicom.  Boy thats a trip.  The steps where:
1) set baud to 9600, software flow control
2) toggle switch 1 to on switch 2 to off, and disconnect JTAG cable
3) hit rest
4) enter '?' Character
5) after response "Synchronized" is sent to minicom echo the string
"Synchronized" back (you should get a "OK" back).
6) enter "12000" and hit enter key ("ok" ack from lpc)
7) P 0 26 (and return)
8) E 0 26 (and return)

Note: U 23130 (and return) doesn't seem to do much.
Note: isp error codes are in table 8.14 

Poof! My flash is now cleared.

This may make an interesting wiki page if someone wanted to capture
some of this (or if there is an existing link to hacking the LPC via the
ISP boot loader, we should capture the link)

Sadly I still cannot program it with the Wiggler JTAG.  I think I'll
give up soon and wait for the USB JTAG to show up.

/me goes to re-build robot....
--mgross


> 
> Luck,
>  -K
> 
> 
> 
> 
> 
> 
> 
> > Today's Topics:
> > 
> >    1. lpc2148 jtag basics quiestion (mark gross)
> > 
> > 
> > ----------------------------------------------------------------------
> > 
> > Message: 1
> > Date: Fri, 8 Feb 2008 08:15:58 -0800
> > From: mark gross <[EMAIL PROTECTED]>
> > Subject: [psas-avionics] lpc2148 jtag basics quiestion
> > To: psas-avionics@lists.psas.pdx.edu
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset="us-ascii"
> > 
> > I'm trying to get things working with my cheap-oh JTAG and hitting some
> > snags with the flash erase behavior.
> > 
> > First what is the flash block size for the flash on the 2148?  the spec
> > sheet
> > http://www.nxp.com/acrobat_download/datasheets/LPC2141_42_44_46_48_3.pdf 
> > doesn't seem to call it out.
> > 
> > I can look at memory and explore the 2148 memory map (which looks
> > correct)
> > but trying to erase the flash is being a problem.  What flash
> > technology is used in the 2148?  for intel strata flash I sued to poke
> > flash addresses and implement block operations by hand.  I would like to
> > see if I can do that with this part.
> > 
> > FWIW the following shows my problem I read 0 to 128, erase the first
> > blocks then read 0 to 128 to find the data still there.  Is there a
> > protect flag set on the flash?
> > 
> >> mdh 0x0 128
> > 0x00000000: 4034 e59f 5002 e3a0 5000 e584 5003 e3a0 5004 e584 201c e59f 
> > 3000 e3a0 0093 e102 
> > 0x00000020: 2028 e282 1093 e102 3007 e3c0 3028 e502 f004 e51f d1c4 7fff 
> > c014 e002 c000 e01f 
> > 0x00000040: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x00000060: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x00000080: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x000000a0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x000000c0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x000000e0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> >> flash erase 0 0 2
> > erased sectors 0 through 2 on flash bank 0 in 0s 101437us
> >> mdh 0x0 128      
> > 0x00000000: 4034 e59f 5002 e3a0 5000 e584 5003 e3a0 5004 e584 201c e59f 
> > 3000 e3a0 0093 e102 
> > 0x00000020: 2028 e282 1093 e102 3007 e3c0 3028 e502 f004 e51f d1c4 7fff 
> > c014 e002 c000 e01f 
> > 0x00000040: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x00000060: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x00000080: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x000000a0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x000000c0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 0x000000e0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
> > ffff ffff ffff ffff 
> > 
> > Any guesses or insights welcome.
> > 
> > Thanks,
> > 
> > ss
> 
> 
> 
> _______________________________________________
> psas-avionics mailing list
> psas-avionics@lists.psas.pdx.edu
> http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Attachment: signature.asc
Description: Digital signature

_______________________________________________
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Reply via email to