
Setting Up the Build/Development Environment
4-14
4.4
Setting Up the Build/Development Environment
To set up the GPP-side development and build environment, follow these
steps:
1) Log in to your
user
account (and not as root) on the NFS host
system.
2) Set your PATH so that the MontaVista tool chain host tools and cross
compiler (arm_v5t_le-gcc) can be found. For example, in a default
installation of the MontaVista LSP, you should add a definition like the
following to your shell resource file (for example, ~/.bashrc):
PATH="/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin:
/opt/mv_pro_5.0/montavista/pro/bin:
/opt/mv_pro_5.0/montavista/common/bin:$PATH"
If you installed in a location other than /opt/mv_pro_5.0, use your own
location in the PATH.
3) Remember to use the following command after modifying your
.bashrc file:
host $
source ~/.bashrc
4.4.1
Writing a Simple Program and Running it on the EVM
Make sure you have performed the steps in Section 4.3.7,
Shared File System for Target Access
.
Perform the following steps on the NFS host system as user (not as root):
1)
host $
mkdir /home/<
useracct
>/workdir/filesys/opt/hello
2)
host $
cd /home/<
useracct
>/workdir/filesys/opt/hello
3) Create a file named hello.c using a text editor (for example, gedit,
kedit, xemacs, or vi), and add the following contents to it:
#include <stdio.h>
int main() {
printf("Buongiorno DaVinci!\n");
return 0;
}
4)
host $
arm_v5t_le-gcc hello.c -o hello
Содержание TMS320DM6467 DVEVM
Страница 1: ...TMS320DM6467 DVEVM v2 0 Getting Started Guide Literature Number SPRUF88E April 2009...
Страница 20: ...2 8...
Страница 56: ...4 24...
Страница 70: ...Index 4...
Страница 71: ......
Страница 72: ...Spectrum Digital Inc 509538 0001F...