EmbeddedRelated.com
Forums

USB Bootloader - MCB2140 - LPC2148

Started by forumjnky January 19, 2007
Does anybody know if there's any existing USB Bootloader for LPC2148
devices or similar to it? Basically, I want to download/update firmware
via USB instead of ISP or JTAG. I already tried TNKernel "Firmware
Upgrader", but didn't work as expected. Any help is much appreciated.
Thanks in advance.

An Engineer's Guide to the LPC2100 Series

I also need a LPC214x USB bootloader and was considering using the TNKernel
"Firmware Upgrader". What problems did you find with it?

If anyone has the code for a good failsafe bootloader I'd be willing to pay
for it.

- Chris

> -----Original Message-----
> From: l...
> [mailto:l...] On Behalf Of forumjnky
> Sent: Thursday, January 18, 2007 10:46 PM
> To: l...
> Subject: [lpc2000] USB Bootloader - MCB2140 - LPC2148
>
> Does anybody know if there's any existing USB Bootloader for
> LPC2148 devices or similar to it? Basically, I want to
> download/update firmware via USB instead of ISP or JTAG. I
> already tried TNKernel "Firmware Upgrader", but didn't work
> as expected. Any help is much appreciated.
> Thanks in advance.
>
>
> Yahoo! Groups Links
The "Firmware Upgrader" works, but then when I tried to
download "Blinky.hex" (Keil ARM Example) using TNKernel
FirmwareLoader the "Firmware Upgrader" got overwritten. I did modify
the startup code but still didn't work. Any suggestions?

--- In l..., Chris Graham wrote:
>
> I also need a LPC214x USB bootloader and was considering using the
TNKernel
> "Firmware Upgrader". What problems did you find with it?
>
> If anyone has the code for a good failsafe bootloader I'd be
willing to pay
> for it.
>
> - Chris
>
>
> > -----Original Message-----
> > From: l...
> > [mailto:l...] On Behalf Of forumjnky
> > Sent: Thursday, January 18, 2007 10:46 PM
> > To: l...
> > Subject: [lpc2000] USB Bootloader - MCB2140 - LPC2148
> >
> > Does anybody know if there's any existing USB Bootloader for
> > LPC2148 devices or similar to it? Basically, I want to
> > download/update firmware via USB instead of ISP or JTAG. I
> > already tried TNKernel "Firmware Upgrader", but didn't work
> > as expected. Any help is much appreciated.
> > Thanks in advance.
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
>
I haven't confimed that this solves your problem, but the TNKernel USB
bootloader documentaton says that the bootloader itself resides at 0x0000000
- 0x00001FFF. the downloaded firmware is loaded just following a control
block that is at address 0x00002000 - 0x0000200F. Possibly the blinky code
needs to be linked to start at 0x00002000 and include the control block?
Also it says that the firmware's interrupts need to be located in ram at
0x40000000.

However, I'm not an ARM expert. Can someone else confirm if this makes
sense?

- Chris

> -----Original Message-----
> From: l...
> [mailto:l...] On Behalf Of forumjnky
> Sent: Friday, January 19, 2007 11:14 AM
> To: l...
> Subject: [lpc2000] Re: USB Bootloader - MCB2140 - LPC2148
>
> The "Firmware Upgrader" works, but then when I tried to
> download "Blinky.hex" (Keil ARM Example) using TNKernel
> FirmwareLoader the "Firmware Upgrader" got overwritten. I did
> modify the startup code but still didn't work. Any suggestions?
>
> --- In l..., Chris Graham wrote:
> >
> > I also need a LPC214x USB bootloader and was considering using the
> TNKernel
> > "Firmware Upgrader". What problems did you find with it?
> >
> > If anyone has the code for a good failsafe bootloader I'd be
> willing to pay
> > for it.
> >
> > - Chris
> >
> >
> > > -----Original Message-----
> > > From: l...
> > > [mailto:l...] On Behalf Of forumjnky
> > > Sent: Thursday, January 18, 2007 10:46 PM
> > > To: l...
> > > Subject: [lpc2000] USB Bootloader - MCB2140 - LPC2148
> > >
> > > Does anybody know if there's any existing USB Bootloader for
> > > LPC2148 devices or similar to it? Basically, I want to
> > > download/update firmware via USB instead of ISP or JTAG.
> I already
> > > tried TNKernel "Firmware Upgrader", but didn't work as
> expected. Any
> > > help is much appreciated.
> > > Thanks in advance.
> > >
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
>
> Yahoo! Groups Links
Chris, Have you tried using FWU code and download sample firmware
using TNKernel Firmware Downloader? I'm just curious if it works for
you.

