In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you what is the AM437x-based Linux application development steps, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Helloworld demo program
Table 1
Development board model
Whether this lab is supported
TL437x-EVM
Support
TL437x-EasyEVM
Support
TL437x-IDK
Support
TL437xF-EVM
Support
This document demonstrates the steps of writing, cross-compiling, and running the application on the target board in the process of helloworld application development through the simplest Linux application development.
Write helloworld source code
First set up a helloword directory under Ubuntu to store helloworld.c source files
Host# mkdir-p / home/tronlong/AM437x/app/helloworld
Host# cd / home/tronlong/AM437x/app/helloworld
Figure 1
Use the gedit tool to create a new helloworld.c file and edit the program source code. The command to create a new helloworld.c file is as follows:
Host# gedit helloworld.c
Enter the following code in helloworld.c:
# include
Int main (void) {
Printf ("Hello World!\ nwww.tronlong.com\ n")
}
Figure 2
Just like the text editor under Windows, press "Ctrl+S" to save the edited content, and then click the red cross button in the upper left corner to exit.
Cross-compile helloworld programs
Before cross-compilation, ensure that the cross-compilation tool chain that comes with the corresponding platform Linux Processor-SDK package is in effect, and then execute the following command to cross-compile the program:
Host# arm-linux-gnueabihf-gcc helloworld.c-o helloworld
Arm-linux-gnueabihf-gcc is the cross-compilation tool chain used, helloworld.c is the application source file, and "- o helloworld" represents the cross-compiled program image named "helloworld", which can be arbitrary.
Figure 4
As can be seen from the prompt, the helloworld image file is a 32-bit small-end ARM platform program that can be run directly on the ARM platform.
Run the helloworld program in the development board
Copy the helloworld image file to any path of the development board file system, and then execute the following command to run the helloworld program in the same path as the executable image file:
Target#. / helloworld
After running the program, the system will print the program information, as shown below:
Figure 5
On the AM437x-based Linux application development steps are shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.