program partition command

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

program partition command

2,368 次查看
814420552
Contributor III

hello,

   in manual reference  i found rhe following description, it means call the partiton command can't run in Flash, thus means it must execute this command in SRAM.  is my understanding right? 

  if so. why i can execute partition command in Flash code and partition is also successful?

pastedImage_1.png

thanks in advance!

0 项奖励
回复
5 回复数

2,306 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello 814420552@qq.com,

Yes, it must be in SRAM.

Are you sure the code that launches the command is in the flash?

The SDK Flash driver has the FLASH_DRV_CommandSequence() that clears CCIF in an SRAM section.

 

Regards,

Daniel

0 项奖励
回复

2,306 次查看
814420552
Contributor III

hello Daniel,

 I run the following code 

pastedImage_1.png

and  debug option as the following

pastedImage_2.png

      above operation also can partition successly? code run in flash but it's not in SRAM!  

    I  don't know why?    Can you help me?

0 项奖励
回复

2,306 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello kui wu,

Although the DEFlashPartition() fucntion is in PFlash, CommandSequence() function that launches the command is in SRAM.

pastedImage_1.png

pastedImage_2.png

Regards,

Daniel

0 项奖励
回复

2,306 次查看
814420552
Contributor III

Dear Daniel,

   it seems that all the Flash command will call function CommandSequence() ,  but I guess the reason why this function  put in RAM is for speedup, except for this, what's the other reason?

0 项奖励
回复

2,306 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello 814420552@qq.com,

The CommandSequence() function must not be in the flash block (or partition) that is being modified by the command.

The function is in SRAM to avoid that.

pastedImage_2.png

Regards,

Daniel

0 项奖励
回复