![]() |
Forum Index : Microcontroller and PC projects : Load and Run for Micromite MX170
Author | Message | ||||
MikeO Senior Member ![]() Joined: 11/09/2011 Location: AustraliaPosts: 275 |
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 StatesPosts: 767 |
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... ![]() |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |