![]() |
Forum Index : Microcontroller and PC projects : Flash Write Error
Author | Message | ||||
MikeO Senior Member ![]() Joined: 11/09/2011 Location: AustraliaPosts: 275 |
I am getting a Flash Write failure on trying to save a program. I had been successfully been running a program which had code in the Library and program memory. I had made a change in the Library code and went through the re flashing exercise and ended up with a CPU Exceptiona (a had a accent over it). Can't remember the exact sequence and point of failure as of course it was a surprise. It then went into a repeat cycle of CPU exceptionà CPU exceptionà CPU exceptionà CPU exceptionà I had to stop it with the Shift! on reset. Then it signaled as below. It won't load anything into flash any more. I haven't tried yet to reload MMbasic but with the way it's behaving I wonder if its worth it, probably just replace the MX170 but it is a SOIC so will need soldering. Just wondered if anyone had experienced this. Option error - Cleared OPTION TOUCH
Processor restarted ÿÿýÿÿÿÿýÿÿýÿýÿÿýÿÿýÿýÿÿýÿýýÿýÿÿÿÿýÿÿýÿýÿÿýÿÿýÿýÿÿýÿÿýÿError: Flash write Option error - Cleared OPTION TOUCH Processor restarted > memory Flash: 0K ( 0%) Program (0 lines) 60K (100%) Free RAM: 0K ( 0%) 0 Variables 0K ( 0%) General 50K (100%) Free > Micromite MKII MMBasic Ver 5.2 Copyright 2011-2016 Geoff Graham > Micromite MKII MMBasic Ver 5.2 Copyright 2011-2016 Geoff Graham > option list > > XMODEM RECEIVE Error: Flash write > memory Flash: 0K ( 0%) Program (0 lines) 60K (100%) Free RAM: 0K ( 0%) 0 Variables 0K ( 0%) General 50K (100%) Free > Codenquilts |
||||
robert.rozee Guru ![]() Joined: 31/12/2012 Location: New ZealandPosts: 2430 |
not wanting to sound like a broken record player, but check the capacitor on the Vcap pin. this the single most common cause of peculiar errors. cheers, rob :-) |
||||
MikeO Senior Member ![]() Joined: 11/09/2011 Location: AustraliaPosts: 275 |
Thanks, I will check the cap and the power supply, it could have absolutely suddenly failed but this circuit has been functioning for several months. Codenquilts |
||||
MikeO Senior Member ![]() Joined: 11/09/2011 Location: AustraliaPosts: 275 |
All working again. I took it to the lab and checked power supply and cap, no issues there. Uploaded and Ran a small clock program , print to console - OK Set the options again for Display and Touch, Calibrated - OK Ran a couple of Peter Mathers display demo - OK Re install my software to library and main memory - OK program ran - OK I can only conclude some corruption with perhaps some connection too loosing the Options. Codenquilts |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10214 |
Mike I've seen the same issue as well - in my case only reflashing cures it. I haven't been able to tie down a cause but I think it is associated with a program load that has been interrupted or something like that |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |