Andreas Oeri

How to protect Flash with FLBPR??? (MC68HC908)

Discussion created by Andreas Oeri on Aug 8, 2006
Latest reply on Aug 10, 2006 by Andreas Oeri

I would like to protect my flash with the FLBPR register. The datasheet says: "The range of the protected area starts from a location defined by FLBPR and ends to the bottom of the FLASH memory ($FFFF)."
So I can only protect an area at the end of the flash-addressspace. Unfortunately my program-code is stored at the beginning of the flash-addressspace. The free pages I could use for my data are at the end. How can I then protected the program-code from being over-written by mistake? As far as I know it's not possible to de- and reactivate the protection. So I need to place the program-code at the end of the flash-addressspace and use the beginning for my data. But how can I configure this with CodeWarrior?

Thanks a lot.