Henry Luong

Programming Flash, FADDR - MC9S12DG256

Discussion created by Henry Luong on Dec 9, 2008
Latest reply on Dec 16, 2008 by Henry Luong
I'm writing a bootloader to program flash. I know the three main registries that I need are:
FADDR - 16bit address of where flash data should be written to
FDATA - 16bit data of flash
FCMD - 8bit command to write/erase the flash

My question is, according to the datasheet, bit 15 of FADDR is not writable, which means I can only write flash locations mapped at 0x0000 to 0x7FFF. How can I write to the rest of the memory?

I am using HCS12 dg256

Message Edited by Henry L on 2008-12-08 06:53 PM


Added p/n to subject.

Message Edited by NLFSJ on 2008-12-16 09:52 PM