EmbeddedRelated.com
Forums

Philips Flash Utility V2.2.1 question

Started by gregdeuerling February 11, 2005


I have a program that has several 16x16 tables that are stored in
fixed locations in flash memory. I'm using Keil's compiler and using
the _at_ attribute to do this, it works great.

My tables change quite often but the code does not change at all.
I'd like a way to be able to reprogram just the tables in flash and
not touch the code section.

I was wanting to use Philips Flash Utility (PFU from here on) to
program JUST the table locations I want to change. I generate a
hex386 file of just the table data and fire up the "Flash Buffer
Operations" in PFU and load the hex file. My new tables show up
exactly where they are supposed to be, but when I hit the "Upload to
Flash" button PFU programs the entire flash memory. I have
the "selected range" button selected with the proper range in it.

The only way I've gotten this to work is to open the orginal hex
file into a text editor and append the new table hex file to the end
of it.

Can I not just program certain pages in flash and leave the rest
alone?

Thanks...



Re: Philips Flash Utility V2.2.1 question
Re: Philips Flash Utility V2.2.1 question
Re: Philips Flash Utility V2.2.1 question
Re: Philips Flash Utility V2.2.1 question

An Engineer's Guide to the LPC2100 Series

At 07:40 PM 2/11/05 +0000, gregdeuerling wrote:
>Can I not just program certain pages in flash and leave the rest
>alone?

Another option would be to use Martins LPC21ISP program. I think it
programs the whole flash as well but it would be easy enough to modify it
to do a subset.

Robert

" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "

Kelvin Throop, III



Re: Philips Flash Utility V2.2.1 question
Re: Philips Flash Utility V2.2.1 question
Sent: Friday, February 11, 2005 1:47 PM
To: ;
Subject: Re: [lpc2000] Philips Flash Utility V2.2.1 question

At 07:40 PM 2/11/05 +0000, gregdeuerling wrote:
>Can I not just program certain pages in flash and leave the rest
>alone?

> From: Robert Adsett [mailto:]
> Another option would be to use Martins LPC21ISP program. I think
> it programs the whole flash as well but it would be easy enough
> to modify it to do a subset.

Hi Robert,

Martin's webpage is no longer there?
It was there a few weeks ago?
Anyways, I'm using a LPC2194 and Martins web page said that LPC21ISP did
not support the newer chips like the LPC2194 with 256K of flash. I've
never tried it for that reason.

Thanks for the reply! Greg Deuerling
Fermi National Accelerator Laboratory
Feynman Computing Center, Room 370, MS 368
P.O.Box 500 Batavia, IL 60510



Re: Philips Flash Utility V2.2.1 question
Hello,

> Martin's webpage is no longer there?
> It was there a few weeks ago?
> Anyways, I'm using a LPC2194 and Martins web page said that LPC21ISP did
> not support the newer chips like the LPC2194 with 256K of flash. I've
> never tried it for that reason.

The website still exists under this address, but it seems to have a
temporary failure. I contact my ISP for the reason !

You can try to programm small programm, but the newer chips have a different
page structure.
Usually you don't break anything, but it just reports an error.

Regards,

Martin


At 02:07 PM 2/11/05 -0600, Greg Deuerling wrote:
>At 07:40 PM 2/11/05 +0000, gregdeuerling wrote:
> >Can I not just program certain pages in flash and leave the rest
> >alone?
>
> > From: Robert Adsett
> > Another option would be to use Martins LPC21ISP program. I think
> > it programs the whole flash as well but it would be easy enough
> > to modify it to do a subset.
>Anyways, I'm using a LPC2194 and Martins web page said that LPC21ISP did
>not support the newer chips like the LPC2194 with 256K of flash. I've
>never tried it for that reason.

Ahhh, it does need updating for that as well. It should be straight
forward, but apparently those with an interest haven't had either the time
or a chip to work with.

Robert

" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "

Kelvin Throop, III


Hello again,

> Martin's webpage is no longer there?

Webpage is online again :-)

see http://www.clibb.de/lpc21xx/isp/index.html or

http://guest.engelschall.com/~martin/lpc21xx/isp/index.html (same server)

Regards,

Martin




Try using Keils JTAG loader. I have had to do the same sort of thing
to test IAP erase rotines and I was able to fill the flash with a
pattern and load code through the JTAG without disturbing the extra
flash space. Make sure that, in the Utility settings that the flash
loader is set to erase sectors, not the entire chip.

Richard

te:
>
>
> I have a program that has several 16x16 tables that are stored in
> fixed locations in flash memory. I'm using Keil's compiler and using
> the _at_ attribute to do this, it works great.
>
> My tables change quite often but the code does not change at all.
> I'd like a way to be able to reprogram just the tables in flash and
> not touch the code section.
>
> I was wanting to use Philips Flash Utility (PFU from here on) to
> program JUST the table locations I want to change. I generate a
> hex386 file of just the table data and fire up the "Flash Buffer
> Operations" in PFU and load the hex file. My new tables show up
> exactly where they are supposed to be, but when I hit the "Upload to
> Flash" button PFU programs the entire flash memory. I have
> the "selected range" button selected with the proper range in it.
>
> The only way I've gotten this to work is to open the orginal hex
> file into a text editor and append the new table hex file to the end
> of it.
>
> Can I not just program certain pages in flash and leave the rest
> alone?
>
> Thanks...



> From: Richard [mailto:]
> Sent: Friday, February 11, 2005 3:16 PM
> To:
> Subject: [lpc2000] Re: Philips Flash Utility V2.2.1 question
>
> Try using Keils JTAG loader. I have had to do the same sort of
> thing to test IAP erase rotines and I was able to fill the flash
> with a pattern and load code through the JTAG without disturbing
> the extra flash space. Make sure that, in the Utility settings
> that the flash loader is set to erase sectors, not the entire chip.

Yes I can do it that way, but the guys in the field don't have a seat of
Keil's CKARM and JTAG loader. Was looking not to purchase another seat of
CKARM :)

It's no big deal appending the new table hex file to the end of the code
hex file. The guys who are updating the tables or VERY non-techi and
asking them to do this with a text editor is asking for trouble. I'll
have to come up with a program or script that does it form them, then
fires up the flash utility with the file loaded. Then all they have to do
is push "Program".

Thanks for the reply... Greg Deuerling
Fermi National Accelerator Laboratory
Feynman Computing Center, Room 370, MS 368
P.O.Box 500 Batavia, IL 60510