I was running the following:
UF2 bootloader
MMBasic 5.09
Yesterday, the following setup was working: ”option autorun on” persisted across power-down cycles.
A program I loaded into “FLASH 1” ran, and the boot process went as expected.
A file was loaded into “FLASH 1”, which ran…
A file on the SD card displaying a boot sequence (With Graphics and Sound) and then running…
A menu of BASIC programs on B:.
Today…
I loaded new firmware (MMBVASIC V6+), and I did not like it as a daily carry.
Needs work, so I thought I would revert.
Now… I cannot get:
anything to revert
OPTION AUTORUN will not persist
The only thing that sometimes persists is that the last loaded program runs when
“OPTION AUTOTUN ON” is set.
What I have done:
set OPTION AUTORUN ON
set OPTION AUTORUN ON, NORESET
LOADED AUTORUN.BAS into FLASH 1
SAVED an AUTORUN.BAS onto A:
in almost all combinations.
Nothing persists past maybe the first attempt.
I have not looked at MM.STARTUP, as this was not part of the previously working solution.
I have followed the instructions in the MMBASIC Word doc for V5.09 and V6+
What is the foreground color after the restart ? Is it green or yellow ?
If it is green then I know what might be the problem, in that case your best option is to upgrade to V6.02.01B7. I do not have the source for V5.09 so I can not confirm my suspicion.
From your reply I deduct that a) you did not use any of the V6 versions that I corrected and b) that v5.09 has the same flaw that I corrected in my v6 versions. The flaw is that “older” (before my time) versions reset the options on every reboot in the procedure FileIO.c:LoadOptions. This is the reason why the foreground color is reset to green because that option is hard coded in the startup code. The OPTION AUTORUN is not reset and that is why is survives. In my v6 versions this has been moved to FileIO,c:ResetOptions. The author of MMBasic has incorporated the PicoCalc in to PicoMite and WebMite in V6.02.01B6 so that we do not need to a PicoCalc specific build of the uf2 file. https://www.thebackshed.com/forum/ViewTopic.php?TID=18627&P=6#251333