-
Notifications
You must be signed in to change notification settings - Fork 47
2.1 Setting up a development environment
This section will discuss how to setup a development environment for modifying the STC-1000+ sources and compiling it to something that can be uploaded to the STC-1000.
The steps here assume you are running a Debian derived Linux distribution, such as Debian (duh...), Ubuntu or Mint. It will probably be similar for other Linux distributions, but there might be variations. One does not have to install Linux on a physical machine, a virtual machine (running on VirtualBox, VMWare, Parallells or whatever floats your boat) will do fine. It might even be possible to build on Windows using Cygwin, though this is not something I have tried.
To be able to build GPUTILS and SDCC a few prerequisites first needs to be installed, run:
sudo apt-get install build-essential bison flex libboost-dev
Download the latest source code package of GPUTILS (at the time of writing 1.4.0-1). Untar, configure, build and install.
tar xvzf gputils*.tar.gz
cd gputils-*
./configure
make
sudo make install
Then get the latest source code package of SDCC (at the time of writing 3.4.0). Untar, configure, build and install.
tar xvjf sdcc-src-*.tar.bz2
cd sdcc-src-*
./configure
make
sudo make install
Clone the STC-1000+ project from github.
git clone https://github.com/matsstaff/stc1000p.git
Now you should be able to build all deliverables by changing directory to the STC-1000+ sources and running the build script.
cd stc1000p/src
./build.sh
This will compile the STC-1000+ source code and generate the picprog*.ino files (as well as the javascript for the profile editor and stuff). Now, you can start hacking the source! Good luck, soldier!