propellent tricks
Tracy Allen
Posts: 6,664
I hadn't realized until recently that you can drag a .binary or .eeprom file icon on top of the Propellent icon, and it will find and run the firmware into an attached Prop. You can also drag a .spin file on top and it will both compile and run it, provided it can find all the necessary files.
The caveat is that it programs it to RAM, not to EEPROM. I was wondering if there is a trick such as holding down a certain key combination that will force it to EEPROM?
The next best thing is that it also works with a BATch file. Put propellent along with the .EEPROM or the .BINARY application image in a folder, and the .BAT file.
The contents of the batch file are simply,
propellent /eeprom myProgram.eeprom
That makes a fairly easy way to distribute firmware updates to customers, provided they have the serial port drivers installed.
There is also proploader, but I've run into boxes where it loaded the file but didn't send the file. Here is another recent thread on topic.
The caveat is that it programs it to RAM, not to EEPROM. I was wondering if there is a trick such as holding down a certain key combination that will force it to EEPROM?
The next best thing is that it also works with a BATch file. Put propellent along with the .EEPROM or the .BINARY application image in a folder, and the .BAT file.
The contents of the batch file are simply,
propellent /eeprom myProgram.eeprom
That makes a fairly easy way to distribute firmware updates to customers, provided they have the serial port drivers installed.
There is also proploader, but I've run into boxes where it loaded the file but didn't send the file. Here is another recent thread on topic.
Comments
Here's a VBScript file you can use to do what you want:
Just save it as LoadProp.vbs to the same folder as Propellent, and drag your files into it instead of into Propellent.
-Phil
Not on a WinXP machine though. After asking if I wanted load the named file to EEPROM, it flaked out with a message pointing to line 11, char 5, "the system cannot find the file specified", 8007002 (null). It was in the same folder with propellent and the application image. Maybe a script attribute not supported in XP?
-Phil
Now that I've tested it, I'm sure the space thing is the problem. Here's a corrected script:
-Phil
I see the version difference is the char(34)'s. I don't think spaces were the issue. I was running it right from the original "propellent" folder.
"Program Files" has a space in it. That's all it takes to throw off a command-line file reference that's not surrounded by quotes.
-Phil
I'm at home and have the Mac only here, but will be back by the windows machine sometime this weekend. On the Mac I'm using bstl and the applescript suggested by dgately in this thread.
I think this will fix the problem with spaces in the .spin/.bin/.eeprom file's path\file name:
-Phil
Third time, works like a charm! Verified different paths on both WinXP and Win7.