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.