Propgcc-linux

From MGH Designs wiki
Revision as of 22:12, 17 September 2016 by Martin Hodge (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PropGCC on Linux Command Line

Using the Winbond Flash

Regular SPI

If the flash chip is plugged into U9, it will operate in a standard SPI mode. The Flash pins are shared with the SD card except for the Chip Select (CS) line. use dna.cfg with the following command to load your GCC project into the DNA:

propeller-load -b dna -r -t -e yourfile.elf

This will load the GCC program into the flash chip and load the standard SPI driver into the EEPROM. It will also set up the SD card and Flash on Propeller pins 0 thru 4.


To change this arrangement to Propeller pins 16 thru 20, use the following command:

propeller-load -b dna:hi -r -t -e yourfile.elf

If you omit the "-e" option from the above commands, the EEPROM will not be loaded with the SPI driver and your GCC application will only run until a power cycle or reset. You can omit the "-t" option if you do not need propeller-load to automatically open a terminal session immediately after programming.

Quad SPI

If the flash chip is plugged into U12, use dna.cfg, with the following command to load your file into the DNA:

propeller-load -b dna:sqi -r -t -e yourfile.elf

This will load the GCC program into the flash chip and load the quad SPI driver into the EEPROM. It will also set up the SD card and Flash on Propeller pins 0 thru 4.


To change this arrangement to Propeller pins 16 thru 20, use the following command:

propeller-load -b dna:sqihi -r -t -e yourfile.elf

If you omit the "-e" option from the above commands, the EEPROM will not be loaded with the SPI driver and your GCC application will only run until a power cycle or reset. You can omit the "-t" option if you do not need propeller-load to automatically open a terminal session immediately after programming.


Using EEPROM

{to be done}

Using the SD loader

{to be done}