/
Building User Space Applications

Building User Space Applications

Here is how you can build a user-space application for uClinux.

  1. On the host activate the development environment (refer to Installing and Activating Cross Development Environment ):

    $ . ./ACTIVATE.sh
  2. Develop source files for whatever application you would like to run on the uClinux target. For instance:

    $ vi test.c #include <stdio.h> int main(int argc, char *argv[]) { printf("Hello %s\n", argv[1]); return 1; }
  3. Build the application for the uClinux target, and copy the binary to the directory exported via NFS:

    $ ${CROSS_COMPILE_APPS}gcc -o test test.c $ cp test /home/nfs/
  4. Run the application binary on the target. One easy way to do that is to have an NFS share mounted on the target, which immediately provides access to the host development directory:

Related content

Building User-Space Applications (uClinux)
Building User-Space Applications (uClinux)
More like this
Building Linux Userspace Applications
Building Linux Userspace Applications
More like this
Loading Application Files via UART (uClinux)
Loading Application Files via UART (uClinux)
More like this
Building C++ Applications (uClinux)
Building C++ Applications (uClinux)
More like this
Loading Application Files via UART
Loading Application Files via UART
More like this
STM32MP1-Old-Kits: Building Linux Userspace Applications
STM32MP1-Old-Kits: Building Linux Userspace Applications
More like this