Stack for flash programming

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

Stack for flash programming

974 次查看
vishaka_maithil
Contributor I

Dear freinds,

 

why do we need Do_on_Stack.asm routines for programming flash memory of any controller? what is its importance.. Can anyone please explain me in detail??

标签 (1)
0 项奖励
回复
1 回复

857 次查看
J2MEJediMaster
Specialist I

For many processors with built-in flash, you cannot be executing code from the same flash memory that you are trying to write to. To work around this problem, the usual procedure is to copy the routines used to do the write-to-flash from flash memory into RAM, and then execute them in RAM while writing to flash memory. The routines you mentioned are designed to perform the copy of the write-to-flash routines into RAM (in this case, the stack).

 

I hope this helps clear things up.

 

---Tom

0 项奖励
回复