Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
|
Why is it that when i set the security byte (ff0f) to 00 (security enabled), i cant write the eeprom during runtime? All of my code is in block 0 (c000->ffff). Some variables are stored in eeprom which need to be changed during runtime (800->bff). i have tried setting the flash protection register in many ways, even disableing flash protection. ORG $FF0D ;block 0 flash protection fcb $ff ;disabled. Do you need to have the flash security register set, in order for the flash protection registers to have any affect? Either way, it either secures everything (bdm disabled as well) when i set device secutity to 00, and i cant write the eeprom, or it secures nothing if security is disabled, and the flash protection registers are enabled. Any idea? What am i doing wrong? Thanks for the help. --Eric |