2003-09-08 10:12:41-0500 ------------------------------------------------------- usage: download [options] [-c] [s19-file]... as in download -c2 -d50 mysquirt.s19 Download requires that the bootloader already be resident on your MCU, it cannot burn a blank chip. Options are: -b - send "force bootloader" command to MS, only works with Guy Hill embedded code (I think also with Magnus Bjelk's MegaSquirtnSpark and maybe with Tom Hafner's MegaSpark code, too). -c - specify comm port to which MegaSquirt is connected, default is port 1. -d MS - delay MS milliseconds between lines, increase if you cannot reboot after download, default is zero. Kent Abel and Roger Enns found that 50 ms worked well in EasyTherm when it was having problems downloading, so that's my first suggestion here also. -dc MS - add an inter-character delay, completely useless. -dw MS - set after-wipe delay to MS, default is 500 ms. -o n - change the byte offset in the runtime variables to get battery voltage, default is 8 (B&G standard). -w - wipe only, don't try to download. s19-file - the list of names of the s19 files to download, default file is is megasquirt.s19. 2002-06-28 11:13:52-0500 ------------------------------------------------------- I've just put a new utility for assembly hackers out in http://groups.yahoo.com/group/megasquirt/files/Utils/download100.zip Guy mentioned a while back that he spent an inordinate amount of time starting up HyperTerm, sending S19 files and quitting HyperTerm (finding the file in that stupid "Send text file" dialog is the worst part), so I pulled the comm part of MT out and built this. "Download" allows you to send s19 files from the command line, provided you have started the controller in bootloader mode. Here are instructions for the curious, those of you writing assembler already know the R6 tricks: 1) Short R6, start up MS. 2) On the command line type, "download -c1 megasquirt.s19". 3) Wait 10 seconds. 4) Test the newly downloaded code. The above parameter list is the default one, so you really only needed to type "download" to get the same effect. Type "download -h" for the full documentation. Those of you who use make will find this pretty cool, here's what one of my makefiles looks like. All I have to do is boot MS with my R6 button pushed and type "make" on the command line, voila, I'm looking at MegaTune running my new code about 12 seconds later. megasquirt.s19: megasquirt.asm megasquirt.h airdenfactor.inc \ barofactor.inc kpafactor.inc thermfactor.inc casm08Z megasquirt.asm S L D I M C Q download megatune barofactor.inc kpafactor.inc: genmap thermfactor.inc: # CTS map for Bosch part (values unverified) gentherm2 -c -l'Bosch-CTS' -t 0,50,100 -C -r 5750,800,192.5 airdenfactor.inc: # Default manifold air temperature sensor gentherm2 -i Eric