Programming the external flash in a ROMless microcontroller (NXP LH79520)

Started by Deven Topiwala December 5, 2007
Hi All,

I am planning to use LH79520 in a project.
I have a basic Q.

LH79520 is a ROMless device (at least the one from NXP does not have in-built flash, the sharp device has some in-built flash).

How do I write the program in the flash?

One way of doing this is executing the code from SRAM and writing in the flash from there.
Is there any tool available that supports different types of flash devices connected to a LH79520 CPU? Probably, I should ask the Q this way. Is there any free tool available for this purpose? I know a couple of similar tools available from Macraigor and Embest.
I will be using JTAG to connect to the target CPU.

Please correct me if I am wrong somewhere, I am not an expert in ARM7.

Also, I hope that the LH79520 devices are available in the future. I am not certain about their availibility and support. I see very few support documents on the NXP website. Although the BlueStreak series is available at digikey, the NXP website does not say anything about it. It will be helpful, if someone can comment on this.

Thanks,
Deven
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

An Engineer's Guide to the LPC2100 Series

Hi Deven,

that is not a problem. Whether you program internal flash on almost
any ARM device on the market or you program external Flash, the SEGGER
J-Link can do that for you.
http://www.segger.com/jlink.html

Not relevant for your ROMless device but for NXP devices with on-chip
flash, you even get the breakpoints in embedded Flash option for free,
just download the latest version of SEGGER J-Link software
http://www.segger.com/download_jlink.html

To get more information on SEGGER products or help using J-Link,
J-Trace, emWin, embOS, emUSB, emFile or embOS/IP please check
http://www.segger.com
or sign up the the ALL NEW SEGGER FORUM http://www.segger2.com

Best regards, Robert

--- In l..., Deven Topiwala wrote:
>
> Hi All,
>
> I am planning to use LH79520 in a project.
> I have a basic Q.
>
> LH79520 is a ROMless device (at least the one from NXP does not have
in-built flash, the sharp device has some in-built flash).
>
> How do I write the program in the flash?
>
> One way of doing this is executing the code from SRAM and writing in
the flash from there.
> Is there any tool available that supports different types of flash
devices connected to a LH79520 CPU? Probably, I should ask the Q this
way. Is there any free tool available for this purpose? I know a
couple of similar tools available from Macraigor and Embest.
> I will be using JTAG to connect to the target CPU.
>
> Please correct me if I am wrong somewhere, I am not an expert in ARM7.
>
> Also, I hope that the LH79520 devices are available in the future. I
am not certain about their availibility and support. I see very few
support documents on the NXP website. Although the BlueStreak series
is available at digikey, the NXP website does not say anything about
it. It will be helpful, if someone can comment on this.
>
> Thanks,
> Deven
>
____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
Hi Ken,

Thanks for your reply.

I am designing my custom board based on LH79520 with external SDRAM and external flash.
I was looking for a way to directly write to the external flash connected to the CPU using JTAG. I think this is the easiet way to go about, if you have a readily available tool.

But, I did think of the burner code from SRAM.

Thanks,
Deven
----- Original Message ----
From: kendwyer
To: l...
Sent: Thursday, December 6, 2007 2:34:09 AM
Subject: [lpc2000] Re: Programming the external flash in a ROMless microcontroller (NXP LH79520)

Hello Deven,

What JTAG are you using and what board?

Writing a routine to program the flash should be straight forward.
There should be sample codes out there for CFI flash devices.
WRT procedure, you are on the right track, download your 'burner' code
to SRAM and execute. The image you want to burn to flash can be stored
somewhere else in SRAM.

Some of the tool vendors have eval/trial versions of their IDE tools
that you could use for your flash burner (Check that you JTAG is
supported).

Here is a link to the NXP support page for this device:
http://www.standard ics.nxp.com/ support/developm ent.tools/ lh7.lh7a/

Good luck
Ken

--- In lpc2000@yahoogroups .com, Deven Topiwala wrote:
>
> Hi All,
>
> I am planning to use LH79520 in a project.
> I have a basic Q.
>
> LH79520 is a ROMless device (at least the one from NXP does not have
in-built flash, the sharp device has some in-built flash).
>
> How do I write the program in the flash?
>
> One way of doing this is executing the code from SRAM and writing in
the flash from there.
> Is there any tool available that supports different types of flash
devices connected to a LH79520 CPU? Probably, I should ask the Q this
way. Is there any free tool available for this purpose? I know a
couple of similar tools available from Macraigor and Embest.
> I will be using JTAG to connect to the target CPU.
>
> Please correct me if I am wrong somewhere, I am not an expert in ARM7.
>
> Also, I hope that the LH79520 devices are available in the future. I
am not certain about their availibility and support. I see very few
support documents on the NXP website. Although the BlueStreak series
is available at digikey, the NXP website does not say anything about
it. It will be helpful, if someone can comment on this.
>
> Thanks,
> Deven
>
____________ _________ _________ _________ _________ _________ _
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ
>
>

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--- In l..., Deven Topiwala wrote:
>
...
> How do I write the program in the flash?

Can I ask what Flash you will be using? There does not seem to be a
lot of choices anymore (most seem to have EOLed).
Thanks, Paul
From: Deven Topiwala

> LH79520 is a ROMless device (at least the one from NXP does not have
> in-built flash, the sharp device has some in-built flash).

>
> How do I write the program in the flash?

You may find this useful: http://jtager.sourceforge.net/

It doesn't support too many FLASH-chips but it is quite easy to extend in that respect.

--

Timo

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Hello Deven,

What JTAG are you using and what board?

Writing a routine to program the flash should be straight forward.
There should be sample codes out there for CFI flash devices.
WRT procedure, you are on the right track, download your 'burner' code
to SRAM and execute. The image you want to burn to flash can be stored
somewhere else in SRAM.

Some of the tool vendors have eval/trial versions of their IDE tools
that you could use for your flash burner (Check that you JTAG is
supported).

Here is a link to the NXP support page for this device:
http://www.standardics.nxp.com/support/development.tools/lh7.lh7a/

Good luck
Ken

--- In l..., Deven Topiwala wrote:
>
> Hi All,
>
> I am planning to use LH79520 in a project.
> I have a basic Q.
>
> LH79520 is a ROMless device (at least the one from NXP does not have
in-built flash, the sharp device has some in-built flash).
>
> How do I write the program in the flash?
>
> One way of doing this is executing the code from SRAM and writing in
the flash from there.
> Is there any tool available that supports different types of flash
devices connected to a LH79520 CPU? Probably, I should ask the Q this
way. Is there any free tool available for this purpose? I know a
couple of similar tools available from Macraigor and Embest.
> I will be using JTAG to connect to the target CPU.
>
> Please correct me if I am wrong somewhere, I am not an expert in ARM7.
>
> Also, I hope that the LH79520 devices are available in the future. I
am not certain about their availibility and support. I see very few
support documents on the NXP website. Although the BlueStreak series
is available at digikey, the NXP website does not say anything about
it. It will be helpful, if someone can comment on this.
>
> Thanks,
> Deven
>
____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>