RISC OS Pico AUTOEXEC
Lothar (3292) 134 posts |
Hello, sorry if this has been answered already but I could not find it: RISC OS Pico would be great for an embedded application: like microcontroller, without monitor and keyboard connected. But for that it would be required at power-up to automatically execute a BASIC program from the root of the FAT-fomatted SD card where also RISCOS.IMG is located. It is not enough that RISC OS Pico at power-up boots into BASIC it would need to start executing the designated embedded application in BASIC. Now since there is no RISC OS $ and no !Boot this seems not possible. So it would require to modify and rebuild the kernel RISCOS.IMG to look for some AUTOEXEC file after BASIC has been started, right? Thanks |
Rick Murray (539) 13851 posts | |
Lothar (3292) 134 posts |
Hello, this does not work for me. In your post you wrote that you do not use Pico. If you have some time could you try it? Because I think the reason it does not work is that Pico is running from a FAT-fomatted SD card partition. There is no RISC OS file system partition by default. Therefore *opt 4,2 gives the error: FileCore does not understand this disc (Error number &1C0D7) Possibly one could create a partition with RISC OS file system but I am not sure. Modifying the kernel adding an AUTOEXEC may be more save. Please let me know your opinion. Thanks |
dave_j (3231) 50 posts |
SDFS on Pico defaults to A BASIC file called Tested on a new Pico install. |
Lothar (3292) 134 posts |
You are correct: SDFS is already Option 02 (Run) so *opt 4,2 is not needed. For unknown reason on my Pico a BASIC file named !BOOT does not autoexec, but I used RISC OS (without Pico) to make a !BOOT Obey file for Pico with “BASIC MYPROG” in it and this does autoexec. So problem solved. It would still be interesting why *opt 4 does result in the FileCore error in Pico. Therefore it is not possible to do a change to another option e.g. *opt 4,3 if needed. |
Chris Hall (132) 3559 posts |
A BASIC file !Boot should run, but only if its filetype is BASIC. |