Erase Flash Pages works incorrectly...

Started by Jan Waclawek, July 06, 2008, 05:05:19 AM

Previous topic - Next topic

Jan Waclawek

... erasing blocks 0 and/or 1 only (I installed a freshly downloaded version of FM to confirm).

This is most probably the classical pitfall of sending "page number" rather than address of the first byte in page - but I was lazy to verify by sniffing the communication ;-)

While speaking about page erase, could you please add an Erase Pages used by Hex File option? Thanks.

Jan Waclawek

Andy Ayre

If I recall, the failure to erase some flash blocks was due to a bug in the bootloader. Are you running the latest version? I know this problem has been posted on here several times in the past.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

Jan Waclawek

Quote from: Andy Ayre on July 07, 2008, 09:03:19 AM
If I recall, the failure to erase some flash blocks was due to a bug in the bootloader. Are you running the latest version? I know this problem has been posted on here several times in the past.

Although I am running bootloader v4 (as came with the chip), I am not quite convinced this is the case, sorry. When I will grab some time to get back to my '51 hobby I will make a sniffer cable and post the result...

Jan

Andy Ayre

Although there may be other possible causes, upgrading the bootloader is a quick and easy test. Let us know what you find out.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

Jan Waclawek

Quote from: Andy Ayre on July 17, 2008, 01:18:01 PM
Although there may be other possible causes, upgrading the bootloader is a quick and easy test. Let us know what you find out.

Andy
Hummmm....

I tried and it indeed does work; however, I am now quite convinced that it is FM which behaves in a different way for the v4 and v7 bootloader. I will make more experiments and report.

JW



Jan Waclawek

OK so I have to apologize, Andy - yes, version 4 of bootloader is flawed as far as page erase is concerned.

Jan Waclawek