EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Lpc210x Code Protection

Started by mauroansa March 29, 2007
--- In l..., "jayasooriah" wrote:
> As for the protection that CRP offers, you may want to look in here
> for an informed view and make your own conclusions without relying on
> sales pitch:
>
> http://www.cse.unsw.edu.au/~jayas/esdk/lpc2/crp-security.html
>

If you're referring to me with te "sales pitch" comment, I can assure
you I don't work for NXP nor for any company associated with them nor
any company selling their products in any way whatsoever.

The only comment I made in relation to this was to refer people to the
evidence rather than speculative comment.

I can't comment on the specific link above, but I'd caution others that
there are errors of fact elsewhere on the referenced Web site.

An Engineer's Guide to the LPC2100 Series

Brendan wrote
> FYI: for production we use a bed-of-nails jig that's used for
> programming, ICT and functional test. Programming is done by our own
> s/w that can parallel program n-units at a time (usually 2 or 4).
> Access to the reset and serial port is through test points on the
board
> (i.e. the serial port isn't actually connected to a connector on the
> board). Even if you do use the serial port, you can probably take the
> same approach.
>

Yes, the in field programming via ISP can be managed with some minor
redesign. When it will work...
I tried, both with my board and with an Olimex lpc2103 development
board, but i'm not able to enter ISP (with the same symptoms on both
hardware). Pin P0.14 is low at reset time and the regular program is
not running infact. The uart0 does echo the received char and if the
first char is '?' if answers with some strange char, probably requiring
something to the host. That's all unfortunaltely. I can't go any
further. Flash Magic or Sill are not able to read the chip signature,
so no other operation are allowed. Observing signals with a scope one
can see that a short packet is sent by the PC and a packet is returned
by the lpc, then silence for a couple of seconds. The procedure
continues 4 or 5 times then It ends with an error message telling that
is unable to read the signature.
In my test pin P0.14 is held down by a jumper and I manually reset the
board.
Is it maybe necessary to allow FlashMagic or any other program to
manage the whole procedure via DTR RTS?
Has anybody had trouble with Lpc2103 and ISP?
Any suggestion is welcome.
Mauro
--- In l..., "mauroansa" wrote:

> I tried, both with my board and with an Olimex lpc2103 development
> board, but i'm not able to enter ISP (with the same symptoms on both
> hardware). Pin P0.14 is low at reset time and the regular program is
> not running infact. The uart0 does echo the received char and if the
> first char is '?' if answers with some strange char, probably requiring
> something to the host. That's all unfortunaltely. I can't go any
> further. Flash Magic or Sill are not able to read the chip signature,
> so no other operation are allowed. Observing signals with a scope one
> can see that a short packet is sent by the PC and a packet is returned
> by the lpc, then silence for a couple of seconds. The procedure
> continues 4 or 5 times then It ends with an error message telling that
> is unable to read the signature.
> In my test pin P0.14 is held down by a jumper and I manually reset the
> board.

Are you using a native serial port or gong through USB RS323
converter? Converters tend to be problematic with LPC.

> Is it maybe necessary to allow FlashMagic or any other program to
> manage the whole procedure via DTR RTS?

SILL asserts RTS (so if P0.14 jumper is installed, this will pull it
low) and toggles DTR after each attempt to sync (in case it is
connected to RST) -- so you dont have to do anything special.

> Has anybody had trouble with Lpc2103 and ISP?

I have a dump for LPC2103/2.02 which suggests SILL works on this part,
but this was for one of the early releases.

> Any suggestion is welcome.
> Mauro

It could be the problem is elsewhere -- wiring of the serial port may be?

Drop me an email and I could talk you through debug options for SILL.

Regards,

Jaya
Just to double check did you put a rs232<-->ttl convertor in between
the pc and the lpc?

--Ray
--- In l..., "mauroansa" wrote:
>
> Is it maybe necessary to allow FlashMagic or any other program to
> manage the whole procedure via DTR RTS?
> Has anybody had trouble with Lpc2103 and ISP?
> Any suggestion is welcome.
> Mauro
>
Yes I put a device like MAX232 to convert the levels
And used a regular PC com port after having used an usb->232 converter
for first attempts.

--- In l..., "Ray" wrote:
>
> Just to double check did you put a rs232<-->ttl convertor in between
> the pc and the lpc?
>
> --Ray
> --- In l..., "mauroansa" wrote:
> >
> > Is it maybe necessary to allow FlashMagic or any other program to
> > manage the whole procedure via DTR RTS?
> > Has anybody had trouble with Lpc2103 and ISP?
> > Any suggestion is welcome.
> > Mauro
>
For those that don't want to implement the RS232 interface for ISP but
still want to use the Philips loader, Sparkfun has a neat little
external interface http://www.sparkfun.com/commerce/product_info.php?
products_idq4

Richard
rtstofer Wrote
>For those that don't want to implement the RS232 interface for ISP but
>still want to use the Philips loader, Sparkfun has a neat little
>external interface http://www.sparkfun.com/commerce/product_info.php?
>products_idq4

Too bad they didn't use the standard header

http://www.open-research.org.uk/ARMuC/Standard_ISP_Header.html

Robert
--------------------------------
mail2web LIVE Free email based on Microsoft Exchange technology -
http://link.mail2web.com/LIVE
Hi, all
I discovered something. I have been able to connect to the Lpc2103 only
using the monitor utility of FlashMagic, following the lpc2103 user
manual, using the "? sequence, after many many attempt.
Introduced the string "Synchronized" and so on.
In this way was possible to erase all sectors and unlock the CRP as I
needed. The point is that probably the cycle of attempt done by
FlashMagic and Sill is not able to syncronize the Lpc2103. It has to be
done "manually" , looking at the answer....
Has anybody tried those utilities with Lpc2103 already? As I wrote the
same Lpc2103 behaviour is shown by my new board and an Olimex starter
kit.
Any commment could be useful
And thanks again

The 2024 Embedded Online Conference