How to record my program into flash memory using processor expert

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

How to record my program into flash memory using processor expert

1,547 次查看
danilolima
Contributor II

I am using the processor expert without KSDK because I not know write or read data from it . Currently I can write, read and delete data in the flash memory, but do not know how to write their own program code.I would like to know if it is possible i can do using the processor expert ?

0 项奖励
回复
4 回复数

1,466 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Danilo,

    Do you just want to put your code to the flash?

   Could you tell me what the IDE you are using? KDS?

  What the chip you are using?

   If you want to put your code to the flash, after you create the project, write the code, and build it, the code will be generated as the code which can be download to the MCU's flash  with the programmer directly.

   You don't need to use the flash command to write your code to the flash.

   If I misunderstood your question, please give me more details about your question.


Have a great day,
Jingjing

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

0 项奖励
回复

1,466 次查看
danilolima
Contributor II

Thanks for your interest in helping me . I am using the KDS , and frdm k64f . My goal is to write a program into the flash memory, and it runs from there , or by referring to the recorded location. For now it is only that, but in the future wish to make it malleable, that is , change it externally.

0 项奖励
回复

1,466 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Danilo,

      About this function, you can refer to our kinetis bootloader 2.0, which can be downloaded from this link:

Kinetis Bootloader|NXP 

     After you download it, you can find the k64 flash bootloader source code from this folder:

NXP_Kinetis_Bootloader_2_0_0\targets\MK64F12\kds\freedom_bootloader

   There still have the according document in the doc folder.

     Please refer to the flash bootloader KDS project at first, this code have the function how to write the application code to the defined flash address, then go to the new address and run the application code.

Wish it helps you!


Have a great day,
Jingjing

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

0 项奖励
回复

1,466 次查看
danilolima
Contributor II

That is, how I can write a simple command in memory ? For example a for(;;);

0 项奖励
回复