Autorun was working and now it is not

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+

HELP!

Disclaimer: I do not know anything about 5.09.

With 6.x it should be:

OPTION AUTORUN 1

to run from FLASH 1

according to the 6.x manual:

OPTION AUTORUN ON

ON will cause the current program in program memory to be run.

As long as it persists across power cycles!!

I submit the command OPTION AUTORUN 1 and after a power cycle…
OPTION LIST does not show this option set. :frowning:

Please do the following: enter on the PicoCalc:

OPTION DEFAULT COLORS YELLOW,BLACK
CPU RESTART

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.

It is green and when I run V6+ is is also Green not yellow unless I change it.

in the meantime, I found my problem

I was missing “option autorun 1”

I will add this to my github of Picocalc notes.

1 Like

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

For your own sanity I recommend that you use V6.02.01B7 that can be found in the thread https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=18627. The archive can be found in the post https://www.thebackshed.com/forum/ViewTopic.php?TID=18627&P=7#251450.
Version v6.02.01b7 is a very mature beta version.
The uf2 files you need are:

Pico 1:  PicoMiteRP2040V6.02.01b7.uf2
Pico 2:  PicoMiteRP2350V6.02.01b7.uf2
Pico 1W: WebMiteRP2040V6.02.01b7.uf2
Pico 2W: WebMiteRP2350V6.02.01b7.uf2
1 Like

Thanks for your help.

Several options are listed in the documentation for MMBasic and PicoCalc

The option I found that works on the PicoCalc is to save the startup code onto FLASH 1
and then set OPTION AUTORUN 1.

The version of MMBASIC listed above is working a lot better than the previous V6 I had,

I have documented my setup in GUTHUB