If you are new on git and github, read this article first.
The RPOf project is on github, so if somebody wants to join it, or just follow the progress, can clone the git repo for RPOf.
Let start from the link for the RPOf github, that is Public : https://github.com/TheFwGuy/RPOf.git
Clone RPOf
Use git to clone the RPOf project, with the command :
- git clone https://github.com/TheFwGuy/RPOf.git
That's it !
On your directory, will exist a directory called RPOf, containing the code.
Update RPOf
Now that you have RPOf on your machine, to keep RPOf updated is even easier.
Simply go in the RPOf directory and issue the command : git pull
- cd ~/SteveProjects/RPOf
- git pull
That's it ! If the code on the github is changed, it will be updated on your machine
Once installed the compiler, simply go in the directory RPOf and issue :
make clean; make
Connect the board via USB.
Open a terminal, go in the RPOf directory and issue the command:
sudo mspdebug rf2500
If everything is OK, the board is recognized.
If so, load the program in the MSP430:
prog rpof.elf
then start it with:
run
If you want to collaborate to RPOf, you can modify the code on your machine, and keep track of the modifications locally, using git.
Issuing the command git status returns the status of the modifications made to the code.
Every time you modify a file, git status will indicate a modification.
Every time you will have to add it with:
git add file_name
git add * will add all the modified files.
Then it will be possible to commit the file with:
git commit file_name
Working on RPOf
Compiling RPOf
The code for iRis is developed using GCC for the MSP430.
In order to compile it is necessary to install on the machine the MSP430 Gcc cross compiler.
Once installed the compiler, simply go in the directory RPOf and issue :
make clean; make
Testing RPOf
In order to test RPOf is necessary to have a MSP430 Launchpad, a MSP430f2013 and a interface board.Connect the board via USB.
Open a terminal, go in the RPOf directory and issue the command:
sudo mspdebug rf2500
If everything is OK, the board is recognized.
If so, load the program in the MSP430:
prog rpof.elf
then start it with:
run
Commit RPOf
If you want to collaborate to RPOf, you can modify the code on your machine, and keep track of the modifications locally, using git.
Issuing the command git status returns the status of the modifications made to the code.
Every time you modify a file, git status will indicate a modification.
Every time you will have to add it with:
git add file_name
git add * will add all the modified files.
Then it will be possible to commit the file with:
git commit file_name
If you are a registered collaborator to the RPOf project, then you should be able to "push" your modifications in the github:
git push
No comments:
Post a Comment