SPIFI program every time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPIFI program every time

2,128 Views
alancheng
Contributor I

I use  LPC4088 with SPIFI flash, SPIFI's flash is used to store some icons.When I adjust the program, I have to program the SPIFI flash every time,even if the content of the flash is not changed. it's a waste of time.Is there any way to solve this problem?

Please help me...

Labels (1)
0 Kudos
Reply
5 Replies

2,086 Views
alancheng
Contributor I

Dear Sir,
   Thank you for your reply.

When executing the program for the first time, a complete burning program (CPU_FLASH+SPIFI_FLASH) is required.

As shown in the figure below.

alancheng_1-1672191872564.png

SPIFI's flash is used to store some icons,Normally it will not be updated, but whenever I modify the content of the main program (in CPU_FLASH). I have to burn all the programs(CPU_FLASH+SPIFI_FLASH).it's a waste of time.

If I only burn the main program(As shown in the figure below),the program will not be executed correctly.

alancheng_2-1672192500869.png

What I mean is, only burn the modified cpu flash, not the unmodified SPIFI FLASH, saving time.

 

0 Kudos
Reply

2,070 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

You mean  the program spifi Flash the first time with IDE. This depends on IDE program algorithm and IDE option. 

As far as I know, Keil doesn't have this feature you requested. Keil is not NXP product, you may consult Keil for more information. program algorithm is not recommended to be revised as well.

 

 

0 Kudos
Reply

2,112 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

One solution is to arrange one or several flag ( or CRC byte) in spifi Flash. If Flash content doesn't change, the flash doesn't change.

Before programming spifi Flash, read this byte to know if Flash is changed or not. If no change, no need to program the Flash again.

Have a nice day,

Jun Zhang

0 Kudos
Reply

2,105 Views
alancheng
Contributor I
Dear Sir,

Thank you for your reply.

I'm pretty sure the flash content hasn't changed. What is changed is the program of the internal flash memory of the CPU.

The program cannot be executed correctly, when I don't  the program flash again.
0 Kudos
Reply

2,093 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

You must reprogram the spifi Flash during code running?

Can you please test the "reprogramed memory", which sector or which page must be reprogramed?

I can't reproduce your issue? can you reproduce your issue with a lpcopen demo code?

0 Kudos
Reply