Re: HC08 monitor mode, security problem
- From: "Roy Rutten" <roy.rutten.remove.this@xxxxxxxxx>
- Date: Fri, 2 Dec 2005 15:08:19 +0100
>> We use the AZ60. I checked, programming via monitor mode is the same for
>> the
>> AZ60 and the AZ60A.
>
> If the programmer treats them as the same device, then the routine that is
> loaded into the AZ60's RAM to do the mass erase must detect if it's
> running
> on a AZ60 or a AZ60A because looking at the datasheets/application notes
> shows that various registers such as the FL1CR/FL2CR are located at
> different
> addresses on the 2 variants.
You are right, there are some differences in the area of mass erasing. But
what I ment with programming via monitor mode above was using the basic
commands suchs as Read, Write, IRead, IWrite, ReadSP, Run.
> My only other suggestions are:
>
> 1) What are you actually getting back from the EPROM area when you try to
> read it ? On the variants that I use, you get $AD back when you fail
> security.
That's right, I read $AD's from de FLASH/EPROM area.
> 2) You could always write a little mass erase routine of your own in
> assembly
> language using the algorithm in the datasheet and load/execute that from
> RAM
> if your programmer will let you do that.
> 3) Does your programmer do a verify pass on the mass erase/programming
> code it's loaded into the AZ60's RAM before it has the monitor execute it
> ?
> I'm wondering if this code is getting corrupted during the loading
> process.
I just got things working (a bit) ! I used P&E's Prog08sz to mass erase the
MCU. Appearantly it does this without any warnings or errors. What I've been
trying to do until now is to bypass security after mass erase, which does
not seem to work. However, after loading the flash-programming routines in
RAM (after mass erasing), programming of FLASH seems to be possible, even
without bypassing the security! I don't know if that is the regular way to
do it (must have been misreading a lot of things then ...) but anyway, I'm
not stuck anymore !
> Other than that, are you sure that you haven't just got a faulty batch ?
Can't really tell ... I have tested some 15 or so MCU's from the same batch,
they all respond the same however.
Thanks for your help !
Regards,
Roy
.
- Follow-Ups:
- Re: HC08 monitor mode, security problem
- From: kevinjwhite
- Re: HC08 monitor mode, security problem
- References:
- HC08 monitor mode, security problem
- From: Roy Rutten
- Re: HC08 monitor mode, security problem
- From: Simon Clubley
- Re: HC08 monitor mode, security problem
- From: Roy Rutten
- Re: HC08 monitor mode, security problem
- From: Simon Clubley
- Re: HC08 monitor mode, security problem
- From: Roy Rutten
- Re: HC08 monitor mode, security problem
- From: Simon Clubley
- HC08 monitor mode, security problem
- Prev by Date: Re: Display/Render Unicode Characters?
- Next by Date: Re: Flow-charting software?
- Previous by thread: Re: HC08 monitor mode, security problem
- Next by thread: Re: HC08 monitor mode, security problem
- Index(es):
Relevant Pages
|