Content originally posted in LPCWare by mysepp on Wed Nov 04 08:48:31 MST 2015
Tell us in more detail what you want to achieve. How secure must it be?
Just an easy check or to prevent a hacker from modifying your device?
In my opinion there is no way to change/extend bootloader in ROM.
But you can use a second bootloader, which perhaps behaves almost identical as ROM bootloader, if this is really needed.
And the proprietary check is added in second bootloader, e.g. write a certain magic number before the download is possible.
Otherwise denied.
According to FlashMagic:
Ok, you can check the image, before calling FlashMagic at all. But what happens, when a user downloads FlashMagic and
performs the download without executing your checks? Then all your checks are useless.
Also have a look at LPC18S.. series (same as your, but with 'S') which,
I think, allows much more security related to application images.
Perhaps a way is to encrypt it? Read the data sheet and/or user manual if this fits your need.