How to configure Flash Programmer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to configure Flash Programmer

跳至解决方案
877 次查看
davidzhou
Contributor V

Hi,

I have K60 tower board: MK60FN1M0VLQ12

I am using Multi-Link FX for downloading program into flash.

In my MQX project, I need to reserve some flash memory for program configuration data. Every time when flash program is downloaded, the flash programmer erases whole 1M flash memory. How do I configure flash programmer that not to erase al flash memory, or only upto the size of the program?

Thank you,

David Zhou

0 项奖励
1 解答
641 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi.

In a debugging session, the CodeWarrior Attach launch configuration skips setting up the target hardware and downloading the program image to that target hardware. that's to say, with "Attach", all flash memory on chip will not be erased during hardware connect.

pastedImage_0.png
Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
7 回复数
642 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi.

In a debugging session, the CodeWarrior Attach launch configuration skips setting up the target hardware and downloading the program image to that target hardware. that's to say, with "Attach", all flash memory on chip will not be erased during hardware connect.

pastedImage_0.png
Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
641 次查看
davidzhou
Contributor V

Thank you, Jennie.

David Zhou

0 项奖励
641 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi David:

I think you can edit the flash loader to do that.

Please check the following picture , if you are using IAR .

pastedImage_0.png

Regards

Daniel

0 项奖励
641 次查看
davidzhou
Contributor V

Hi Daniel,

Sorry, I did not say that I am using Code Warrior.

Thank You,

David Zhou

0 项奖励
641 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi David

For code warrior, please click the Advanced Programming Options in Hardware or simulator connection. Then you will see the Non-Volatile Memory Preservation.

pastedImage_0.png

Regards

Daniel

0 项奖励
641 次查看
davidzhou
Contributor V

Program loaded, and then 1 second later, I got:

pastedImage_0.png

and the program stops running.

0 项奖励
641 次查看
davidzhou
Contributor V

Hi Daniel,

I change the flash memory as :

pastedImage_0.png

Program size is less than 0x60000.

But it loaded, and I got runtime error.

pastedImage_2.png

I also tried Enable Flash Programming Dialog. It didn't show the dialog. It displays loading info into console. and I got the same runtime error. GDI connection lost.

Thank you,

David Zhou

0 项奖励