Use StarterWare in Ubuntu to write bare metal programs for BeagleBone-Black

Source: Internet
Author: User
What StarterWare is, in simple words, is something like an STM32 library function. StarterWareforAM335X latest: Latest

What StarterWare is, in simple words, is something like an STM32 library function.

StarterWare for AM335X latest: http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/starterware/latest/index_FDS.html

Download registered ti account

Linux Installer StarterWare for AM335X 35416 K

Then download the patch for BeagleBone-Black on the same page.

  Beaglebone black patch Beaglebone support files 84 K

Note that if you are using a 64-bit linux, install the ia32-libs

In/home/ /Directory:

Modify AM335X_StarterWare_02_00_01_01_Setup.bin to execute chmod + x AM335X_StarterWare_02_00_01_01_Setup.bin.

Enter./AM335X_StarterWare_02_00_01_01_Setup.bin for installation.

After installation, put the patchfile starterware_bbb_support.tar.gz of the downloaded bbbunder the installation directory of your StartWare.

Decompress tar-xvzf StarterWare_BBB_support.tar.gz to prepare the patch. For details about the files to be modified, see the doc file BBB_support_manual under the installation directory.

Download the officially recommended compiler for: gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2

Gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2

I put the compiler under the StarterWare installation directory and decompress the tar-xjvf gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2.

I personally do not recommend adding the compiler directly to the/etc/environment file. This will lead to too many compilers by default in the PATH, which may cause conflicts when compiling the kernel or something later.

Ctrl + Alt + T open the terminal and use export to temporarily Add the compiler and LIB to the PATH and LIB_PATH

Export PATH = $ PATH:/home/colordrv/AM335X_StarterWare_02_00_01_01/gcc-arm-none-eabi-4_7-2012q4/bin/

Export LIB_PATH =/home/colordrv/AM335X_StarterWare_02_00_01_01/gcc-arm-none-eabi-4_7-2012q4

Use cd to switch the directory ~ /AM335X_StarterWare_02_00_01_01/build/armv7a/gcc/am335x/beaglebone/gpio/

The following is the build directory of the gpio flip LED example, And the makefile is shown below.

Enter the make command and make it automatically. The BIND file generated will be placed in ~ /AM335X_StarterWare_02_00_01_01/binary/armv7a/gcc/am335x/beaglebone/gpio/directory

The default version is Debug and Realse.

 

Download Test Procedure

Find a microSD card, the capacity should not be too small, I use 2 GB, the official HPUSBFW. EXE format SD card

Then ~ /AM335X_StarterWare_02_00_01_01/binary/armv7a/gcc/am335x/beaglebone/bootloader/Release_MMCSD/MLO copy to the root directory of the SD card

Rename the binfile of the generated LED experiment to app (note that there is no extension) and copy it to the root directory of the SD card.

Insert SD to BBB, press and hold the boot button, and click on BBB. The LED flashes and the bare metal environment is set up.

You can also use css ide.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.