Difference between revisions of "TS-4900 Application Development"
m (FTP links auto-updated (http://ftp.embeddedarm.com/ftp/ → https://files.embeddedarm.com/))
|(12 intermediate revisions by 2 users not shown)|
|Line 1:||Line 1:|
Yocto provides librariescross available :
* [://.embeddedarm.com/ts--/ts--linux/distributions/yocto/toolchain/poky--x86_64-meta-toolchain-qt5----toolchain-...sh poky---meta-toolchain-qt5----toolchain-...sh]
In the toolchaincommands to :
chmod a+x poky
chmod a+x poky-*.sh
build an application first source the environment for the toolchain:
$CC hello.c -o hello
$CC hello.c -o hello
to develop the serial console or ssh. Yocto development vim, gcc, g++, gdb, make, autoconf, binutils, . See the next sections for using the cross toolchain with IDEs.
Revision as of 08:38, 12 January 2021
Yocto provides a cross toolchain including the native tools and required ARM libraries. The cross toolchain is only available for 64bit Linux host PCs. Download the toolchain by saving the following link:
In order to install the toolchain, use the following commands to run the installation script:
chmod a+x poky-*.sh sudo ./poky-*.sh
In order to use the toolchain, the environment for it must be sourced to the current terminal before it can be used to build applications: To build an application first source the environment for the toolchain:
source /opt/poky/3.0.2/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi # This command sets up paths for the shell along with a number of other # environment variable. For example: $ echo $CC arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/opt/poky/2.2.2/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi # Cross compiling a simple hello world program: $CC hello.c -o hello
It is also possible to develop applications directly on the device via serial console or ssh. Yocto includes development tools such as vim, gcc, g++, gdb, make, autoconf, binutils, etc. See the next sections for using the cross toolchain with IDEs.