As we have the ARM cross compiler in the previous quest, now we can set up the environment of OSEK build tree.
I take a reference from Set up nxtOSEK, and update some out-date information.
All the concepts are repeatable in VirtualBox with same environment.
First, install the wine:
Then, download nxtOSEK from here http://sourceforge.net/projects/lejos-osek/files/nxtOSEK/
nxtOSEK_v218.zip is the latest version currently.
And a patch from TOPPERS:
Under ecrobot directory, update tool_gcc.mak file to specify with the variable GNUARM_ROOT the path to the installed GNU ARM directory.
If everything goes well, you can find out the executable and some upload programs there.
HOTFIX:
ecrobot.mak and ecrobot++.mak in 218 have some new codes related to detecting the operating system. However it doesn't work for Linux (so far). Please get the nxtOSEK files from some previous version, e.g., 214.
I take a reference from Set up nxtOSEK, and update some out-date information.
All the concepts are repeatable in VirtualBox with same environment.
First, install the wine:
sudo apt-get install wine
Then, download nxtOSEK from here http://sourceforge.net/projects/lejos-osek/files/nxtOSEK/
nxtOSEK_v218.zip is the latest version currently.
And a patch from TOPPERS:
wget http://www.toppers.jp/download.cgi/osek_os-1.1.lzhMerge them accordingly.
Under ecrobot directory, update tool_gcc.mak file to specify with the variable GNUARM_ROOT the path to the installed GNU ARM directory.
# specify GNU-ARM root directory ifndef GNUARM_ROOT GNUARM_ROOT = /[absolute path to parent directory of gnuarm]/gnuarm endifThen we can change directory to nxtOSEK/samples_c/helloworld directory and build binary executables of helloworld sample with the following commands:
~$ cd ./nxtOSEK/samples_c/helloworld ~$ make all
If everything goes well, you can find out the executable and some upload programs there.
HOTFIX:
ecrobot.mak and ecrobot++.mak in 218 have some new codes related to detecting the operating system. However it doesn't work for Linux (so far). Please get the nxtOSEK files from some previous version, e.g., 214.
Comments
Post a Comment