program partition command

cancel
Showing results for 
Search instead for 
Did you mean: 

program partition command

210 Views
Contributor II

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
5 Replies

148 Views
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

148 Views
Contributor II

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

148 Views
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

148 Views
Contributor II

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

148 Views
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