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?
thanks in advance!
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
hello Daniel,
I run the following code
and debug option as the following
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?
Hello kui wu,
Although the DEFlashPartition() fucntion is in PFlash, CommandSequence() function that launches the command is in SRAM.
Regards,
Daniel
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?
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.
Regards,
Daniel