LPC21xx: Difference between revisions
| Line 12: | Line 12: | ||
== Getting the software == | == Getting the software == | ||
Actual source code can be downloaded using a [[ | Actual source code can be downloaded using a [[Git]] tool: | ||
git clone http://rtime.felk.cvut.cz/git/sysless-lpc21xx.git | |||
This will create a copy of the repository on your computer. Later you can update your repository using the command: | This will create a copy of the repository on your computer. Later you can update your repository using the command: | ||
git pull | |||
If you have an acount on the ''rtime'' server, you can use ''ssh''-based access to the repository. If an administrater gave you the right for writing to the repository, you can not only read (pull) repository but also write (push) changes to the repository. | If you have an acount on the ''rtime'' server, you can use ''ssh''-based access to the repository. If an administrater gave you the right for writing to the repository, you can not only read (pull) repository but also write (push) changes to the repository. | ||
| Line 27: | Line 27: | ||
Browsing of project sources is also possible via [http://rtime.felk.cvut.cz/darcs/darcsweb.cgi?r=lpc21xx-boot;a=summary Darcs web interface]. | Browsing of project sources is also possible via [http://rtime.felk.cvut.cz/darcs/darcsweb.cgi?r=lpc21xx-boot;a=summary Darcs web interface]. FIXME | ||
If you plan to record some changes and push them back to the server, it is recomended to add the following lines to <tt>_darcs/prefs/boring</tt>: | If you plan to record some changes and push them back to the server, it is recomended to add the following lines to <tt>_darcs/prefs/boring</tt>: | ||
Revision as of 09:04, 18 March 2008
Development tools
- Download gcc-arm-elf-3.4.3-bin
- Unpack this to the root direcotry
tar -C / -xvzf gcc-arm-elf-3.4.3-bin.tar.gz
Software
We have developed a tolpc tool, which can be now used for loading applications to RAM. For flash loading lpc21isp can be used. In future we will include flash programming posibility to tolpc.
Getting the software
Actual source code can be downloaded using a Git tool:
git clone http://rtime.felk.cvut.cz/git/sysless-lpc21xx.git
This will create a copy of the repository on your computer. Later you can update your repository using the command:
git pull
If you have an acount on the rtime server, you can use ssh-based access to the repository. If an administrater gave you the right for writing to the repository, you can not only read (pull) repository but also write (push) changes to the repository.
The syntax for getting the repo via ssh is:
git clone <login>@rtime.felk.cvut.cz:/var/git/sysless-lpc21xx.git
Browsing of project sources is also possible via Darcs web interface. FIXME
If you plan to record some changes and push them back to the server, it is recomended to add the following lines to _darcs/prefs/boring:
^TAGS$ ^config\.omk ^_build ^_compiled
Installation/Compilation
In order to compile sources from the repository and your applications, you need to "merge" the lpc21xx-boot tree to h8300-boot tree. Besides support for h8300 family processors, h8300-boot contains a general makefiles. lpc21xx-boot only contains support for LPC processors and reuses the makefiles from h8300 boot. In future, makefiles will be provided separately.
You need to follow these steps to prepare for compilation of lpc21xx-boot.
- Download H8300-boot repository to some directory (not under lpc21xx-boot)
- Change directory to h8300-boot
cd h8300-boot
- Run the script to merge lpc21xx-boot to the tree.
sh linkarch <path/to/lpc21xx-boot>
This should create symbolic links to the lpc21xx-boot in the directory tree. - Follow the instructions for compilation for h8300-boot. Note, that you will execute make commands from the configured h8300-boot tree and not from lpc21xx-boot tree.