program partition command

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

program partition command

2,364 Views
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 Kudos
Reply
5 Replies

2,302 Views
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 Kudos
Reply

2,302 Views
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 Kudos
Reply

2,302 Views
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 Kudos
Reply

2,302 Views
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 Kudos
Reply

2,302 Views
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 Kudos
Reply