EmbeddedRelated.com
Forums

LPC2000 bootloader

Started by drproton2003 February 13, 2007
Hello everyone,

I'm working on a project for which we will need a bootloader for the
LPC2368 and possibly the LPC214X. The on-chip bootloader is
insufficient in a few ways:

requires jumper and reset to enter bootloader mode (not a big deal)
Flash magic/philips ISP utility will probably confuse many customers
Code is highly sensitive, we need a way to use encrypted files.

Can someone please point me to some good documentation and/or projects
involving bootloaders for the LPC2000 series?

Thanks

An Engineer's Guide to the LPC2100 Series

I had the same problem. I used the following setup:
- PC USB port
- CP2102 USB-to-serial converter
- LPCISP open source utility, modified to be user friendly and decrypt the encrypted hex file

End result is no jumpers or manual resets, easy to use, encrypted to some degree, and no need for the philips utility.

Eric

drproton2003 wrote: Hello everyone,

I'm working on a project for which we will need a bootloader for the
LPC2368 and possibly the LPC214X. The on-chip bootloader is
insufficient in a few ways:

requires jumper and reset to enter bootloader mode (not a big deal)
Flash magic/philips ISP utility will probably confuse many customers
Code is highly sensitive, we need a way to use encrypted files.

Can someone please point me to some good documentation and/or projects
involving bootloaders for the LPC2000 series?

Thanks
Thanks. So far we've got the first two steps the same. I'll look
into the LPCISP stuff, sounds promising. I've started doing some
testing with the USBXpress stuff from Silabs. Should save the
customer the trouble of looking COM numbers.

--- In l..., Eric Fattah wrote:
>
> I had the same problem. I used the following setup:
> - PC USB port
> - CP2102 USB-to-serial converter
> - LPCISP open source utility, modified to be user friendly and
decrypt the encrypted hex file
>
> End result is no jumpers or manual resets, easy to use, encrypted
to some degree, and no need for the philips utility.
>
> Eric
>
>
> drproton2003 wrote:
Hello everyone,
>
> I'm working on a project for which we will need a bootloader for the
> LPC2368 and possibly the LPC214X. The on-chip bootloader is
> insufficient in a few ways:
>
> requires jumper and reset to enter bootloader mode (not a big deal)
> Flash magic/philips ISP utility will probably confuse many customers
> Code is highly sensitive, we need a way to use encrypted files.
>
> Can someone please point me to some good documentation and/or projects
> involving bootloaders for the LPC2000 series?
>
> Thanks
>
>
>
>
>
>
> Can someone please point me to some good documentation and/or projects
> involving bootloaders for the LPC2000 series?
I like the approach the usb_fw_upgrader project implements:
http://www.tnkernel.com/usb_fw_upgrader.html

The port to LPC23xx would be fairly trivial. Also for Windows side driver
one can substitute the WinDDK USB Bulk sample project without to much
effort. I will be doing this myself fairly shortly.

Joel
--- In l..., Eric Fattah wrote:
>
> I had the same problem. I used the following setup:
> - PC USB port
> - CP2102 USB-to-serial converter
> - LPCISP open source utility, modified to be user friendly and
decrypt the encrypted hex file
Eric, did you do the encryption/decryption yourself ??
Or is this part of LPCISP ?? Is it LPCISP, or is it the
lpc2isp which has a yahoo group ?

Thanks,
boB

>
> End result is no jumpers or manual resets, easy to use, encrypted
to some degree, and no need for the philips utility.
>
> Eric
>
>
> drproton2003 wrote:
Hello everyone,
>
> I'm working on a project for which we will need a bootloader for the
> LPC2368 and possibly the LPC214X. The on-chip bootloader is
> insufficient in a few ways:
>
> requires jumper and reset to enter bootloader mode (not a big deal)
> Flash magic/philips ISP utility will probably confuse many customers
> Code is highly sensitive, we need a way to use encrypted files.
>
> Can someone please point me to some good documentation and/or projects
> involving bootloaders for the LPC2000 series?
>
> Thanks
>
>
>
>
>
>
bobtransformer wrote:

Eric, did you do the encryption/decryption yourself ??
Or is this part of LPCISP ?? Is it LPCISP, or is it the
lpc2isp which has a yahoo group ?

Thanks,
boB

----------------------

It is the LPC2ISP, available from the yahoogroup. I just added my own extremely simplistic encryption that at least prevents direct disassembly of the hex file.

Eric
--- In l..., "drproton2003" wrote:

> Can someone please point me to some good documentation and/or projects
> involving bootloaders for the LPC2000 series?

Have a look at my Boot Loader Internals page at:

http://www.cse.unsw.edu.au/~jayas/esdk/lpc2/boot-loader.html

I also hava a on-chip loader for LPC that enables downloading and
running programs from (on-chip) memory (FLASH or SRAM) by simply copy
and paste of Intel format hex load files onto the window of a terminal
emulator like Hyperterm or Minicom.

The the program to check a target and install this loader is also
worth looking at. These can be found at:

http://www.cse.unsw.edu.au/~jayas/esdk/sill.html

Regards,

Jaya
--- In l..., "jayasooriah" wrote:
>
> --- In l..., "drproton2003" wrote:
>
> > Can someone please point me to some good documentation and/or projects
> > involving bootloaders for the LPC2000 series?
>
> Have a look at my Boot Loader Internals page at:
>
> http://www.cse.unsw.edu.au/~jayas/esdk/lpc2/boot-loader.html
>
> I also hava a on-chip loader for LPC that enables downloading and
> running programs from (on-chip) memory (FLASH or SRAM) by simply copy
> and paste of Intel format hex load files onto the window of a terminal
> emulator like Hyperterm or Minicom.
>
> The the program to check a target and install this loader is also
> worth looking at. These can be found at:
>
> http://www.cse.unsw.edu.au/~jayas/esdk/sill.html
>
> Regards,
>
> Jaya
>
I tried to download the sill.exe to my computer but it just flashes a
dos screen for 250ms. Its a recent xp. The program looks promising if
I can get past step 1.

David
--- In l..., "mayotte_d" wrote:

> I tried to download the sill.exe to my computer but it just flashes a
> dos screen for 250ms. Its a recent xp. The program looks promising if
> I can get past step 1.
>
> David

David,

You should start a "DOS Prompt" window (CMD.EXE) and run SILL.EXE as
per the transcripts on my tutorial page.

If you run by clicking on it from Windows Explorer, XP creates the DOS
Prompt window for you and runs SILL.EXE but closes this window as soon
as it exits.

You will not be able to see the transcript ... unless you have
photographic memory and can capture the screen in 250 ms you refer to!

Regards,

Jaya
--- In l..., "jayasooriah" wrote:
>
> --- In l..., "mayotte_d" wrote:
>
> > I tried to download the sill.exe to my computer but it just flashes a
> > dos screen for 250ms. Its a recent xp. The program looks promising if
> > I can get past step 1.
> >
> > David
>
> David,
>
> You should start a "DOS Prompt" window (CMD.EXE) and run SILL.EXE as
> per the transcripts on my tutorial page.
>
> If you run by clicking on it from Windows Explorer, XP creates the DOS
> Prompt window for you and runs SILL.EXE but closes this window as soon

wow. I made it to step 4 and it tells me it cant find a program called
com8. I don't blame it,neither do I. ??
> as it exits.
>
> You will not be able to see the transcript ... unless you have
> photographic memory and can capture the screen in 250 ms you refer to!
>
> Regards,
>
> Jaya
>