The Propeller Loader (propeller-load) is a command line program used to load programs generated by the PropellerGCC toolchain into a Propeller board. It loads over a serial connection from a PC running Windows, Mac OS X, or Linux. It can also load Spin binary programs generated by programs like the Propeller Tool or BST.
For a friendly introduction to the propeller-load utility, take a look at the tutorial.
To download an elf file to your Propeller, simply use
This will download the code to the first found Propeller chip and start it running. To download to EEPROM, use
If you want a terminal as well add the -t flag.
The full help message for propeller-load is
When you use the -b command line option and you keep on getting the error:
You should try again without the .cfg extension.
You can use propeller-load to "patch" in variables. This allows you to wait until runtime for variable values, and is particularly useful for assigning pin numbers. See the attached documentation for details.
One point that is missing is that your variables cannot be declared "const". If you do, then the compiler may optimize them out and the loader won't patch them.
You should declare your variables like:
(i.e. without the
Please see the attached document for the complete description and use of the Propeller Loader.