| Electronic Components Datasheet Search |
|
UM0844 Datasheet(PDF) 30 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0844 Datasheet(HTML) 30 Page - STMicroelectronics |
|
30 / 43 page ![]() Working at application level (userland) UM0844 30/43 Doc ID 16544 Rev 3 4.3.2 Testing a simple application example In order to check the STLinux installation and start to learn the environment, it is useful to write and test a simple user-space application. For example: 1. Right click in the "Project Explorer" window and select "New -> Project" from the menu 2. Select your programming language (for the purpose of this tutorial we use C) 3. Insert your Project name in "Project name" field ("Hello") 4. Select "Hello World ANSI C Project" as Project Type 5. Select "ARM926 Linux GCC" as toolchain 6. Click on "Finish" In the Project Explorer you now see the newly created "Hello" project, with includes and a source file in the "src" subdirectory. To open the src/Hello.c file double-click on it. It is now ready to be modified. 4.3.3 Building a project To build your project completely with the provided cross-compilation toolchain you can do one of the following: ● From the STWorkbench menu, select "Project -> Build Project" - Or - ● In the Project Explorer window, right click on your project name, then select "Build Project" Build messages are displayed in the "Console" tab at the bottom of the screen. 4.4 Userland packages The general SPEAr Linux Support Package (LSP2.3) comes with a set of user-space packages prebuilt for the ARM target. This set includes programs and libraries for: ● Graphics: for example, X Server, SDL, Cairo, DirectFB, GTK+, Qt Embedded ● Programming language runtimes: for example, micro Perl ● Connectivity: for example, usblib, Bluetooth (Bluez) ● Multimedia frameworks: for example, ALSA, GStreamer ● Database: for example, sqlite ● Benchmarking tools: for example, IOZONE, netperf Some of these packages are not supported on SPEAr evaluation boards yet, especially the ones requiring specific hardware for audio, video, wireless connectivity. 4.5 Rebuilding the root filesystem The default root filesystem provided as pre-flashed on all SPEAr evaluation boards, as well as binary image on ST Web site for upgrades, is built for serial NOR Flash and formatted according to JFFS2 structure. In order to rebuild this configuration, the procedure to be run on Linux host PC is as follows: $ mkfs.jffs2 -n -p -l -s 0x200 -e 0x10000 -r $BUSYBOX/_install/ -o rootfs_nor.img |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |