Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

Discussion Groups | 68HC12 | mc9s12dg128b flash protection

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

mc9s12dg128b flash protection - ericshufro - Jun 16 13:08:00 2003

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




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )