Flash writing while executing from flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Flash writing while executing from flash

1,626件の閲覧回数
CDS
Contributor I

Is it possible to write a flash page while executing code fetched from flash? (obviously I mean writing a page that doesn't contain code).

Sometimes processors have separate banks to allow this behavior but this is not the case for DSC.

 

Thank you,

CDS.

ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

372件の閲覧回数
FTSolutions
Contributor III

 

You can  write to DataFlash while executing from either Bootflash or ProgramFlash, or you can write to either Bootflash or ProgramFlash while executing from the other one, but not within the same bank, as stated.  You don't have to be executing in RAM, but you cannot be executing in the flash bank that you are trying to erase/program.

0 件の賞賛
返信

372件の閲覧回数
J2MEJediMaster
Specialist I

No. Unless the code is in a separate bank, any attempt to program the Flash is going to disrupt the reading of any code from it. You have to load the code doing the Flash programming into RAM. There are quite a few threads on this subject in the forums. Try searching for "executing/loading code from RAM" as a starting point.

 

---Tom

0 件の賞賛
返信