--- In l..., Chris Graham wrote:
>
> I haven't confimed that this solves your problem, but the TNKernel
USB
> bootloader documentaton says that the bootloader itself resides at
0x0000000
> - 0x00001FFF. the downloaded firmware is loaded just following a
control
> block that is at address 0x00002000 - 0x0000200F. Possibly the
blinky code
> needs to be linked to start at 0x00002000 and include the control
block?
> Also it says that the firmware's interrupts need to be located in
ram at
> 0x40000000.
>
> However, I'm not an ARM expert. Can someone else confirm if this
makes
> sense?
>
> - Chris
>
> > -----Original Message-----
> > From: l...
> > [mailto:l...] On Behalf Of forumjnky
> > Sent: Friday, January 19, 2007 11:14 AM
> > To: l...
> > Subject: [lpc2000] Re: USB Bootloader - MCB2140 - LPC2148
> >
> > The "Firmware Upgrader" works, but then when I tried to
> > download "Blinky.hex" (Keil ARM Example) using TNKernel
> > FirmwareLoader the "Firmware Upgrader" got overwritten. I did
> > modify the startup code but still didn't work. Any suggestions?
> >
> > --- In l..., Chris Graham wrote:
> > >
> > > I also need a LPC214x USB bootloader and was considering using
the
> > TNKernel
> > > "Firmware Upgrader". What problems did you find with it?
> > >
> > > If anyone has the code for a good failsafe bootloader I'd be
> > willing to pay
> > > for it.
> > >
> > > - Chris
> > >
> > >
> > > > -----Original Message-----
> > > > From: l...
> > > > [mailto:l...] On Behalf Of forumjnky
> > > > Sent: Thursday, January 18, 2007 10:46 PM
> > > > To: l...
> > > > Subject: [lpc2000] USB Bootloader - MCB2140 - LPC2148
> > > >
> > > > Does anybody know if there's any existing USB Bootloader for
> > > > LPC2148 devices or similar to it? Basically, I want to
> > > > download/update firmware via USB instead of ISP or JTAG.
> > I already
> > > > tried TNKernel "Firmware Upgrader", but didn't work as
> > expected. Any
> > > > help is much appreciated.
> > > > Thanks in advance.
> > > >
> > > >
> > > >
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
>
> -----Original Message-----
> From: l...
> [mailto:l...]On Behalf
> Of Chris Graham
> Sent: Friday, January 19, 2007 8:32 AM
> To: l...
> Subject: RE: [lpc2000] USB Bootloader - MCB2140 - LPC2148
> I also need a LPC214x USB bootloader and was considering
> using the TNKernel
> "Firmware Upgrader". What problems did you find with it?
>
> If anyone has the code for a good failsafe bootloader I'd be
> willing to pay
> for it.
>
> - Chris
>
>
I have the USB bootloader based on the TNKernel working fine.
It looks like it should just work as is, but there were a
few things I changed to support my hardware.

Mike
> -----Original Message-----
> From: l...
> [mailto:l...]On Behalf
> Of Chris Graham
> Sent: Friday, January 19, 2007 12:48 PM
> To: l...
> Subject: RE: [lpc2000] Re: USB Bootloader - MCB2140 - LPC2148
> I haven't confimed that this solves your problem, but the TNKernel USB
> bootloader documentaton says that the bootloader itself
> resides at 0x0000000
> - 0x00001FFF. the downloaded firmware is loaded just
> following a control
> block that is at address 0x00002000 - 0x0000200F. Possibly
> the blinky code
> needs to be linked to start at 0x00002000 and include the
> control block?
> Also it says that the firmware's interrupts need to be
> located in ram at
> 0x40000000.
>
> However, I'm not an ARM expert. Can someone else confirm if
> this makes
> sense?
>
> - Chris
>

This is correct. You do need to insert a control block at the
start of your code, and make sure the whole thing starts at
address 0x00002000. This is all in the docs.

Mike
Mike, Have you actually tried downloading user firmware using FWU and
TNKernel Firmware Downloader? Does your user firmware works after
downloading?

--- In l..., "Michael Anton" wrote:
>
> > -----Original Message-----
> > From: l...
> > [mailto:l...]On Behalf
> > Of Chris Graham
> > Sent: Friday, January 19, 2007 12:48 PM
> > To: l...
> > Subject: RE: [lpc2000] Re: USB Bootloader - MCB2140 - LPC2148
> >
> >
> > I haven't confimed that this solves your problem, but the
TNKernel USB
> > bootloader documentaton says that the bootloader itself
> > resides at 0x0000000
> > - 0x00001FFF. the downloaded firmware is loaded just
> > following a control
> > block that is at address 0x00002000 - 0x0000200F. Possibly
> > the blinky code
> > needs to be linked to start at 0x00002000 and include the
> > control block?
> > Also it says that the firmware's interrupts need to be
> > located in ram at
> > 0x40000000.
> >
> > However, I'm not an ARM expert. Can someone else confirm if
> > this makes
> > sense?
> >
> > - Chris
> > This is correct. You do need to insert a control block at the
> start of your code, and make sure the whole thing starts at
> address 0x00002000. This is all in the docs.
>
> Mike
>
> -----Original Message-----
> From: l...
> [mailto:l...]On Behalf
> Of forumjnky
> Sent: Friday, January 19, 2007 6:03 PM
> To: l...
> Subject: [lpc2000] Re: USB Bootloader - MCB2140 - LPC2148
> Mike, Have you actually tried downloading user firmware using FWU and
> TNKernel Firmware Downloader? Does your user firmware works after
> downloading?
>
> --- In l..., "Michael Anton" wrote:
> >
> >

Yes, I use this as my main method for programming now. It is nice,
since it only takes 1.5 seconds to transfer my 50KB image.

Mike
Mike,
What compiler are you using? I'm using Keil uVision 3, but I'm
getting "L6938E Invalid value for --ro-base" error. Any idea what
went wrong. I followed the Linker settings from TNKernel usb_app
project.

Sonny
--- In l..., "Michael Anton" wrote:
>
> > -----Original Message-----
> > From: l...
> > [mailto:l...]On Behalf
> > Of forumjnky
> > Sent: Friday, January 19, 2007 6:03 PM
> > To: l...
> > Subject: [lpc2000] Re: USB Bootloader - MCB2140 - LPC2148
> >
> >
> > Mike, Have you actually tried downloading user firmware using FWU
and
> > TNKernel Firmware Downloader? Does your user firmware works after
> > downloading?
> >
> > --- In l..., "Michael Anton" wrote:
> > >
> > > Yes, I use this as my main method for programming now. It is nice,
> since it only takes 1.5 seconds to transfer my 50KB image.
>
> Mike
>