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.
kermess Regular Member Joined: 04/04/2013 Location: SpainPosts: 49
Posted: 03:07pm 26 Aug 2026
Copy link to clipboard
Print this post
Good afternoon.
I am trying to understand a behaviour of OPTION AUTORUN ON that I find rather puzzling. I used this feature some time ago and do not remember having this problem. To check it as simply as possible, I decided to carry out the test using a new Pico 2W running WebMite MMBasic RP2350A V6.03.00, with no program, no Library and no WiFi or other peripherals configured. The test is performed from the Tera Term console. The attached screenshot shows the complete sequence up to the point where the board is powered off. The console first executes OPTION LIST, then OPTION AUTORUN ON, followed by another OPTION LIST, confirming that AUTORUN ON is correctly shown.
At this point I completely power off the Pico 2W, wait a few seconds, and then power it on again. The screenshot continues after the restart. The first thing that appears is the normal WebMite identification: WebMite MMBasic RP2350A Edition V6.03.00 followed by the copyright information and the Tera Term prompt. Without performing any other operation, I then execute OPTION LIST. In this second OPTION LIST, OPTION AUTORUN ON is no longer shown. The board has started normally and no error message is displayed.
Should OPTION AUTORUN ON remain set after powering the board off and then back on? Is this the intended behaviour? Or am I missing some condition or step in the procedure?
Thank you for any clarification.
David
homa Guru Joined: 05/11/2021 Location: GermanyPosts: 673
Posted: 03:36pm 26 Aug 2026
Copy link to clipboard
Print this post
I mean, that’s exactly the problem – ‘no programme’!
However, the manual doesn’t say anything about this either, or?*:
Instructs MMBasic to automatically run a program on power up or restart. ON will cause the current program in program memory to be run. Specifying ‘n’ will cause that location in flash memory to be run. ‘n’ must be in the range 1 to 3. Specifying the optional parameter “NORESET” will maintain AUTORUN even if the program causes a system error (by default this will cause the firmware to cancel any OPTION AUTORUN setting). OFF will disable the autorun option and is the default for a new program. *<-- ? Entering the break key (default CTRL-C) at the console will interrupt the running program and return to the command prompt.