# Writing Applications

Tne easiest way of creating own applications is to start from one of the existing examples (pgXmplMain ).

Then you should copy the following files to your own project working directory, e.g. myproject/,

- xmpl_[XYZ].c
- xmpl.h
- xmpl_[XYZ]_[BOARD].mk
- xmpl_[XYZ]_[BOARD].aps

Now run make -f xmpl_[XYZ]_[BOARD].mk or double click on xmpl_[XYZ]_[BOARD].aps and compile and download your application.

If this fails, you need probably to correct the URACOLI_INSTALL variable in your Makefile.

Finally you will implement the applications functionality in the file xmpl_[XYZ].c.