Armite F4 loosing program


Author Message
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 959
Posted: 10:05am 03 Feb 2025      

I have looked at the code but have not seen anything that might cause it. I have made some changes that may help narrow it down or may even fix it if its due to a spurious MMBasic reset. (Which is the only think I can see which would clear the Program Memory and leave the firmware intact.) PC13 was implicated with the SDCard in the past so maybe something is triggered when writing your log file.

There are two things in the firmware.
1. An MMBasic Reset will report itself on the console at the restart after the reset so you know it has happened.
2. An MMBasic Reset will only be triggered during a Power Restart. Once  MMBasic is running it will not trigger an MMBasic Reset no matter what conditions are placed on PC13.

This firmware requires a GND on PC13 to trigger the MMBasic Reset as before.
3.3V on PC13 will trigger a switch to the serial console, again only at a Power Restart.

The startup banner at an MMBasic Reset.

> ARMmite MMBasic Version 5.07.02b4 (PC13 Reset)
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

!!! MMBasic Reset !!!


A little test program to show it can't be killed once it starts.???

Print "Program Available"
WatchDog 2000
Do
 Pause 3000
Loop
SUB mm.startup
 Option autorun ON
End Sub



The firmware
ArmmiteF407PC13Reset.zip