Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | ISP Programming of LPC2148 using an Application Program in VC#.net

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

ISP Programming of LPC2148 using an Application Program in VC#.net - malzki7480 - Jul 22 5:35:14 2008

Hi,
I am a newbie in hardware programming.
I have a project that requires firmware update of a device that uses
LPC2148 CPU.
There is already an application program (written in Visual C#.net)
that throws data (buffered data of 64 bytes per sending) to the
device via USB interface.
The device is able to get this data as far as the results of my
debugging are concerned. :)
My main problem now is how to write the received data to the Flash
ROM of LPC2148.
The user code starts at 0x4000.
Please give me advice or samples that I could study to make my
program work.
The main reason why it needs an application program that updates
firmware via USB is that there are future updates for this device and
once they are out, there should be an easy way for users to update
their device.
Thank you.
Marilou
------------------------------------



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


Re: ISP Programming of LPC2148 using an Application Program in VC#.net - "tom.ravelingien" - Jul 24 7:56:08 2008

Hi,

I am not sure that you can directly program the flash ROM by USB.
But you can do it by UART (if you have USB to RS232 adaptator it's
possible).

There are not a lot of source for ISP programming but have you read
this PDF ? It's usefull to understand how ISP works :

http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/an10356.pdf

By searching this PDF, I have also found 'USB secondary ISP
bootloader' here :

http://www.standardics.nxp.com/support/documents/microcontrollers/zip/an10711.zip

I'm not sure that is really what you want but it's usefull
informations for ISP...

Regards
Tom

--- In l...@yahoogroups.com, "malzki7480" wrote:
>
> Hi,
> I am a newbie in hardware programming.
> I have a project that requires firmware update of a device that uses
> LPC2148 CPU.
> There is already an application program (written in Visual C#.net)
> that throws data (buffered data of 64 bytes per sending) to the
> device via USB interface.
> The device is able to get this data as far as the results of my
> debugging are concerned. :)
> My main problem now is how to write the received data to the Flash
> ROM of LPC2148.
> The user code starts at 0x4000.
> Please give me advice or samples that I could study to make my
> program work.
> The main reason why it needs an application program that updates
> firmware via USB is that there are future updates for this device and
> once they are out, there should be an easy way for users to update
> their device.
> Thank you.
> Marilou
>

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



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

Re: ISP Programming of LPC2148 using an Application Program in VC#.net - rtstofer - Jul 24 10:11:53 2008

--- In l...@yahoogroups.com, "malzki7480" wrote:
>
> Hi,
> I am a newbie in hardware programming.
> I have a project that requires firmware update of a device that uses
> LPC2148 CPU.
> There is already an application program (written in Visual C#.net)
> that throws data (buffered data of 64 bytes per sending) to the
> device via USB interface.
> The device is able to get this data as far as the results of my
> debugging are concerned. :)
> My main problem now is how to write the received data to the Flash
> ROM of LPC2148.
> The user code starts at 0x4000.
> Please give me advice or samples that I could study to make my
> program work.
> The main reason why it needs an application program that updates
> firmware via USB is that there are future updates for this device and
> once they are out, there should be an easy way for users to update
> their device.
> Thank you.
> Marilou
>

Read the User Manual section about IAP (In Application Programming).
There are certain requirements like running the programming code in
RAM (relocate it from flash) but this type of thing has been done.

If you search the archives you will find MANY discussions including
using SD/MMC and maintaining backup copies in flash.

You can get sample '2148 code from http://jcwren.com/arm/

Richard

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



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

Re: ISP Programming of LPC2148 using an Application Program in VC#.net - malzki7480 - Jul 25 9:05:48 2008

tom, thanks for your reply.
I am now able to do the ISP programming using my application program
(in VB though but I think I can still manage to shift it to VC#) and
through the USB port. :)
But my problem is it only works for 64kb of codes.
Somewhere in the source code, there is a mapping of the application
code which only limits it to reside starting at address 0x4000 to
0xFFFF.
This is what I am trying to figure out now. I am only recycling a
piece of code for this project. :)
Thanks for the files. They will surely help me understand more in
programming the LPC2148 device.

--- In l...@yahoogroups.com, "tom.ravelingien"
wrote:
>
> Hi,
>
> I am not sure that you can directly program the flash ROM by USB.
> But you can do it by UART (if you have USB to RS232 adaptator it's
> possible).
>
> There are not a lot of source for ISP programming but have you read
> this PDF ? It's usefull to understand how ISP works :
http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/
an10356.pdf
>
> By searching this PDF, I have also found 'USB secondary ISP
> bootloader' here :
http://www.standardics.nxp.com/support/documents/microcontrollers/zip/
an10711.zip
>
> I'm not sure that is really what you want but it's usefull
> informations for ISP...
>
> Regards
> Tom
>
> --- In l...@yahoogroups.com, "malzki7480" wrote:
> >
> > Hi,
> >
> >
> > I am a newbie in hardware programming.
> > I have a project that requires firmware update of a device that
uses
> > LPC2148 CPU.
> > There is already an application program (written in Visual
C#.net)
> > that throws data (buffered data of 64 bytes per sending) to the
> > device via USB interface.
> > The device is able to get this data as far as the results of my
> > debugging are concerned. :)
> > My main problem now is how to write the received data to the
Flash
> > ROM of LPC2148.
> > The user code starts at 0x4000.
> > Please give me advice or samples that I could study to make my
> > program work.
> > The main reason why it needs an application program that updates
> > firmware via USB is that there are future updates for this device
and
> > once they are out, there should be an easy way for users to
update
> > their device.
> > Thank you.
> >
> >
> > Marilou
>
------------------------------------



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