Peder Alm

Can I run a FLASH write routine from FLASH?

Discussion created by Peder Alm on Nov 20, 2008
Latest reply on Nov 20, 2008 by Steve Mcaslan
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.