SPIFI program every time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPIFI program every time

2,133件の閲覧回数
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...

ラベル(1)
0 件の賞賛
返信
5 返答(返信)

2,091件の閲覧回数
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 件の賞賛
返信

2,075件の閲覧回数
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 件の賞賛
返信

2,117件の閲覧回数
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 件の賞賛
返信

2,110件の閲覧回数
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 件の賞賛
返信

2,098件の閲覧回数
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 件の賞賛
返信