Batch programming for the Propeller 1

Script provides one-click programming for Propeller based products - Handy to deploy upgrades
Share this object
<

Overview

Content

This batch script provides a way to achieve one-click updates for customers, using a standard Windows batch script for compatibility with the widest range of Windows versions.

Two versions of the .bat script are included:

run_Propeller_Binary.bat - This will upload the code to the volatile RAM memory of the Propeller and then run the code
save_Propeller_Binary.bat - This will upload the code to RAM, save it to permanent EEPROM memory, and then run the code

Script Settings
Note that the scripts are identical apart from one statement near the top of the script file:
rem set "save_to=/eeprom" to run only, or set "save_to=/eeprom" to save and then run.

Also at the top of the script file you will find the filename of your binary file:
set "firmware_filename=Blink_LEDs_26_27.binary"
Change this to whatever matches your Propeller code filename!

Deployment
Send 3 files to your customers:
save_Propeller_Binary.bat (or run_Propeller_Binary.bat )
Propellent.exe (The Parallax Propeller code loader)
PropellerCode.binary (Your Propeller code binary file)

Usage Instructions
To program a Propeller, connect the USB cable to your Propeller and ensure the Propeller module is powered on. Then run (double click) the script (.bat) file and follow the prompts.

Benefits
This avoids the customers needing to use any Programming Tools to upload code to the Propeller, and it avoids the need to share the Propeller Source Code files with the customer

Future
Please leave comments if you would like to see any other types of productivity tools, such as a single-file loader/deployment package for your customers!


Downloads  
Zip archive download

Leave a Reply