Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:38 07 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Flash Write Error

Author Message
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 04:17pm 19 Sep 2016
Copy link to clipboard 
Print this post

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 Zealand
Posts: 2430
Posted: 04:42pm 19 Sep 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 275
Posted: 06:12pm 19 Sep 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 275
Posted: 07:23pm 19 Sep 2016
Copy link to clipboard 
Print this post

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.Edited by MikeO 2016-09-21
Codenquilts
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10214
Posted: 09:02pm 19 Sep 2016
Copy link to clipboard 
Print this post

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

 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025