(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

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

Reply via email to