EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

LPC2478 + External Flash

Started by "Rode, Dinesh (IE03x)" October 17, 2008
Hello,

Is it possible to use on chip and external flash memory at the same
time?

My code size is more than 512KB & I would like to keep some part of code
into external flash.

If yes, how can I program this code?

Thanks,

Dinesh Rode


An Engineer's Guide to the LPC2100 Series

----Original Message----
From: l...
[mailto:l...] On Behalf Of Rode, Dinesh
(IE03x) Sent: 17 October 2008 13:55 To:
l... Subject: [lpc2000] LPC2478 +
External Flash

> Hello,
>
> Is it possible to use on chip and external flash memory
> at the same time?
>
> My code size is more than 512KB & I would like to keep
> some part of code into external flash.
>
> If yes, how can I program this code?
>

Yes you can. It is all mapped in different places in the processor's
memory map. If you are using a JTAG programming device it can just
program it the same as the internal flash. I am not sure if you would do
it over the UART using FlashMagic - haven't ever done that.

--
Tim Mitchell
Hi,

> > Is it possible to use on chip and external flash memory
> > at the same time?
> >
> > My code size is more than 512KB & I would like to keep
> > some part of code into external flash.
> >
> > If yes, how can I program this code?
> > Yes you can. It is all mapped in different places in the processor's
> memory map. If you are using a JTAG programming device it can just
> program it the same as the internal flash.

Clarification: yes, it's possible over JTAG, *but* you need a tool to do
it--the IAP routines will not program an external flash for you.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
hi

Yes, you can use external flash. If you want to debug in external
flash using JTAG or JLINK, you should use flashload .d79 file to load
code to external flash , otherwise you could not debug in external
flash. This kind of .d79 file of external flash should be made by
yourself.

At last, you can use J-Flash or H-JTAG SW to download the code to
external nor flash. Using hex format or bin format . I think hex
format is simple . Because if you use bin format, its start address
is 0x00000000, final you will get a large bin file.
Regards
Vincent

--- In l..., "Paul Curtis" wrote:
>
> Hi,
>
> > > Is it possible to use on chip and external flash memory
> > > at the same time?
> > >
> > > My code size is more than 512KB & I would like to keep
> > > some part of code into external flash.
> > >
> > > If yes, how can I program this code?
> > >
> >
> > Yes you can. It is all mapped in different places in the
processor's
> > memory map. If you are using a JTAG programming device it can just
> > program it the same as the internal flash.
>
> Clarification: yes, it's possible over JTAG, *but* you need a tool
to do
> it--the IAP routines will not program an external flash for you.
>
> --
> Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
>

Hello,

Thanks for the information.

In continuation with below communication I would like to know the flow
of execution.

For Example.

If my code size is 900KB, Will JTAG Programming device write first 512KB
into on chip flash and then remaining into external flash?

How exactly will it execute at run time when I access code from external
flash? Do I need to add some code in startup file or controller

Will take care to fetch and execute instructions from external flash?

Thanks,

Dinesh

________________________________

From: l... [mailto:l...] On Behalf
Of Tim Mitchell
Sent: Friday, October 17, 2008 6:30 PM
To: l...
Subject: RE: [lpc2000] LPC2478 + External Flash

----Original Message----
From: l...
[mailto:l... ] On
Behalf Of Rode, Dinesh
(IE03x) Sent: 17 October 2008 13:55 To:
l... Subject:
[lpc2000] LPC2478 +
External Flash

> Hello,
>
> Is it possible to use on chip and external flash memory
> at the same time?
>
> My code size is more than 512KB & I would like to keep
> some part of code into external flash.
>
> If yes, how can I program this code?
>

Yes you can. It is all mapped in different places in the processor's
memory map. If you are using a JTAG programming device it can just
program it the same as the internal flash. I am not sure if you would do
it over the UART using FlashMagic - haven't ever done that.

--
Tim Mitchell


Hi,

I have to use an external flash for keeping my entire code and also want to boot from the external flash.

I know JTAG can be used to store the code in the external flash, in this method the JTAG first writes the code in internal flash and the remaining code in external flash. but I want to use only the external flash.

In this case what changes do we need to make in the bootloader?
Can someone brief the process?

-Sayali

--- In l..., "hjiongh" wrote:
>
> hi
>
> Yes, you can use external flash. If you want to debug in external
> flash using JTAG or JLINK, you should use flashload .d79 file to load
> code to external flash , otherwise you could not debug in external
> flash. This kind of .d79 file of external flash should be made by
> yourself.
>
> At last, you can use J-Flash or H-JTAG SW to download the code to
> external nor flash. Using hex format or bin format . I think hex
> format is simple . Because if you use bin format, its start address
> is 0x00000000, final you will get a large bin file.
> Regards
> Vincent
>
> --- In l..., "Paul Curtis" wrote:
> >
> > Hi,
> >
> > > > Is it possible to use on chip and external flash memory
> > > > at the same time?
> > > >
> > > > My code size is more than 512KB & I would like to keep
> > > > some part of code into external flash.
> > > >
> > > > If yes, how can I program this code?
> > > >
> > >
> > > Yes you can. It is all mapped in different places in the
> processor's
> > > memory map. If you are using a JTAG programming device it can just
> > > program it the same as the internal flash.
> >
> > Clarification: yes, it's possible over JTAG, *but* you need a tool
> to do
> > it--the IAP routines will not program an external flash for you.
> >
> > --
> > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
>


The 2024 Embedded Online Conference