Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:40 08 Jul 2025 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : Load and Run for Micromite MX170

Author Message
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 02:25am 30 Jul 2016
Copy link to clipboard 
Print this post

MMbasic for the Micromite Plus provides a Program Load from Sdard and if you use the "R" option it will Load and Run the program automatically, no such function exists however for the MX170. Peter Mather's latest SDcard drivers have now have a Load from SDcard function so I developed the following sub routine to add Load and Run capability for the MX170.


sub BootLoad(f$)'f$ is filename to load
'print "Try to load Boot.file"
sdcard 6,f$
option autorun on
watchdog 100
pause 200
end sub


The routine may be useful as a remotely triggered program load or even provide a chaining function.

Mike
Codenquilts
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 767
Posted: 05:12pm 30 Jul 2016
Copy link to clipboard 
Print this post

Humm... It might also be useful as a kind of program updater... Your program would scan the SD card for a known filename and if found, would flash the new one into place, then erase the the file off the SD card... So, you could E-mail someone the file, stick it on the card, and do the update, without the end user having to do things through the console... Should work for programs that don't allow the end user to ctrl-C out of the running program... nice...
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025