68HC912 D60A Flash Boot Protect not working(?)

Started by Andy Reynolds November 27, 2002
Hi Folks,

Anyone had any strange experiences with the D60A bootp flag.

I have it set and I still see my top (8000-ffff) 32k block getting
completely erased each time I erase that block - the top 8K should be
safe.

As far as I can see I am setting bootp in feemcr and feelck very
early after reset to stop erase/prog of the boot block.

If I print the F4/F5 contents they are both 0x01.

Any ideas?

Cheers

Andy



> Hi Folks,
>
> Anyone had any strange experiences with the D60A bootp flag.
>
> I have it set and I still see my top (8000-ffff) 32k block getting
> completely erased each time I erase that block - the top 8K should be
> safe.
>
> As far as I can see I am setting bootp in feemcr and feelck very
> early after reset to stop erase/prog of the boot block.
>
> If I print the F4/F5 contents they are both 0x01.

No such experiences. D60A starts with bootp32(28) set and my bootloader
writes only
to FEE32LCK to lock bootp32. First thing I do for blank part is clearing of
F5 because
I can't erase and write to bootblock. > Any ideas?
Does oscilator start perfectly? It could be a problem. Wire reset button
and check bootp/erase
with stable clock.

Edward

> Cheers
>
> Andy


"Andy Reynolds" <> wrote:

> Anyone had any strange experiences with the D60A bootp flag.

Works as expected in my own bootloader.

> I have it set and I still see my top (8000-ffff) 32k block getting
> completely erased each time I erase that block - the top 8K should be

If I don't touch it after reset, the boot block is protected. If I
clear it afterwards, the boot block can be erased.

> As far as I can see I am setting bootp in feemcr and feelck very

FEEMCR has no "BOOTP" bit but a "LOCK" bit.

> early after reset to stop erase/prog of the boot block.

BOOTP should already be set out from reset.

Oliver




Thanks for your help guys - I will strip out the software until I get
it to work ,

cheers

Andy

--- In 68HC12@y..., "Oliver Betz" <list_ob@g...> wrote:
> "Andy Reynolds" <eg@a...> wrote:
>
> > Anyone had any strange experiences with the D60A bootp flag.
>
> Works as expected in my own bootloader.
>
> > I have it set and I still see my top (8000-ffff) 32k block
getting
> > completely erased each time I erase that block - the top 8K
should be
>
> If I don't touch it after reset, the boot block is protected. If I
> clear it afterwards, the boot block can be erased.
>
> > As far as I can see I am setting bootp in feemcr and feelck very
>
> FEEMCR has no "BOOTP" bit but a "LOCK" bit.
>
> > early after reset to stop erase/prog of the boot block.
>
> BOOTP should already be set out from reset.
>
> Oliver