Discussion group dedicated to the Philips LPC2000 family of ARM MCUs
LPC2000 bootloader - drproton2003 - Feb 13 15:25:55 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

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: LPC2000 bootloader - Eric Fattah - Feb 13 16:00:36 2007
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
[Non-text portions of this message have been removed]

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - drproton2003 - Feb 13 16:54:04 2007
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...@yahoogroups.com, 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
>
>
>
>
> [Non-text portions of this message have been removed]
>

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - Joel Winarske - Feb 13 17:08:56 2007
> 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

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: LPC2000 bootloader - bobtransformer - Feb 13 18:34:49 2007
--- In l...@yahoogroups.com, 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
>
>
>
>
> [Non-text portions of this message have been removed]
>

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Re: LPC2000 bootloader - Eric Fattah - Feb 13 20:01:10 2007
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
[Non-text portions of this message have been removed]

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com ) Re: LPC2000 bootloader - jayasooriah - Feb 13 20:41:15 2007
--- In l...@yahoogroups.com, "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

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - mayotte_d - Feb 13 22:49:02 2007
--- In l...@yahoogroups.com, "jayasooriah"
wrote:
>
> --- In l...@yahoogroups.com, "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

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - jayasooriah - Feb 13 23:52:27 2007
--- In l...@yahoogroups.com, "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

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - mayotte_d - Feb 14 21:58:05 2007
--- In l...@yahoogroups.com, "jayasooriah"
wrote:
>
> --- In l...@yahoogroups.com, "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
>

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - jayasooriah - Feb 14 23:23:51 2007
--- In l...@yahoogroups.com, "mayotte_d"
wrote:
> 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. ??
Hello,
Sorry, you are not being coherent. Cut and paste the transcript.
SILL *never* tells you it cannot find a program. Either you have a
virus or you are very unfamiliar with using the CMD shell interface.
Good luck.
Jaya

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - mayotte_d - Feb 15 11:12:54 2007
--- In l...@yahoogroups.com, "jayasooriah"
wrote:
>
> --- In l...@yahoogroups.com, "mayotte_d" wrote:
> > 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. ??
>
> Hello,
>
> Sorry, you are not being coherent. Cut and paste the transcript.
>
> SILL *never* tells you it cannot find a program. Either you have a
> virus or you are very unfamiliar with using the CMD shell interface.
>
> Good luck.
>
> Jaya
>
here it is:
C:\sill>sill -i com8
SILL: Serial Intel-format LPC Loader
Copyright (c) 2004-2006 Jayasooriah
Computing and Systems Technology P/L
02.06 2007/01/31 2e65-d540-16dc-f9e8
sill: error 2: com8: the system cannot find the file specified
C:\sill>

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )RE: Re: LPC2000 bootloader - Andrew Berney - Feb 15 11:30:34 2007
Hehe... Never say never eh, it's one of those words that kicks you when
you're not expecting it...
That said, Jaya should easily be able to tell you what's wrong as he wrote
the app you're trying to use. I'm assuming it's some misunderstanding of the
command line that needs to be used, but I don't have a copy to hand to check
the usage or make suggestions so I guess you'll have to wait for him to
reply.
-----Original Message-----
From: l...@yahoogroups.com [mailto:l...@yahoogroups.com]On Behalf Of
mayotte_d
Sent: 15 February 2007 16:11
To: l...@yahoogroups.com
Subject: [lpc2000] Re: LPC2000 bootloader
--- In l...@yahoogroups.com, "jayasooriah"
wrote:
>
> --- In l...@yahoogroups.com, "mayotte_d" wrote:
> > 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. ??
>
> Hello,
>
> Sorry, you are not being coherent. Cut and paste the transcript.
>
> SILL *never* tells you it cannot find a program. Either you have a
> virus or you are very unfamiliar with using the CMD shell interface.
>
> Good luck.
>
> Jaya
>
here it is:
C:\sill>sill -i com8
SILL: Serial Intel-format LPC Loader
Copyright (c) 2004-2006 Jayasooriah
Computing and Systems Technology P/L
02.06 2007/01/31 2e65-d540-16dc-f9e8
sill: error 2: com8: the system cannot find the file specified
C:\sill>
[Non-text portions of this message have been removed]

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - jayasooriah - Feb 15 16:21:33 2007
--- In l...@yahoogroups.com, "mayotte_d"
wrote:
>
> --- In l...@yahoogroups.com, "jayasooriah" wrote:
> >
> > --- In l...@yahoogroups.com, "mayotte_d" wrote:
> > > 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. ??
> >
> > Hello,
> >
> > Sorry, you are not being coherent. Cut and paste the transcript.
> >
> > SILL *never* tells you it cannot find a program. Either you have a
> > virus or you are very unfamiliar with using the CMD shell interface.
> >
> > Good luck.
> >
> > Jaya
> > here it is:
> C:\sill>sill -i com8
> SILL: Serial Intel-format LPC Loader
> Copyright (c) 2004-2006 Jayasooriah
> Computing and Systems Technology P/L
> 02.06 2007/01/31 2e65-d540-16dc-f9e8
>
> sill: error 2: com8: the system cannot find the file specified
>
> C:\sill>
Hello,
Where does it say "cannot find a program called COM8"?
I suggest you do some homework on interpreting Windows exit codes.
Perhaps Andrew Barney can help you with this.
Exit code 2 in Windows expands to "the system cannot find the file
specified".
It appears from your transcript that SILL failed to open COM8. I
would not blame SILL as it seems Windows could not find COM8 on your
system!
It looks like you are blindly copying the COM8 example in my tutorial
page. If you read fully, you will note that you have to first find
out what port your target is connected to on your system.
What I said stands. SILL *never* tells you it cannot find a program.
Jaya

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: LPC2000 bootloader - jayasooriah - Feb 15 16:38:42 2007
Dear Andrew,
The OP does not appear to have the level of computer literacy required
to follow the tutorial example. I am trying to take him/her through
the steps so to achieve a positive outcome as I know there are others
listening to this forum in similar situation.
Your interjection is without substance. It is not constructive.
Perhaps it is appropriate for you to heed your own advice *never* do
this again so as to save yourself embarrassment in the future :)
Kind regards
Jaya
--- In l...@yahoogroups.com, "Andrew Berney"
wrote:
>
> Hehe... Never say never eh, it's one of those words that kicks you when
> you're not expecting it...
> That said, Jaya should easily be able to tell you what's wrong as he
wrote
> the app you're trying to use. I'm assuming it's some
misunderstanding of the
> command line that needs to be used, but I don't have a copy to hand
to check
> the usage or make suggestions so I guess you'll have to wait for him to
> reply.
> -----Original Message-----
> From: l...@yahoogroups.com [mailto:l...@yahoogroups.com]On
Behalf Of
> mayotte_d
> Sent: 15 February 2007 16:11
> To: l...@yahoogroups.com
> Subject: [lpc2000] Re: LPC2000 bootloader
> --- In l...@yahoogroups.com, "jayasooriah" wrote:
> >
> > --- In l...@yahoogroups.com, "mayotte_d" wrote:
> > > 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. ??
> >
> > Hello,
> >
> > Sorry, you are not being coherent. Cut and paste the transcript.
> >
> > SILL *never* tells you it cannot find a program. Either you have a
> > virus or you are very unfamiliar with using the CMD shell interface.
> >
> > Good luck.
> >
> > Jaya
> > here it is:
> C:\sill>sill -i com8
> SILL: Serial Intel-format LPC Loader
> Copyright (c) 2004-2006 Jayasooriah
> Computing and Systems Technology P/L
> 02.06 2007/01/31 2e65-d540-16dc-f9e8
>
> sill: error 2: com8: the system cannot find the file specified
>
> C:\sill>
> [Non-text portions of this message have been removed]
>

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )