Can I run a FLASH write routine from FLASH?

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

Can I run a FLASH write routine from FLASH?

1,306件の閲覧回数
pederalm
Contributor II
Can I erase a part of flash with a program in FLASH? Or do I have to erase flash from a RAMprogram?
 
This is what I like to do:
 
I use the MC9S12XDP512 with 512k flash. I want to store data at page $E8-$EF (block 2, 128k). All other FLASH is for program code. Sometimes I would like to change the data located in block 2. Is it possible to do that with a FLASH routine executing from FLASH or do I have to change the data from a RAM routine? My idea is to have the FLASH routines in the unpaged FLASH area.
ラベル(1)
0 件の賞賛
返信
1 返信

510件の閲覧回数
Steve
NXP Employee
NXP Employee
Yes, you can erase & program one flash block while running in another. You cannot erase or program the flash block in which you are running.
0 件の賞賛
返信